Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
thezipcreator
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
thezipcreator
5mo ago
this is possible in rust, albeit with a lot of shenanigans. See this article where someone made a GC in rust where the external references are bound to a specific GC via a unique lifetime: https://kyju.org/blog/tokiocon
2.
▲
by
thezipcreator
6mo ago
fair enough, I suppose
3.
▲
by
thezipcreator
6mo ago
seems pointless to extract `handle_suspend` here. There are very few reasons to extract code that isn't duplicated in more than one place; it's probably harder to read to extract the handling of the event than to handle it inline.
4.
▲
by
thezipcreator
6mo ago
> And I don't know any other languages that don't parse a carriage return. fair enough.
5.
▲
by
thezipcreator
6mo ago
you can just expose javascript functionality as a component, if need be
6.
▲
by
thezipcreator
6mo ago
I would think you could treat it as a normal GC reference and then just drop the resource when the GC collects the object.
7.
▲
by
thezipcreator
6mo ago
I still don't understand how they managed to make a build system as bad as Gradle. It's like they tried to make it as horrible as possible to use.
8.
▲
by
thezipcreator
6mo ago
sure, but when I've written zig this has never been an issue for me. `defer` makes memory management really easy. If you want to auto-generate destructors, zig has really good comptime features that can let you do that.
9.
▲
by
thezipcreator
6mo ago
I'm not sure why you shouldn't make your compiler accept CRs (weird design decision), but fixing it on the user-side isn't exactly hard either. I don't know an editor that doesn't have an option for using LF vs CR
10.
▲
by
thezipcreator
6mo ago
We've had machine translation for a while and I don't think anybody particularly thinks of it as a bad thing? Writing something and then having a machine directly translate it (possibly imperfectly) is a lot different than a machi
11.
▲
by
thezipcreator
6mo ago
The WASM component model is really cool in that you can export basically anything as a component and use it in basically anything else that can compile to WASM and understand components. I would love something like this for native applicati
12.
▲
by
thezipcreator
6mo ago
I disagree. That's how WASM is now, and I guess that's fine, but that's not all it could be. I really think it would be awesome if you could write code for the web in your preferred programming language.
13.
▲
by
thezipcreator
6mo ago
webassembly components use a borrow checking model[1], so I assume that would be used to manage DOM components? I'm not exactly sure how this works when binding it to GC languages. [1] https://component-model.bytecodeallianc
14.
▲
by
thezipcreator
6mo ago
iirc webassembly components need to explicitly import anything they use, so it should be transparent which dependencies something has by just grepping its WIT for `import`
15.
▲
by
thezipcreator
6mo ago
what's with people inventing new torment nexuses every few weeks? could you people just chill, please?
16.
▲
by
thezipcreator
7mo ago
pochastic starrot
17.
▲
by
thezipcreator
7mo ago
`bool` is useful as a communication device; if you just use `int` (or `int32_t` or whatever) then it's not exactly clear that the value can only hold `1` or `0` unless you explicitly say it in the documentation. with `bool`, it's
18.
▲
by
thezipcreator
7mo ago
cursorless ( https://www.cursorless.org/ ) is basically spoken vim it isn't for LLMs at all really but if you want to do code editing via voice it seems like it'd be really good for that.
19.
▲
by
thezipcreator
7mo ago
instead they made (or funded? not exactly sure) il2cpp which is a batshit compiler that compiles IL to C++ for better performance, I guess. sidenote, I wonder how many other low-level to high-level compilers exist out there. can't be m
20.
▲
by
thezipcreator
7mo ago
this is the main issue I think with D, yeah. regarding kitchen-sink-ness it's at least nowhere near as bad as C++, but that bar is basically below the ground anyway so it's not much to write home about.
21.
▲
by
thezipcreator
7mo ago
what are you referring to regarding Java? I'm aware C# has AOT (and il2cpp for Unity projects) but I don't recall hearing about any sort of Java native binary that isn't just shipping a VM and java bytecode (ignoring the shor
22.
▲
by
thezipcreator
7mo ago
this doesn't answer any questions about this game, but I found this GDC talk about Noita pretty interesting: https://www.youtube.com/watch?v=prXuyMCgbTc
23.
▲
by
thezipcreator
7mo ago
not sure if that's a direct comparison to bladerunner. I've not watched/read it but just skimming the wikipedia article, replicants seem to have human-level sapience; I think the comparison was rather to oppressed human under
24.
▲
by
thezipcreator
7mo ago
did you read the post? I think > I wonder what underclass of people like that exists today. was a subtle hint to what you are talking about.
25.
▲
by
thezipcreator
7mo ago
> is longer and more ambiguous than the naive Python implementation write it in lojban instead, ez
26.
▲
by
thezipcreator
7mo ago
> 128 bit ints is definitely a problem though, you don't even get agreement between different compilers on the same os on the same hardware. you technically have _BitInt(128) in C23, but I'm not sure that would even generate wh
27.
▲
by
thezipcreator
7mo ago
> C uses pointer casts all over the place to fake generics. by "C" do you mean users of C? because most of the C code I write I don't use those sorts of techniques; instead I just use the preprocessor to make scuffed gener
28.
▲
by
thezipcreator
7mo ago
little did we know, to create a time machine all we needed to do was to compile some undefined behavior with the correct compiler
29.
▲
by
thezipcreator
7mo ago
> Are you looking at a != ligature that’s shaped like ≠? Or the actual Unicode character 0x2260, which also looks like ≠? In many programming languages, ≠ is not going to be a valid operator. In languages that allow unicode identifiers,
30.
▲
by
thezipcreator
2y ago
Honestly, it doesn't look that bad, I could get used to that syntax. It's not really objectively worse nor better than the normal syntax we have in programming languages now. I think a true AntiLang would also break conventions
More ›