Live data from Hacker News

Viewing profile — nikki93

nikki93

HN member
Joined
Fri, Apr 15, 2011, 8:52 PM UTC
HN karma
598
Public activity
329 items

About nikki93

I work on https://castle.xyz/

https://github.com/nikki93

http://www.nikhilesh.info

Recent public activity

  1. 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…

  2. comment
    Comment #45123173

    A relevant paper: https://arxiv.org/abs/2306.11644 -- the Phi models (and many others too) are based on this idea.

  3. 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…

  4. 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…

  5. comment
    Comment #42014820

    Frama-C uses CIL.

  6. comment
    Comment #41791571

    GCC and clang (and maybe others) have 'statement expressions': https://godbolt.org/z/sqYnbh4Ej

  7. 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 …

  8. 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…

  9. 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…

  10. 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…

  11. comment
    Comment #34744947

    Does Grasshopper in Rhino count?

  12. 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…

  13. 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…

  14. 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…

  15. 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…

  16. 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…

  17. 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…

  18. 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…

  19. 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.

  20. 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…

  21. 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…

  22. 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…

  23. 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…

  24. comment
  25. 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…