Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gw
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
Show HN: Ansiwave, an ANSI art and MIDI music mashup
(github.com)
103 points
by
gw
5y ago
|
14 comments
2.
▲
by
gw
6y ago
Is it a "javascript application" or a "page with text that uses javascript for dynamic features"...
3.
▲
by
gw
6y ago
Y'all both are making great tools but consider giving a read-only view of the page when javascript is disabled. After disabling JS this gives me a blank white screen: https://athensresearch.github.io/athens/ Same
4.
▲
by
gw
6y ago
You sure? https://forum.nim-lang.org/t/4022#25046 edit: the docs seem to say you're right, maybe that forum post is outdated but it's from nim's author.
5.
▲
by
gw
6y ago
Not the commenter but which one of these is the defer generating? // option 1 try { fp = os.open(x) fp.read() } finally { fp.close() } // option 2 fp = os.open(x) try
6.
▲
by
gw
6y ago
Nim's defer just wraps the current scope in a try/finally, with the deferred code running in the finally. It is probably better just to use try/finally directly because it's more explicit about what is in the try block.
7.
▲
by
gw
6y ago
You can still hold on to references to textures and meshes you uploaded to the GPU without using a full-blown scene graph. Some state is necessary no doubt, but this seems more like unnecessary state that could be replaced by something more
8.
▲
by
gw
6y ago
That makes sense, but it seems like a case of building an abstraction to solve a problem caused by another abstraction. If a scene graph creates a new chore for me that necessitates yet another dependency, i think it'd be simpler to no
9.
▲
by
gw
6y ago
That looks neat but why would you need a react-style reconciler to render a webgl scene? It's immediate mode...every frame is rendered according to the latest state available. What is even being reconciled?
10.
▲
by
gw
6y ago
Crawford says nobody truly followed in his footsteps but I think Jason Rohrer qualifies. The two even shot a documentary together, and the scene where Crawford showed off his Storytron project to Jason was pretty revealing. Jason called it
11.
▲
by
gw
6y ago
Yeah it's a bit bifurcated. Internally there's a lot of coupling -- HTML embedded directly in the C code and whatnot. This could be resolved if tools could be built on top of fossil, but the CLI code uses `exit` everywhere which m
12.
▲
Show HN: O'Doyle Rules – a new rules engine for Clojure
(github.com)
100 points
by
gw
6y ago
|
18 comments
13.
▲
by
gw
6y ago
It would at least be far less of an issue. I don't see anyone being confused that https://github.com/facebook/react is the official repo, and not https://github.com/react/react . It's the
14.
▲
by
gw
6y ago
I wasn't even addressing the crates.io team, i was addressing the author of the post.
15.
▲
by
gw
6y ago
The quote was a guideline, not a requirement. Cognitect (who makes the clojure CLI tool) doesn't even control clojars, the main clojure maven repo, so they wouldn't be able to enforce that even if they wanted to.
16.
▲
by
gw
6y ago
I didn't choose the shorter names because i "care[d] about having shorter names", i did so defensively, because i figured if i chose `net.sekao/iglu`, someone else would choose `iglu/iglu` which would imply that the
17.
▲
by
gw
6y ago
You really should look to other ecosystems and see what lessons they've learned. In java, packages are normally "namespaced" by the author's reverse domain name, like `org.lwjgl/lwjgl`. Since clojure uses maven as w
18.
▲
by
gw
6y ago
I think the instrumenting and generator stuff gets disproportionate attention. For me by far the biggest win from spec has been with parsing. This completely changes how you'd write a library that takes a data structure and parses it i
19.
▲
by
gw
6y ago
Deprecated, not removed. In fact opengl will still be supported in the new ARM macs.
20.
▲
by
gw
6y ago
Interesting. When you say "save and restore state", do you mean actually serializing it and loading it later? In what situation would you want to do this? Not doubting that there is one but i haven't heard of this before.
21.
▲
by
gw
6y ago
Webgl doesn't have this problem since it runs those functions on a context object. But yeah i wish there was a way to do that with opengl.
22.
▲
by
gw
6y ago
It is pretty wild, though mine wasn't quite as bad. It ended up clocking in at 650 lines. I guess part of that is because nim doesn't have braces... https://github.com/oakes/vulkan_triangle_nim/blob/
23.
▲
by
gw
6y ago
It's things like this that make me not worry about sticking with opengl. It's supported everywhere, fast enough for my uses, and is exactly the level of abstraction i want to be at. I completed the vulkan triangle tutorial and i c
24.
▲
by
gw
6y ago
For nim i like this one: https://github.com/johnnovak/illwill It is immediate mode so you render the entire UI every tick, though it is smart enough to not actually redraw things that didn't change.
25.
▲
by
gw
6y ago
You can do that if you want. You can also just sleep the render thread until inputs are received, if you are sure that only user input can cause changes in the UI. See glfwWaitEvents for example: https://www.glfw.org/docs&#x
26.
▲
by
gw
6y ago
I do love how zig's comptime naturally led to generics without extra syntax. But after using nim i'm convinced that macros make even more sense for systems programming. They can even affect performance -- nim's macros can g
27.
▲
by
gw
6y ago
I did manage to fork it and prevent it from aborting, but i don't want to maintain it forever. I tracked it down to this function: https://github.com/nim-lang/Nim/blob/cd28fe2ef7a204721efa720... It'
28.
▲
by
gw
6y ago
Yeah it really is a hidden gem. You can use it as a bash replacement, and with the new compiler API you can embed the entire interpreter in your program. My only complaint is that the interpreter aborts the process when the nimscript code h
29.
▲
by
gw
6y ago
> Who's using Nim? What are you using it for and how are you finding it? I am using it for game and music programming: https://github.com/paranim Only been using it since the beginning of the year and it is fantasti
30.
▲
Show HN: Paramidi – make MIDI music with Nim
(github.com)
2 points
by
gw
6y ago
|
0 comments
More ›