Viewing profile — nikki93
nikki93
HN member- Joined
- Fri, Apr 15, 2011, 8:52 PM UTC
- HN karma
- 598
- Public activity
- 329 items
- HN profile
- View on Hacker News ↗
About nikki93
https://github.com/nikki93
http://www.nikhilesh.info
Recent public activity
-
comment
Comment #45166289
https://github.com/terryyin/lizard has been useful to track when functions get too convoluted or long, or when there's too much duplication -- in code generated by agents. Still ha…
-
comment
Comment #45123173
A relevant paper: https://arxiv.org/abs/2306.11644 -- the Phi models (and many others too) are based on this idea.
-
comment
Comment #45122565
Pasting a comment I posted elsewhere: Resources I’ve liked: Sebastian Raschka book on building them from scratch Deep Learning a Visual Approach These videos / playlists: https://y…
-
comment
Comment #42124095
I think a 'linear types' ish model where the compiler flags an error if you didn't write the explicit unlock call, and only compiles if some acceptable unlock call (or set of calls…
-
comment
Comment #42014820
Frama-C uses CIL.
-
comment
Comment #41791571
GCC and clang (and maybe others) have 'statement expressions': https://godbolt.org/z/sqYnbh4Ej
-
comment
Comment #41227084
This would be nice also to have an API that's usable from C/C++ code running in Wasm. I see libraries often do this where they expose a C/C++ library like Postgres to Wasm and the …
-
comment
Comment #40922640
I use this static reflection hack in C++ -- https://godbolt.org/z/enh8za4ja You do have to tag struct fields with a macro, but you can attach contexpr-visitable attributes. There's…
-
comment
Comment #38412022
Nice! Ebiten is a super nice API for Go. Lots there to be inspired by in API design. Another API I like a lot is Love for Lua (which also actually can be used from C++). Re: the co…
-
comment
Comment #38277942
Hello world just needs to call console.log, so doesn't need libc. Here's an example that builds without libc / emscripten to produce a very small wasm hello world: https://github.c…
-
comment
Comment #34744947
Does Grasshopper in Rhino count?
-
comment
Comment #33820712
I do also really like Go for various reasons, and have been working on a Go -> C++ transpiler and associated ECS libs to make a personal game project with. I used it to make a game…
-
comment
Comment #32881240
I've been using my own little Go (subset / my own extensions) -> C++ compiler -- https://github.com/nikki93/gx -- and found it to be a fun way to add some guardrails and nicer synt…
-
comment
Comment #32240773
Re: perf for hobby gamedev, I basically agree for native builds, but lately I've felt like Wasm support seems key for hobby gamedev (so you can have more people play your game / wi…
-
comment
Comment #32141076
For the client I use a simple go -> c++ compiler I wrote and compile to wasm from that actually, on my side projects. It had zero overhead interfacing to / calls to C/C++ (includin…
-
comment
Comment #32129813
Personally I'm not super familiar with its benefits if any on the server and would actually not use it on the server myself and just build binaries directly, probably using Go. But…
-
comment
Comment #32129756
GC implementations over Wasm definitely have perf issues. eg. Go compiled to Wasm has these with its GC. The main way when compiling to Wasm now is to not use a GC, which is reason…
-
comment
Comment #32129678
The extent of Wasm's availability on browsers is quite big right now. Both iOS and Android and all major desktop browsers. That sort of reach is what I meant by the term "the brows…
-
comment
Comment #32129609
One of the things that killed Flash was not being supported on iOS while Wasm runs fine (and actually pretty well!) on iOS which is pretty good for reach.
-
comment
Comment #32129599
I think you missed the part about it running in the browser? But yes, some previous technologies are similar to some new technologies, that's not really an insight at this point. E…
-
comment
Comment #32129390
The main benefits are being able to use the same codebase for native and web builds and also not needing to use a GC and being able to do memory management yourself. The latter stu…
-
comment
Comment #32129375
For DOM you can get pretty far binding http://google.github.io/incremental-dom/ to C (it's all just procedure calls). But other than that there are OpenGL bindings (eg. in emscript…
-
comment
Comment #32129321
You can compile C, C++ and a bunch of other languages to Wasm, while you can't do that with Java as a target. A lot of existing C code compiles unchanged. And Wasm also actually ru…
- comment
-
comment
Comment #30860297
Sweet! I've been using it for the same. Example game project (did it for a game jam): https://github.com/nikki93/raylib-5k -- in this case the Go gets transpiled to C++ and runs as…