Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
GolDDranks
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
91.
▲
by
GolDDranks
1y ago
Happy tenth anniversary for Rust! I have been using Rust from 0.11, circa 2014, and I'm so happy to see it as successful as it is today! These days I can in all truthfulness say that I don't only enjoy writing Rust –something that
92.
▲
by
GolDDranks
1y ago
I wonder if the author bothered to test their code (or used AI to generate the examples). The lifetime elision one simply doesn't work. Rust doesn't have an elision rule for two non-self input lifetimes.
93.
▲
by
GolDDranks
1y ago
Note that this is written by Graydon Hoare, the original author of Rust. He hasn't taken part in the project for years (I think he left before 1.0), so it feels quite special to see a write-up by him.
94.
▲
by
GolDDranks
1y ago
As a resident of Japan, I thought the exact same thing. (I'm also a citizen of an EU country, which would permit me to participate, but most of my colleagues couldn't.)
95.
▲
by
GolDDranks
1y ago
I've been recently using Zed, and I'm in love. It's the best editor experience I've ever had. Everything's snappy like notepad.exe, but it's also quite featureful, and quickly becoming even better.
96.
▲
by
GolDDranks
1y ago
The thing is, even it being used just in collections can lead to DOS, if the attacker can control the string contents, and selectively choose strings that your hash table stops being a hash table and turns into a linked list.
97.
▲
by
GolDDranks
1y ago
> Coding is another tool Maybe to you. For some of us, it's also a form of self-expression, a hobby or a lifestyle. In my experience coding for money and coding for fun is a very different experience. I know my worth, but I am also
98.
▲
by
GolDDranks
1y ago
I haven't used Solid yet, but it is commonly said to have "fine-grained" reactivity, compared to React, and better performance. I also think that Svelte, having a compiler, seems like that it would have an edge in theory.
99.
▲
by
GolDDranks
1y ago
At some point, the creator of SolidJS, Ryan Carniato did a stint helping developing Marko.js, a fine-grained reactive / compiled / a bit HTMX-like system, and blogged about that. It's a framework that originated from eBay. I&
100.
▲
by
GolDDranks
1y ago
Test verify that the code works on specific inputs. Formal verification checks that it works on every input.
101.
▲
by
GolDDranks
1y ago
Via an unreliable, linker-based hack.
102.
▲
by
GolDDranks
1y ago
I think that for a guarantee as central as non-panicking, there ought to be eventually some kind of support in the core language. (Just throwing ideas here, but there could be `#[never_panic]` for simple cases where the compiler can clearly
103.
▲
by
GolDDranks
1y ago
Nobody really knows for black holes of these sizes, because we don't have a theory of quantum gravity, but I think that answer according to general relativity would that the curvature is steep enough that escaping would require going f
104.
▲
by
GolDDranks
1y ago
My understanding is that they can't be _ultramicroscopic_, but they can be quite small. According to the Wikipedia: > A primordial black hole with an initial mass of around 10^12 kg would be completing its evaporation today And acco
105.
▲
by
GolDDranks
2y ago
Tried Knockout.js, Mithril.js, Marko.js, Rocket (Rust), none to be found. Also, the site seems to have abysmal performance.
106.
▲
by
GolDDranks
2y ago
That's chilling. I always thought HN as a kinda level-headed corner of the internet.
107.
▲
by
GolDDranks
2y ago
> Typically, stuff like this gets flagged off the front page within minutes. Why would that be, because it's too "political" for tech news? Or are there actual DOGE sympathies within the HN population?
108.
▲
by
GolDDranks
2y ago
I think it matches really well for the Zig ethos of "artisanal, minimal code". More than often, a type is strongly tied to how it is being used in the code base. In that sense, having it be tightly coupled to a data structure isn&
109.
▲
by
GolDDranks
2y ago
If you write a function that takes a _generic_ linked list as a parameter, you'd have a function that refers to just the linked list subrecord, and does only linked list operations to that and the linked nodes. If you want to write a f
110.
▲
by
GolDDranks
2y ago
If the transpilation itself is bug-free, why not? For static guarantees, provided we transpile Rust code that already compiles on a normal Rust compiler, the guarantees are already checked and there, and the dynamic ones such as bounds chec
111.
▲
by
GolDDranks
2y ago
Okay, so the same idea that I spitballed in a sibling thread: > Btw. wouldn't it be possible in modern pipelines to remap or "disfigure" the texture when converting to triangles, so that it counters the bias accordingly? A
112.
▲
by
GolDDranks
2y ago
Interesting - low-poly (and 2D) are exactly where my interests are. Btw. wouldn't it be possible in modern pipelines to remap or "disfigure" the texture when converting to triangles, so that it counters the bias accordingly?
113.
▲
by
GolDDranks
2y ago
I know about the advantages and uniqueness properties of triangles. However, if the article is correct about that artists prefer using quads when editing (I know absolutely nothing about 3D editing, and didn't know that, I thought tria
114.
▲
by
GolDDranks
2y ago
I am definitely not an expert in 3D graphics... but this looks such an astonishingly simple and effective method, it makes me to question why this wasn't already thought of and picked up? I get that with fixed-pipeline GPUs you do what
115.
▲
by
GolDDranks
2y ago
I am especially fond of the `get_disjoint_mut` APIs. They're such a neat demonstration that Rust's fundamental borrowing rules are not that bad; it's just that compilers aren't smart enough to realise when things are OK.
116.
▲
by
GolDDranks
2y ago
I'm not an American centrist, but a Finnish centrist, which would make me... American moderate left maybe, but I'm very glad that more and more people are seeing what seemed obvious to me for years...
117.
▲
by
GolDDranks
2y ago
Thank you, you really are a sweetheart. And correct. But it's not easy to combat the anxiety.
118.
▲
by
GolDDranks
2y ago
Just having features associated with OOP isn't a bad thing. Object upcasting has its uses. It's some of the other stuff that gets OOP its bad rap. Garbage collection, common in many OOP languages, enables having arbitrary object g
119.
▲
by
GolDDranks
2y ago
Japanese is often described as "strictly head final". However, there are some exceptions such as head-initial phrases with modifiers like "dake", "bakari", "goro", "gurai" and "hodo&quo
120.
▲
by
GolDDranks
2y ago
No, because what people mean when they say grammar checker, it doesn't suffice to check whether a sentence is (formally speaking) ungrammatical or not. You'd expect it also check word choice, ortography etc. Those aren't part
More ›