HNHacker News
TopNewBestAskShowJobs

magnio

3,464 karma · joined June 9, 2020

submissionscomments
magnio··on Quarkdown: Markdown with Superpowers
+1 for Djot. Simple, predictable, and extensible. Made by the author of Pandoc.
magnio··on Transformers in music recommendation
I might be a boomer, but I find Youtube Music automatic suggestions superior to Spotify's. It doesn't "branch out" as much as Spotify, but the next song it puts on is always spot-on, "exactly what I wanted"-vibe.
magnio··on Leaving Neovim for Zed
> I have a codebase where a Dockerfile is a Jinja Template.

Jesus

magnio··on Magic Wormhole: get things from one computer to another, safely
Props to sharedrop, very convenient and fast. They also support machines on different network, though I'm not sure how.
magnio··on Don't use Vim for the wrong reasons (2020)
Does that have any advantage over VSCode Remote SSH?
magnio··on Which country consumes the most coffee?
A cup of coffee costs $1.99 in Vietnam? That's higher than the cost of an average meal to begin with. Most local shops (i.e. not Starbucks) top out at $1.
magnio··on FastHTML – Modern web applications in pure Python
Thank you for saying this. Having to dabble with streamlit at work, I am very disappointed in those kind of solutions, where the moment you venture off the happy path, you are on your own. Any kind of integration or extension needs you to be aware of streamlit's internals. For example, there is no built-in way to open a folder picker AFAIK.
magnio··on Node.js adds experimental support for TypeScript
I don't use them directly much, but template literal generic and contidiontal types is probably the closest a mainstream language has inched towards dependent types.

Some examples of TypeScript power:

- SQL database in TypeScript types: https://github.com/codemix/ts-sql

- Statically typed raw SQL queries: https://github.com/andywer/squid?tab=readme-ov-file#tag-func...

- (Someone fill in your TS hackery for me)

magnio··on Jiff: Datetime library for Rust
I have seen many people downplaying the complexity of a datetime library. "Just use UTC/Unix time as an internal representation", "just represent duration as nanoseconds", "just use offset instead of timezones", and on and on

