Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
the_duke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
50 ms
·
691.
▲
by
the_duke
5y ago
Apart from the questionable code quality of the benchmarks: JavaScript can be impressively fast in very small benchmarks, but things change very quickly with real applications. Java has way more information, thanks to the type system, and c
692.
▲
by
the_duke
5y ago
The language itself, unless you go out of your way to circumvent the protections with `unsafe`. In this particular case it's the `Sync` trait and the generell rules around sharing data.
693.
▲
by
the_duke
5y ago
Rust rewrites are often excellent and very fast. (ripgrep, fd, ...) A big reason is that they are usually multi-threaded, while the C counterparts are not. Writing (memory)safe and maintainable parallel code is much, much easier in Rust tha
694.
▲
by
the_duke
5y ago
The whole "VS Code is an editor, not an IDE* argument doesn't hold water anymore. There are decent to great LSP clients for many languages. VS Code has git integration. And by far the richest plugin ecosystem of any editor/ID
695.
▲
by
the_duke
5y ago
Nope, I also encountered text rendering issues with SVG. I reckon devs will just drop SVG in favor of a PNG or re-export with text as paths instead of complaining somewhere.
696.
▲
by
the_duke
5y ago
If you take a look at the spec you will find: 12 Multimedia, 13 Interactivity, 14 Linking, 15 Scripting, 16 Animation, 17 Fonts That does not sound very tiny to me.
697.
▲
by
the_duke
5y ago
Rust is already an ugly language. Having &shared plastered all over your code base would be ... suboptimal. Not everything in a language needs to be 100% self descriptive. I think the designers arrived at a good tradeoff.
698.
▲
by
the_duke
5y ago
There are a few alternative front ends tha uphold the spirit of the old UI. Both web based and mobile apps. But they might of course try to shut them down as well.
699.
▲
by
the_duke
5y ago
Good to know, thanks. fuse-ld still works though.
700.
▲
by
the_duke
5y ago
Warning: don't do this if you use rust-analyzer or any other IDE that uses cargo check. The flags are part of the cache hash, so your IDE and cli constantly invalidate the cache and compile from scratch.
701.
▲
by
the_duke
5y ago
RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=/path/to/mold" cargo build or persitant in your project: .cargo/config.toml [target.x86_64-unknown-linux-gnu] linker = "clang" rustflags = ["-C&quo
702.
▲
by
the_duke
5y ago
Emulating sum types in languages without pattern matching is extremely awkward, to the point of being almost useless. type Result[T] struct { ok: *T err: error } Great, so how do you work with it? * You can have a `ok()` getter that ret
703.
▲
by
the_duke
5y ago
To be even more specific: Webassembly is an abstract stack machine. There are no binary executables. You distribute the code in either the text or binary (`.wasm`) format, which is then executed by a runtime. The runtime can be an interpret
704.
▲
by
the_duke
5y ago
Webassembly makes a lot of sense for plugins. * sandboxing, so plugins don't need to be as trusted * Easy cross-platform distribution with a single build artifact * plenty fast (if written in a language like Rust/C++ and paired wi
705.
▲
by
the_duke
5y ago
Some package managers (eg yarn , cargo) have a solution for that and allow you to specify a local resolution override that will apply to all dependencies.
706.
▲
by
the_duke
5y ago
Sure, I was not implying that Rust would have any security benefits fir eBPF. Just that you can even write eBPF code in more convenient languages.
707.
▲
by
the_duke
5y ago
You don't have to use C. There are two projects that enable writing eBPF with Rust [1][2]. I'm sure there is an equivalent with nicer wrappers for C++. [1] https://github.com/foniod/redbpf [2] https:/&#
708.
▲
by
the_duke
5y ago
Interesting, I always assumed that syn was fast enough to not be a bottleneck. Do you have some related benchmarks, eg comparing it to the rustc and rust-analyzer parsers?
709.
▲
by
the_duke
5y ago
Webassembly is much more restricted than regular machine code. It's a stack machine with a limited set of operations, no direct control over the stack/control flow and restricted access to memory. It's way easier to compile t
710.
▲
by
the_duke
5y ago
That's only partially true for Typescript and requires a lot of discipline. TS is continuously getting better, but it's still possible to lose type safety with some constructs without the compiler warning you about it at all. The
711.
▲
by
the_duke
5y ago
Which efforts would that be? Pretty much every other browser is based on Chromium. Some very niche ones on webkit.
712.
▲
by
the_duke
5y ago
There even is a Neovim plugin which can open lazygit in a floating window. The active Neovim instance will be used for multiline commit messages. https://github.com/kdheepak/lazygit.nvim
713.
▲
by
the_duke
5y ago
Swedx [1] has really nice, affordable products. I've bought about 5 of them over the last few years. All of their screens come in a "TV version" with a tuner, and a "monitor version" without one, but are otherwise i
714.
▲
by
the_duke
5y ago
> greater configurability leads to greater code complexity and therefore greater maintenance costs Firefox is extremely configurable. Settings being removed from the UI doesn't mean they are gone. `about:config` has a crazy amount o
715.
▲
by
the_duke
5y ago
At least now I know why my nix builds are failing... Odd for something like this to slip through and not be rolled back immediately. Unless it was intentional, in which case it would be even more odd to not communicate this widely beforehan
716.
▲
by
the_duke
5y ago
You really don't want to store timestamps as text. It's horrible for performance. A iso8601 timestamp takes at least double the amount of bytes (without a timezone), but more importantly you need to parse and validate the timestam
717.
▲
by
the_duke
5y ago
Rust requires explicit conversions for numeric types for exactly the reasons you mention.
718.
▲
by
the_duke
5y ago
Almost no one has automatic status pages anymore. Partially because these large systems have some kind of ongoing issue at any given time, so it's challenging to provide a meaningful live status that isn't a bit misleading and co
719.
▲
by
the_duke
5y ago
That's exactly why I use fish. The default setup is pretty much perfect for what I want. My only additions are fzf for history search, a bunch of aliases and Starship for informative status lines.
720.
▲
by
the_duke
5y ago
Don't get so hung up on that salary. Managing a 400 million + revenue company with 700+ employees is a big job with lots of responsibility and legal liability. Considering what US developers make, 2 million is not a lot of money for th
More ›