Better HN
topnewbestaskshowjobs
Log inSign up

adrianton3

680 karma · joined Oct 7, 2014 (12y ago) · 128 submissions

Submissions

comment 7mo ago · link · parent

In their defence "hi" sounds very much like "high" in my mind's ear and "lo" like "low" :)

comment 7mo ago · link · parent

Torch flames and trees swaying in the wind do not affect gameplay at all - they're most likely done in a shader and I think it's easier to keep updating a time uniform than to add extra conditions everywhere :D

comment 7mo ago · link · parent

A C systems programmer can definitely make a list of buzzwords as well.

Also, let's say team A (10 C app/systems programmers) in a company asks HR to look for a C developer and HR comes back to them with 10 great web developers to be grilled by the engineers of team A - what happens then? Does team A shrug and say "welcome to our C codebase, we shall now rewrite it in tailwind or whatever because you are now here!" - I really don't see how it can play out

comment 7mo ago · link · parent

I don't follow - why do you think HR would be interested in shiny hot new web stack keywords over anything else?

5.

Using fewer syllables to express numbers(thegraycuber.github.io ↗)

25 points · by adrianton3 · 10mo ago · 42 comments

comment 1y ago · link · parent

"5.11 or 5.9 which number is greater?" was a meme query a few months ago to ask an LLM as it would confidenly prove how 5.11 is greater - so yes, we do need expert validation!

comment 1y ago · link · parent

> booked tickets for a flight or bought a home or a car or watched a cat video

Would you install a native app to book a flight? One for each company? Download updates for them every now and then, uninstall them when you run out of disk space etc

I can ask the same question about every other activity we do in these non-native apps.

comment 1y ago · link · parent