For anyone having that thought, try reading through the design document of Jiff (https://github.com/BurntSushi/jiff/blob/master/DESIGN.md), which, as all things burntsushi do, is excellent and extensive. Another good read is the comparison with (mainly) chrono, the de facto standard datetime library in Rust: https://docs.rs/jiff/latest/jiff/_documentation/comparison/i...

Stuffs like DST arithmetic (that works across ser/de!), roundable duration, timezone aware calendar arithmetic, retrospective timezone conflict detection (!), etc. all contribute to a making the library correct, capable, and pleasant to use. In my experience, chrono is a very comprehensive and "correct" library, but it is also rigid and not very easy to use.

magnio··on So you think you know box shadows?
Maybe the author tests it on some old device with outdated graphics driver, because they all run smoothly on my 5 yo Android.
magnio··on How to choose a textbook that is optimal for oneself?
Yeah, this is it. A year ago if I tried to find the perfect textbook to learn Linear Algebra, I would still be looking.

There are certainly good and bad textbooks, and a book good for many people might be unsuitable for your style, your goals, and your background. But there are plenty of good enough textbooks, trudging through any of them will yield far more benefits than getting that ideal book.

magnio··on Closed form arc length parametrization is impossible for quadratic Bézier curves
> It is well known in the computer graphics community that the arc length of cubic Bézier curves has no closed form and has to be computed numerically. Sadly, I’ve not yet seen a proof sketch for that, though.

A cubic Bezier curve B(t) is a cubic polynomial of t in [0, 1], parameterized by the four control points. Since it is continuously differentiable, its length is the integral from 0 to 1 of the square root of (1 + (B')^2), a quartic. Such an integral is well known to be reducible to the elliptic integrals, which have no closed form.

magnio··on Codestral Mamba
They announce the model is on HuggingFace but don't link to it. Here it is: https://huggingface.co/mistralai/mamba-codestral-7B-v0.1
magnio··on After initially rejecting it, Apple has approved the first PC emulator for iOS
Feels like this app alone make ipadOS more usable than all the past effort from Apple combined.
magnio··on Lix 2.90 "Vanilla Ice Cream"
The website doesn't outright say it, but I believe the reason for the fork is the Anduril scandal: https://news.ycombinator.com/item?id=40199153
magnio··on PowerToys Run: extensible quick launcher for power users
PowerToys Run is more featureful than Spotlight and should be compared to Alfred or Raycast. Basically, the biggest differentiator is whether you can write a custom plugin for it or not.
magnio··on Show HN: A modern Jupyter client for macOS
To be frank, I don't see any additional features of the app over VSCode, other than it starts up faster, which does not matter much as VSCode starts up faster than the import cell of any notebooks I have. Also, one big reason I use VSCode for notebook is to get the Python LSP.

Good luck to you though, I do think the demographics of scientists who find VSCode confusing is actually sizeable.

magnio··on Do not confuse a random variable with its distribution
X and Y in your examples are events, not random variables.
magnio··on I've stopped using box plots (2021)
You are looking at this as a technical problem, where box plot is a compact visual representation of variance and outliers that is perfectly perfunctory as it is cromulent.

The author is approaching this as a human problem. Plots are not made for machines, they are for people to read, and the author specifically wants as many people can read and parse plots easily as possible. As lamentable as math education might be, we have to work with what we have, and I do think it is a reasonable goal. I agree with the author that it should not be necessary to know what quartiles are in order to see how spread out a distribution is.

magnio··on Farm: Fast vite compatible build tool written in Rust
> There are bugs like https://github.com/swc-project/swc/issues/2038 that haven't been fixed after a few years.

I tried all those examples on the swc playground[0] and all of them pass, so the issue seems to be fixed, but maybe they forgot to close it. By the way, swc, oxc, and biome all pass test262.

[0]: https://swc.rs/playground (version 1.6.5)

magnio··on Say something bad about Canva? It can claw back staff shares
Well, Adobe tried to buy Figma for 20 billion USD, and Canva is definitely larger than Figma (about 3x revenue), so that valuation seems par for the course.
magnio··on Apple just made your app obsolete? You've been 'Sherlocked'
I hope Apple Sherlock more apps. It's 2024, and I still have to install an entire app just to change scroll direction of the mouse and the trackpad independently, another app to change volume per app, and another app to show seconds in the menu bar.
magnio··on React 19 Breaks Async Composability
React jumped from v0.14 to v15.0, so in reality it's more like major version 4.3 right now.
magnio··on Show HN: Restate – Low-latency durable workflows for JavaScript/Java, in Rust
How does Restate compare with Apache Airflow or Prefect?
magnio··on macOS Sequoia Preview
I thought that's what AirDrop is for? Even Android can drag and drop files to Windows.
magnio··on Ask HN: What macOS apps/programs do you use daily and recommend?
Microsoft Edge as the browser.

The split tab view is surprisingly handy for me, which is a group of two tabs you can drag around. It sounds like an inferior windows manager, but I use laptop with no monitor, so splitting into more than 2 windows doesn't make sense anyway.

magnio··on Popular Mac app 'Bartender' acquired by new unknown developer
Thanks for the helpful tips. Tangential but is there any free way to change the scroll direction of trackpad and mouse independently and to disable scroll acceleration? I have tried Mac Mouse Fix but it is not free.
magnio··on A breakthrough towards the Riemann hypothesis
Change that to CPU performance in 2023 and you got a breakthrough as well.
magnio··on Intel's Lion Cove Architecture Preview
You mean 4 cores 8 threads give 22% more throughput than 8 cores 8 threads or 4 cores 4 threads?
magnio··on Ask HN: What do devs use for quickly setting up a feedback form?
In my opinion, a link to a Google Form is superior, not necessarily because Google Form has the best UX, but because it has the most familiar UX. Many people would probably have filled in a Google Form before, so having the de facto default form solution is the easiest on users.
← PreviousPage 4 of 11Next →