Better HN
topnewbestaskshowjobs
Log inSign up

longor1996

58 karma · joined Jul 3, 2023 (3y ago) · 30 submissions

Software Developer whose brain is full of sarcasm, bad memes, autism and ADHD; Personal Site at http://www.longor.net/

Maintainer/writer of https://voxel.wiki/

Submissions

comment 1mo ago · link · parent

When it comes to writing small languages/interpreters, it is obligatory to mention "Crafting Interpreters" by Robert Nystrom, so here we go!

https://craftinginterpreters.com/

comment 1mo ago · link · parent

Which requires doing a ton of math/layout in JavaScript, since I need those shapes to go between, around and behind the normal HTML elements (working on games and editors here).

Doing all that is a colossal PITA, since SVGs aren't built to act as "fragments" I can arbitrarely draw with CSS or Canvas.

This new html-in-canvas API will alleviate the pain a bit, at least.

comment 1mo ago · link · parent

Yes, I'm aware of this API, but that's exactly the problem (IMHO): it's an API, not built right into CSS itself, thus forcing you to use JavaScript.

What I really want is something along the lines of...

    @declare-some-shape MYSHAPE (ARGS) {
        /* tree of draw commands */
        /* can reference css animations, timelines, variables, etc. */
    }
    
    #my-div { content: draw-some-shape(MYSHAPE ARGS, TRANSFORM); }

    /* or, as some kind of pseudo-element: */
    #my-div::draw-some-shape(MYSHAPE) { ??? }
And yeah, fully aware that this looks abominable, but I'd rather this than stringly/DOMly generating SVGs or drawing in a canvas.

comment 1mo ago · link · parent

Or to add canvas operations (in?)directly to CSS!

Imagine being able to declare a list of paths with fill/stroke-paints to draw, filled in from attributes, variables and `calc()` values... one can only dream.

comment 1mo ago · link · parent

They're less functions and more akin to templates or hygienic macros, iiuc from the specs/docs

comment 1mo ago · link · parent

...and it sure as hell doesn't help, that "social" media (not networks) is annihilating people's attention spans and ability to care, beyond upvoting and meaningless comments (like this one!).

comment 2mo ago · link · parent

Yep, and the understandable fear/worry/expectation/knowledge of that possibility happening, is part of the reason that (usually) stops that cycle from starting in the first place.

comment 2mo ago · link · parent

Not a lot of people, because if you went and murdered someone, their family (if they have any) would presumably just murder you in turn.

comment 2mo ago · link · parent

Because retooling and relearning development pipelines (on any level/most teams) for games is a horrifically expensive and time-consuming affair... which are resources not spent on developing any one of the potentially dozen or so games. It's just priorities, alas.

comment 6mo ago · link · parent

The new C# unions are not reference-only. The attribute/interface allows implementing custom union types by writing `TryGetValue`-methods instead of a single `object? Value {get;}`. The compiler handles this transparently.

comment 7mo ago · link · parent

Seems to be "native" as in "not a web-browser/view".

comment 8mo ago · link · parent

Err, the website footer takes up the entire lower half of the viewport/screen, on mobile.

comment 8mo ago · link · parent

Well, do I ever have a treat for ya!

https://voxel.wiki/wiki/references/

comment 8mo ago · link · parent

Location: Europe, Germany, State of BW, District of RV.

Remote: Yes, or hybrid if close by; office only if in-district.

Willing to relocate: No, unable to.

Technologies: C#, Rust, Git, SQLite, PostgreSQL, Vulkan, TypeScript, JavaScript, HTML, CSS, Regex, PowerShell, Blender, Unreal Engine, Python, OpenGL, C, CCNA

Résumé/CV: Available on request.

Email: longor [at] mailbox [dot] org

LinkedIn: https://www.linkedin.com/in/lars-k-69727719b/

---

I've been tinkering with computers for 20 years now, working for the last 9, building a variety of side-projects & prototypes; most recently a binary data-format using gradual typing and writing a wiki focused on voxels. My focus lies mostly around compilers/DSLs, graphics and web-technology.

