Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
paavohtl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
by
paavohtl
5y ago
A formal specification would be basically useless, if nothing guarantees that the reference implementation actually follows it. Sharing & contributing to the same test suite is a much more practical approach.
92.
▲
by
paavohtl
5y ago
There is the #[must_use] attribute for function return values, which throws compiler warnings when results are unused. It is not a real part of the type system though, but it serves as a useful lint.
93.
▲
by
paavohtl
5y ago
Mac for work, Windows for personal projects.
94.
▲
by
paavohtl
5y ago
As a practical example Rust uses a less powerful version of linear types called affine types for its ownership system. Values are moved by default in assignments and function calls, and they cannot be used (in their original location) after
95.
▲
by
paavohtl
5y ago
Rust is fairly nice to use for scripting / high level programming tasks. Libraries tend to be of high quality, and typically well (and consistently) documented. Ownership and borrow checking does not tend to cause issues in pipeline-li
96.
▲
by
paavohtl
5y ago
WASM was explicitly designed to be easy to into native code. No production-ready WASM runtime is interpreting bytecode in hot code paths.
97.
▲
by
paavohtl
5y ago
It's an excellent talk, but IIRC the point was that hypothetical Metal language was still a subset of JavaScript. From the technology point of view WebAssembly has basically nothing to do with JavaScript, except that both are part of t
98.
▲
by
paavohtl
5y ago
Rust has a pretty strict backwards compatibility policy. Generally speaking breaking changes are not allowed, unless they fix a specific vulnerability or other critical issue. Language-level breaking changes can be done with the Edition mec
99.
▲
by
paavohtl
5y ago
IMHO most of the time it's better to create a special 2-case enum for your specific use case. It's 3 lines of code, which gives you significantly clearer naming than "Either" and "Left/Right".
100.
▲
by
paavohtl
5y ago
I do not disagree with that at all! I played Minecraft for the first time before it even had multiplayer, and I'm currently running a survival server for my friends. I think it's a great game for people of all ages, I just don
101.
▲
by
paavohtl
5y ago
Redstone is absolutely miserable to use. Even the simple task of moving signal around is a chore. Even though it can be used to do anything with the magic of NOR gates and Turing completeness, it is an outright hostile environment for learn
102.
▲
by
paavohtl
5y ago
I think most open world AAA games have done this for over a decade. They either vary a base face model randomly, or mix from hundreds of variants, hairstyles, clothing options, accessories etc. Literally no one is making 400 unique models f
103.
▲
by
paavohtl
5y ago
Telegram has a native desktop client based on Qt. There's also a separate macOS version based on Cocoa.
104.
▲
by
paavohtl
5y ago
> There should be only 1 way and that way should not have hacks like use negative margins. There is: flexbox and grid. All kinds of alignment can be done with basically a one-liner in both layout systems, without any hacks.
105.
▲
by
paavohtl
5y ago
It's not just a texture pack in any way - just read the dev blog. They are also overhauling all of the UIs, adding mouse support to everything and so on.
106.
▲
by
paavohtl
5y ago
You can easily split stuff into modules without getting classes involved. For example the `Math` module which has been in JS basically forever.
107.
▲
Bypassing early 2000s copy protection for software preservation
(blog.paavo.me)
7 points
by
paavohtl
5y ago
|
0 comments
108.
▲
by
paavohtl
5y ago
Metro Exodus Enhanced Edition uses RT for basically all lighting, doesn't it? https://www.youtube.com/watch?v=NbpZCSf4_Yk Same with Minecraft RTX https://www.minecraft.net/en-us/updates/ray-tr
109.
▲
by
paavohtl
5y ago
I'm sure NVidia is fine, as they are the market leader in gaming / workstation hardware accelerated RT.
110.
▲
by
paavohtl
5y ago
Of all the bad solutions, Zoom is the best one. It is the only one with a native (= not a glorified web browser) client, which you can definitely feel. Both Slack's and Teams' calls bring my top-end (Intel) MBP to its knees, while
111.
▲
by
paavohtl
5y ago
Rust is normally always compiled directly to Assembly using LLVM. The only exception is mrustc [0], which is only intended to be used for bootstrapping a Rust compiler with a C++ compiler. It produces "very ugly C". [0] https:&#x
112.
▲
by
paavohtl
5y ago
If you are using TypeScript (which you should), undefined is not inherently any more dangerous or unpredictable than any other form of encoding missing values.
113.
▲
by
paavohtl
5y ago
Of course undefined is safe. It is just a different kind of null, and nothing else.
114.
▲
by
paavohtl
5y ago
> Rust requires compiler support to take apart async functions and put them back together as state machine, and the others lean on their GC C# actually does the same thing, though it indeed still relies on GC.
115.
▲
by
paavohtl
5y ago
> Imo, local mutation is not that bad, and functional languages actively prevent it, while global mutation is still a thing, which tends to be more problematic F# also allows and encourages local mutation. In fact, it even allows global
116.
▲
by
paavohtl
5y ago
> high quality type inference C# type inference is not really comparable in any way to F#'s ML-style global type inference. You can realistically write a non-trivial F# program without a single type annotation. C#'s type infere
117.
▲
by
paavohtl
5y ago
An experienced C++ programmer can learn Rust quite easily. The hard part (ownership & lifetimes) is what experienced C++ developers should already know by heart, but the primary difference is that the compiler enforces the same rules.
118.
▲
Rust for Linux kernel patch series v2
(lkml.org)
4 points
by
paavohtl
5y ago
|
0 comments
119.
▲
by
paavohtl
5y ago
> extremely well supported across toolchains and programming languages. It just works and it works pretty darn well for most applications The same holds true for PostgreSQL.
120.
▲
by
paavohtl
5y ago
Of course. I'm well aware of Quake's impact, legacy and the competition at the time.
More ›