I picked electron with portability in mind; I anticipate some unknown unknowns (since I've never owned a mac for ex) but they should be solvable.

I have support for linux, controllers, steam deck, mac on my to-do list in that order - it's simply a matter of time (up-front, maintenance, testing) and money since macs do tend to cost quite a bit. I'm a linux user myself and I hope I'll port it properly sooner rather than later but meanwhile I also know it seems to just work with proton.

comment 1y ago · link · parent

Thanks for the kind words. People's passion projects are the main reason I keep coming to HN - the spirit is alive and very healthy!

Hope you have fun!

comment 1y ago · link · parent

I clarified it on the steam page - thanks for bringing it up!

I tested it on Windows 11 and Linux (via proton). I'm afraid I can't say anything about Mac OS until I get my hands on apple hardware and I'm not familiar enough with their emulation layers to take a guess.

comment 1y ago · link · parent

The game itself is written in JS and packaged up with electron. I used PIXI.js for all the rendering - it's great for 2D-anything really. On the server side, the evaluator is written in node and a bit of php.

I'm aware this tech stack is a bit divisive :) but I made sure it runs just fine at 120 fps on my non-gaming laptop.

12.

Show HN: Robot Unlock – an open-ended programming game/zachlike(store.steampowered.com ↗)

43 points · by adrianton3 · 1y ago · 11 comments

comment 1y ago · link · parent

> Heavy use of symbolic operators has thankfully fallen out of style.

I assume this refers to operator overloading. I think `a + b - c` looks way more readable than `a.add(b).sub(c)` and I'm happy when a language lets me define my own operators for vectors/matrices but I also have a side-curiosity: do they ever have a good use case outside of a math context? I never heard anyone praise `<<` `>>` in C++ for ex.

comment 1y ago · link · parent

Here are some values that are (understandably) not listed on the blog. They happen only due to the limited precision of floating point formats.

  128              = √(2 / √√(√2 - (2 / √2)))
  8192             = √√(2 / ((√2 * √2) - 2))
  16384            = (2 / √√(√2 - (2 / √2)))
  67108864         = √(2 / ((√2 * √2) - 2))
  134217728        = (2 / √(√2 - (2 / √2)))
  4503599627370496 = (2 / ((√2 * √2) - 2))
  9007199254740992 = (2 / (√2 - (2 / √2)))
  6369051672525773 = (√2 / (√2 - (2 / √2)))
I found these by accident a long time ago but kept them because they do "work". Try to input one expression in the lil box in https://www.wolframalpha.com/?source=nav and they will quickly evaluate to these values; the charade goes away after you press Enter and get the (mathematically) correct answer.

My old solvers from what feels like a previous life: https://madflame991.blogspot.com/2013/02/four-fours.html https://madflame991.blogspot.com/2013/02/return-of-four-four...

That was fun

comment 1y ago · link · parent

I can't recommend "return true to win" (https://alf.nu/ReturnTrue) enough to learn how to golf JS. I think it's more accessible to learn one 10-20 char snippet at a time than a big project like a 1k submission.

comment 1y ago · link · parent

In certain conditions gcc will actually generate instructions that use this same bitvector described: https://godbolt.org/z/6Gfjv6PGd (notice the funny 130159 value in there)

The only thing I did was to adjust the range of characters so that the bitvector fits 64 bits. Sadly, I do not this it would work for the author's bigger range.

comment 1y ago · link · parent

> They mate for life.

Not really; see https://news.mit.edu/2022/divorce-albatross-shy-males-0913 and https://oceanconservancy.org/blog/2020/02/13/albatross-reall...

comment 2y ago · link · parent

I tried the demo and I liked it!

I would prefer if I could pick a color in a faster way than switching to the color picker or using the palette: maybe middle click or Ctrl + left-click (gimp does that). It would reduce the mouse travel quite a bit; sometimes I happen to have the exact color I want next to my cursor.

I would also suggest putting the trailer on Steam. All I see is images in the steam carousel thing; I think the trailer being in the carousel would help.

comment 2y ago · link · parent

I've been playing the same 2 games for many years and I think I got pretty good at them and I've used multiple accounts - under your assumption I look like a cheater.

20.

The famous Eve Astrid Andersson (2001)(web.archive.org ↗)

1 points · by adrianton3 · 2y ago · discuss

comment 2y ago · link · parent

> but isn't the "general" architecture of most of our computers "von neumann"!?

That's something I was also curious about and it turns out Arduinos use the Harvard architecture. You might say Arduinos are not really "computers" but after a bit of googling I found an Apple II emulator running on an Arduino and, well, an Apple II is generally accepted to be a computer :)

comment 3y ago · link · parent

What would prevent me from walking around the street or in semi-public places recording non-stop on my phone? Heck, I could have a few phones in my pockets!

23.

EU lawmakers committee reaches deal on AI Act(reuters.com ↗)

2 points · by madflame991 · 3y ago · discuss

24.

Advanced Packaging Part 1 – Breakdown of Economic Semiconductor Scaling(semianalysis.com ↗)

1 points · by adrianton3 · 3y ago · discuss

25.

PAL Colour Recovery from black-and-white ‘telerecordings’ (2008)(techmind.org ↗)

82 points · by madflame991 · 4y ago · 44 comments

26.

An unusual hardware architecture: APA (Associative Processing Array)(yosefk.com ↗)

2 points · by madflame991 · 4y ago · discuss

27.

Retro Game Internals: Punch-Out Passwords(tomorrowcorporation.com ↗)

9 points · by madflame991 · 4y ago · 1 comment

comment 4y ago · link · parent

I was thinking the same; they have a map of their route and I see they went through Rahova, Ferentari and they somehow missed Zetari and the cemeteries there on their way to Anghel Nutu; those areas are actually the worst off of the entire city - quite a coincidence :/

I’ve been almost daily through these areas for years; used to actually live on str Anghel Nutu; finding this on HN on christmas day is a bit surreal. I come here for tech articles mainly

comment 4y ago · link · parent

I'm always a bit skeptical about physics because whatever models we find and celebrate now will have to be adjusted at some point in the future. I wonder if there's any way of knowing that something is indeed impossible or if our model of something is final and set in stone.

I'm happy there are at least some universal constants like absolute zero or the max possible temp or planck length.

And as for anything FTL, I hear it breaks the rules of causality and that seems to be a big no-no and is indeed impossible.

12345