The current job/contract of creating an "Welding-Assembly Process-Tracking, Reconstruction and Reporting"-System (using C#/Typescript/PostgreSQL) is nearing completion (~1.5 months), so I'm looking for new/interesting opportunities... excluding AI/LLM related things.

comment 9mo ago · link · parent

That this is a plausible explanation is... beyond horrifying to me.

comment 9mo ago · link · parent

Location: Europe, Germany, State of BW, District of RV.

Remote: Yes, or hybrid if close by; office only if in-district.

Willing to relocate: No, unable to.

Technologies: C#, Rust, Git, SQLite, PostgreSQL, Vulkan, TypeScript, JavaScript, HTML, CSS, Regex, PowerShell, Blender, Unreal Engine, Python, OpenGL, C, CCNA

Résumé/CV: Available on request.

Email: longor [at] mailbox [dot] org

LinkedIn: https://www.linkedin.com/in/lars-k-69727719b/

---

I've been tinkering with computers for 20 years now, working for the last 9, building a variety of side-projects & prototypes; most recently a binary data-format using gradual typing and writing a wiki focused on voxels. My focus lies mostly around compilers/DSLs, graphics and web-technology.

The current job/contract of creating an "Event-based Welding-Assembly Process Tracking, Reconstruction and Reporting"-System (using C#/Typescript/PostgreSQL) is nearing completion (~2 months), so I'm looking for new/interesting opportunities.

comment 10mo ago · link · parent

Location: Europe, Germany, State of BW, District of RV.

Remote: Yes, or hybrid if close by.

Willing to relocate: No, unable to.

Technologies: C#, Rust, Git, SQLite, Postgres, Vulkan, TypeScript, JavaScript, HTML, CSS, Regex, PowerShell, Blender, Unreal Engine, Python, OpenGL, C, CCNA

Résumé/CV: Available on request.

Email: longor [at] mailbox [dot] org

LinkedIn: https://www.linkedin.com/in/lars-k-69727719b/

---

My current job/contract is nearing completion (~3 months), so I'm looking for something new-ish.

comment 10mo ago · link · parent

Maybe you could use unifont glyphs (drawn as SVGs?) as fallback?

comment 11mo ago · link · parent

Nah, [BetterFox](https://github.com/yokoffing/Betterfox) still works fine

comment 11mo ago · link · parent

On the surface level, building/compiling/running, maybe... But properly integrating with a given platform (or hell, version of platform!) is a whole new world of pain. :(

comment 1y ago · link · parent

Given that many tools are relatively small, I'd almost argue it wouldn't take more than 30min, ignoring testing.

comment 1y ago · link · parent

Oh, sorry! Shouldn't have said "all" there... :'D

comment 1y ago · link · parent

Wasn't all that bad PR mostly caused by the coal/oil industry, doing some serious astroturfing for a decade or so?

comment 1y ago · link · parent

Interesting! Do you have some studies or references at hand for this?

Never heard of "human brain needs nicotine" before...

comment 1y ago · link · parent

The article actually (accidentally or on purpose?) refers to just that:

> How to avoid this madness? Introduce another low-level configuration file. Back to level one...

comment 2y ago · link · parent

It absolutely does, as the definition of a voxel is, roughly, "a 3ormoreD regular grid of point-samples".

comment 2y ago · link · parent

There are quite a lot of successful voxel-based games; see https://voxel.wiki/wiki/projects/ for an incomplete list.

Most people think voxel means 'cube' or 'block', but really it just means "regularly spaced sample in a 3-or-more-D grid".

The voxel gamedev community tends to call Minecraft-y voxel games "bloxel"-based.

comment 2y ago · link · parent

Perhaps redbean might be of interest? It's a web server with all the batteries included, scripted via lua.

https://redbean.dev/

comment 2y ago · link · parent

With the help of the voxelgamedev community, I'm maintaining a relatively large listing of such projects over at https://voxel.wiki/wiki/projects/.

Sadly, a lot of projects get abandoned.... :(

comment 2y ago · link · parent

bgfx and The-Forge come to mind:

https://github.com/bkaradzic/bgfx

https://github.com/ConfettiFX/The-Forge