Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
skitter
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
1.
▲
by
skitter
2mo ago
Although not part of the goal, it also mentions `!Destruct`/"must-move types", aka linear types: Instead of there always being a way to drop values without providing any arguments, if you wanna get rid of a value of a linear
2.
▲
by
skitter
2mo ago
By doing the same as with `Sized`: Automatically including the `Forget` bound on generic parameters and letting methods that don't need to be able to forget them opt out. That way existing code continues to compile and existing unsafe
3.
▲
by
skitter
6mo ago
Why would it be UB? All objects are behind (thin) pointers, which can be overwritten atomically.
4.
▲
by
skitter
7mo ago
I don't understand – what's the point of not collecting mass amounts of personal identity documents and face scans and linking them to online identities?
5.
▲
by
skitter
10mo ago
I do the same in my toy JVM (to implement the reentrant mutex+condition variable that every Java object has), except I've got a rare deadlock somewhere because, as it turns out, writing complicated low level concurrency primitives is k
6.
▲
by
skitter
1y ago
They're great, compared to cars. But while they have a relatively fast and cheap setup, over the long term light rail and trams are a lot cheaper to run and can coexist with foot & bike traffic easier since the rails make them very
7.
▲
by
skitter
1y ago
> for the sole purpose of not having to add them to function signatures all over the place. I thought it was because you couldn't be fully generic over exceptions.
8.
▲
by
skitter
1y ago
The author obviously knows that too, otherwise they wouldn't have written about it. All of these issues are just how the language works, and that's the problem.
9.
▲
by
skitter
1y ago
I do not see evidence that they are against violence against women and girls, only that they are claiming to be.
10.
▲
by
skitter
1y ago
Yup, that's what I'm doing - storing the two bits needed for an object's monitor in the same word as its compressed class pointer. The pointer doesn't change over the lock's lifetime.
11.
▲
by
skitter
1y ago
Fun post! An alternative to using futexes to store thread queues in kernel space is to store them yourself. E.g. the parking_lot[0] Rust crate, inspired by WebKit[1], uses only one byte to store the unlocked/locked/locked_contende
12.
▲
by
skitter
1y ago
If you're interested in how the mountains and rivers are generated, it's mostly based on the paper "Large Scale Terrain Generation from Tectonic Uplift and Fluvial Erosion": Each chunk rises (at a noise-based, constant r
13.
▲
by
skitter
1y ago
They're rather different: In Rust types only exist at compile time; dyn Any is a normal trait object, so you can only call the trait's methods. With C#'s dynamic, you can call arbitrary methods and access any fields with type
14.
▲
by
skitter
1y ago
Why limit yourself to one language, when you can have 23 of them in the same Datei? https://github.com/charyan/unirust
15.
▲
by
skitter
2y ago
…what? Why bring "AI" into this?
16.
▲
by
skitter
2y ago
I agree about your greater point of learning about history being important, but very much disagree about your specific gripe. What Ironman says is: 7.2.F. (7F.) FORMAL PARAMETER CLASSES There shall be three classes of formal data par
17.
▲
by
skitter
2y ago
C# inherited this from Java, which added it because it was designed without generics and therefore decided that the additional expressiveness provided by enforced array covariance was worth the tradeoff of having an unsound type system.
18.
▲
by
skitter
2y ago
> 1. HTTPS Git repository handling is poor. […] 2. Git fetches seem slower for large changes than using Git fetch directly JJ used to use libgit2 for fetches, but it now can shell out to the git binary instead: https://github.
19.
▲
by
skitter
2y ago
If you're interested in conlangs, someone made a language, Grapherit [0], that is "spoken" via the Desmos graphing calculator. [0]: https://m.youtube.com/watch?v=HP3nIDAhwYo
20.
▲
by
skitter
2y ago
A miserable pile of secrets.
21.
▲
by
skitter
2y ago
This can even turn the following code into a no-op: vec_of_u32.into_iter().map(f32::from_bits).collect()
22.
▲
by
skitter
2y ago
Another solution could be tombstones: When a slot gets cleared and the next slot has an item, insert a placeholder value. During linear probing, treat the placeholder as a normal item (that doesn't match); during insertion & deleti
23.
▲
Futexes at Home
(specificprotagonist.net)
1 points
by
skitter
2y ago
|
0 comments
24.
▲
by
skitter
2y ago
In my very limited experience: In addition to cross-compiling, you want additional features that WGSL doesn't provide if you want to compose shaders, so you'd end up with a tool like naga-oil [1] or wesl anyways. [1] https:/
25.
▲
by
skitter
2y ago
Finding out a piece of software I'm using is written in Go because crashes with SIGSEGV does not spark joy.
26.
▲
by
skitter
2y ago
Another syntax oddity (not mentioned here) that breaks most highlighters: In Java, unicode escapes can be anywhere, not just in strings. For example, the following is a valid class: class Foo\u007b} and this assert will not trigger
27.
▲
by
skitter
2y ago
Optional type annotations are used to improve dynamical languages by adding static typing; we don't see static languages adding untyped places (there's type inference, but there's nothing dynamic about that).
28.
▲
by
skitter
2y ago
> it prevents me from doing things that I know are correct because it thinks my code will run in a multithreaded environment Could you elaborate on that? In your case you don't need to worry about Send/Sync, you can use Cell&#x
29.
▲
by
skitter
2y ago
When there's a null pointer dereference, that's a bug in the program; when closing a file fails, that's something external the program must handle.
30.
▲
by
skitter
2y ago
If another program (or thread) is using the same filesystem, calling std::filesystem functions can be UB. > Behavior is undefined if calls to functions provided by subclause [filesystems] introduce a file system race. http://e
More ›