Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hgs3
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
hgs3
10mo ago
I'm not a kernel developer myself, but I’m aware of the Tanenbaum/Torvalds debates in the early 90’s. My understanding is the primary reason Linus gave Tanenbaum for the monolithic design was performance, but I would think in 2025
32.
▲
by
hgs3
10mo ago
Rust in the kernel feels like a red herring. For fault tolerance and security, wouldn’t it be a superior solution to migrate Linux to a microkernel architecture? That way, drivers and various other components could be isolated in sandboxes.
33.
▲
by
hgs3
10mo ago
Are you familiar with Zig's error handling? It's arguably more Go-like than the Rust approach.
34.
▲
by
hgs3
11mo ago
> The people writing libraries have no idea how their library will be used. Unless you're paying them, the people writing the libraries have no obligation to care. The real issue is Big Tech built itself on the backs of volunteer la
35.
▲
by
hgs3
11mo ago
Copyleft isn't about the software authors freedom, it's about the end-users freedom. Copyleft grants the end-user the freedom to study and modify the code, i.e. the right to repair. Contrast this with closed-source software which
36.
▲
by
hgs3
11mo ago
> I feel that prototypes are harder to wrap one’s head around compared to classes. This is sad to read because prototypes are conceptually easier to understand than classes. It’s unfortunate that most developers experience with them is
37.
▲
by
hgs3
11mo ago
It supports C99 minus VLAs. Worth noting that only C99 mandates VLAs. They are optional in C11, C17, and C23.
38.
▲
by
hgs3
1y ago
> The ability to edit it using the CLI This perplexes me. Lua was conceived as a configuration language and the whole point of a configuration language is you edit a config file. Trying to abstract this away behind a CLI seems like it mi
39.
▲
by
hgs3
1y ago
In practice, there are still types, they are just validated by your application. I didn’t want Confetti itself to make assumptions. I wanted to give you the freedom to define your own custom types and keywords, like “on” and “off”, or even
40.
▲
by
hgs3
1y ago
> It would be much more interesting to see a language which experiments with what is fundamentally representable You might checkout my project, Confetti [1]. I conceived of it as Unix configuration files with the flexibility of S-express
41.
▲
by
hgs3
1y ago
The code is very readable and well organized. My only major critique is that there's very little error checking, e.g. there are many calls to snprintf and malloc without checking the result. There is also an unused loop here [1]. As
42.
▲
by
hgs3
1y ago
> It goes through the history of OOP Unfortunately, the "history" omits prototype-based OO (Self, Io, Lua, etc.) which doesn't suffer from many of the "issues" cited by the speaker.
43.
▲
by
hgs3
1y ago
This is interesting, but aren't "coding competitions" about writing small leetcode programs from a prompt? I would expect the AI to excel at that.
44.
▲
by
hgs3
1y ago
I'm curious what a hashmap looks like with this approach. It's one thing to pass through or hold onto a generic value, but another to perform operations on it. Think computing the hash value or comparing equality of generic keys i
45.
▲
by
hgs3
1y ago
Just be respectful and not snarky. And be clear about your boundaries. What I do is I add the following notice to my GitHub issue template: "X is a passion project and issues are triaged based on my personal availability. If you need i
46.
▲
by
hgs3
1y ago
I would expect a shading language to provide specialized features for working with GPU resources and intrinsic operations.
47.
▲
by
hgs3
1y ago
> Since then Microsoft has had no real answer for "how do I write desktop applications for Windows?" other than "use Electron". Microsoft has been pushing WinUI the past few years, with WinUI 3 being the latest recomm
48.
▲
by
hgs3
1y ago
It's a shame that Objective-C never really caught on outside of the NeXT/Apple ecosystem. User interfaces benefit greatly from dynamism, and all the UI toolkits I've used for C and C++ try to emulate message passing in one wa
49.
▲
by
hgs3
1y ago
Can you elaborate? C constructs generally map to one or a few assembly instructions at most. You can easily look at C and predict the generated assembly. This is in contrast to other compiled languages, like Go, that inject instructions for
50.
▲
by
hgs3
2y ago
Lua was designed for configuration, so I'd rather use Lua. Plus, it makes for a more elegant, unified design. TOML, and friends, are better paired with languages that were not designed for configuration.
51.
▲
by
hgs3
2y ago
Why not use a function to add dependencies, e.g. `add_dependency "dependency@version"` or `add_dependencies { ...table-here... }`. This is, more or less, how premake works [1]. For `lx add ...` you'd append the function call
52.
▲
by
hgs3
2y ago
Lua has a sandboxed runtime so couldn't you kill rogue scripts after a timeout?
53.
▲
by
hgs3
2y ago
Yes, the "${}" would be for the program to evaluate; referencing environment variables that way isn't uncommon in Unix configuration files. "Reverse Solidus" is the Unicode name for the character [1], so if you don&
54.
▲
by
hgs3
2y ago
The "general category" [1] and "whitespace" [2] properties are real character properties defined by Unicode. Referring to them is, ideally, how a language that supports Unicode should do things. [1] https://ww
55.
▲
by
hgs3
2y ago
The "expression arguments extension" is intended to allow for 'richer' expressions wherever an argument is expected. In the following example, it shows how you might use it if you need basic control flow in your configur
56.
▲
by
hgs3
2y ago
Indention is not significant. The example was supposed to demonstrate how you might use individual directives for pseudo-grouping. The example was inspired by premake [1] which takes this approach, but in Lua. [1] https://premake
57.
▲
by
hgs3
2y ago
Good catch! It's "unopinionated" for the user and "opinionted" in its design decisions. I'll stick with "unopinionated" for consistency.
58.
▲
Show HN: I made Confetti: a configuration language file format
(confetti.hgs3.me)
67 points
by
hgs3
2y ago
|
61 comments
59.
▲
by
hgs3
2y ago
The book you referenced appears to be about the rise of Marxism. I'm neither agreeing nor disagreeing with the GP when I say this, but I think it's worth pointing out that you can democratize ownership under capitalism, e.g. a wor
60.
▲
by
hgs3
2y ago
The vast majority of jobs that sustain our standard of living are blue-collar: farmers who grow our food, textile workers who make our clothes, construction workers who build our homes, plumbers, electricians, waste disposal workers, etc. I
More ›