Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sekao
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
sekao
1y ago
The code example will work even if `u` is only known at runtime. That's because the inner switch is not matching on `u`, it's matching on `ab`, which is known at compile time due to the use of `inline`. That may be confusing, bu
2.
▲
by
sekao
1y ago
Agreed. Zig's approach re-uses the existing machinery of the language far more than C++ templates do. Another example of this is that Zig has almost no restrictions on what kinds of values can be `comptime` parameters. In C++, "no
3.
▲
by
sekao
2y ago
I noticed you used scare quotes...is that because you and your team don't think simplicity is valuable?
4.
▲
by
sekao
2y ago
The ability to export a zig project to a single C header file would be really nice. Is that still a planned feature?
5.
▲
by
sekao
3y ago
I can't imagine why they would be argumentative with a gentle diplomat like yourself.
6.
▲
by
sekao
3y ago
You know, I used to think that design was a nuanced grappling of complex tradeoffs, but you convinced me: those you disagree with are just "brain-dead" "idiots". I think there is a relevant quote by Charles Bukowski abou
7.
▲
by
sekao
3y ago
Zig and Go both let you silence the error with `_ = myvar`. It can still be annoying, but it avoids the recursive problem you mentioned. Language design is hard, and it's best to not just assume that people are "idiotic" for
8.
▲
by
sekao
3y ago
I'm running NixOS + KDE on the AMD framework and surprisingly it worked perfectly out of the box. All I had to do was disable secure boot to get it running, and after install I had to configure the global scale in display settings to 2
9.
▲
by
sekao
3y ago
As I said in the last thread, the author could use support: https://www.patreon.com/join/bcachefs This has been a solitary and largely self-financed effort by Kent over many years. He must feel pretty great to finally
10.
▲
by
sekao
3y ago
The author lost corporate funding recently and is asking for donations. I just started giving 20/mo. I don't care about kernel drama; I just want a good COW filesystem for Linux and this guy is doing a thankless service. https:&#
11.
▲
by
sekao
4y ago
Think about longevity. Whether I'm writing, drawing, making music, or anything else important to my life, will I still be able to view/edit that data in 20 years? Granted, even with offline-friendly software I may need to port it
12.
▲
by
sekao
4y ago
Richard is a great contrarian thinker. I remember him from GET LAMP, a documentary about text adventures, and his take on the power of text in games was really memorable: https://www.youtube.com/watch?v=Zctp972y_Eg
13.
▲
by
sekao
4y ago
The browser target sounds neat. Do you plan on running the python in web assembly, or would it be a client/server design?
14.
▲
by
sekao
4y ago
I think we will need new standards here, because terminal emulators currently don't have any semantic information about what TUI programs are rendering. Browsers have the benefit of HTML to know this is a button, and that is a paragrap
15.
▲
by
sekao
4y ago
It doesn't detract from that at all, chief. What a weird thing to say. Particularly in the case of Nim -- it doesn't "throw away" C or C++, it compiles to them!
16.
▲
by
sekao
4y ago
I believe cyclic imports are coming. And Nim does supports wasm...you can target it with `--cpu:wasm32`. You most likely want to pair that with emscripten as in https://github.com/treeform/nim_emscripten_tutorial
17.
▲
by
sekao
4y ago
Andrew argues that zig can produce faster programs than c or rust towards the end of the video: https://youtu.be/gn3YsZ6HUHw?t=3566
18.
▲
by
sekao
4y ago
Binary files are also delta'd in git.
19.
▲
by
sekao
4y ago
I didn't even know about it until today, very impressive. Generic SoA in less than 500 lines of userland code... https://github.com/ziglang/zig/blob/master/lib/std/multi_arr...
20.
▲
by
sekao
4y ago
> the big tragedy it's that is focused on freight transport I don't see the tragedy in that. Tracks in the US are privately owned and freight makes them more money than passenger rail. Don't think we'd gain anything b
21.
▲
by
sekao
4y ago
Reactive updates is the big one, in my opinion. DataScript is a triumph and arguably is the reason why so many note-taking tools (Roam, Athens, Logseq, etc) are written in Clojure. But there are so many cases where it would be nice to react
22.
▲
by
sekao
4y ago
That is the case with JavaFX as well. It's not part of the JRE anymore. Also there really isn't any such thing as the JRE anymore, only the JDK. If you want to distribute a desktop Java app you must embed the entire runtime via ja
23.
▲
by
sekao
4y ago
Nim supports wasm. You can target it with `--cpu:wasm32`. You most likely want to pair that with emscripten. Here's an example: https://github.com/paranim/parakeet
24.
▲
by
sekao
4y ago
See also https://github.com/hpjansson/chafa which is an image -> unicode library written in C. I built it into my BBS so users can embed images in their posts. Some turn out better than others but it gives the board
25.
▲
by
sekao
4y ago
Right now not good but I have a plan for the web version. I'm going to overlay text fields, buttons and other things on top of the cells where they're being rendered. This is doable because nimwave has all the semantic information
26.
▲
Show HN: Nimwave – build TUIs for the terminal, web, and desktop
(github.com)
195 points
by
sekao
4y ago
|
13 comments
27.
▲
by
sekao
5y ago
Good points but the suggested alternatives are ignoring the most important piece of tech we have for synchronizing content: git. My problem with ActivityPub is that when you export your content, you get a big binary file that can't be
28.
▲
by
sekao
5y ago
The reason websites aren't designed to last is not due to ever-changing design trends; it's because the web is inherently ephemeral. For a website to continue to be available requires continuous effort and expense to run a web ser
29.
▲
by
sekao
5y ago
I'm building my own hang out spot: https://ansiwave.net/ Strictly a BBS right now, but i'm considering adding chat as well.
30.
▲
by
sekao
5y ago
Out of context, you won't necessarily be able to glean meaning from either an arbitrary SQLite database or arbitrary RDF tuples. Both are equally meaningful or meaningless depending on the observer...at the end of the day, they are jus
More ›