HNHacker News
TopNewBestAskShowJobs

RedNifre

529 karma · joined October 19, 2014

submissionscomments
RedNifre··on Coding My Handwriting
Interesting. In the 90s in Germany I learned that for some letters you lift the pen, even though the result will look connected, e.g. "ac" would lift after the a, draw the c leftwards, touching the end of the a and then swing around to the next letter, kinda like this, but leaving no gap between the letters: /C

Also, t would be disconnected with itself, being written like /| followed by a - overlapping the |

RedNifre··on UTC, Tai, and Unix Time (2001)
Doesn't it only pick C? Negative leap seconds make POSIX time skip a second.
RedNifre··on Thumb Nation: How We Learned to Play with Our Fingers
Weird article, in my experience it's the other way around and the article kinda explains why:

Old people grew up with thumb based gaming consoles, e.g. the Game Boy, whereas people 20 years old or younger grew up with smart phones as their gaming devices and thus use their index finger.

This makes perfect sense, given that the thumb is the least dexterous finger: People around 40 might be the first and last thumb generation.

RedNifre··on Linus Torvalds adds arbitrary tabs to kernel code
It's a typewriter thing and meant for writing tables, so tab has always advanced the cursor to the next "tabular" stop. What would be the use case of having them fixed width?
RedNifre··on The ü/ü Conundrum
How?
RedNifre··on Star Trek: Borg – Remastered
The Sierra Adventures used vector graphics, so it's possible to render them in higher resolutions: https://youtu.be/sclZDCjUVvI?si=voV4oOiiFdbGzA75&t=294
RedNifre··on Just 137 crypto miners use 2.3% of total U.S. power
Sure you can, what is called "Proof of work" in the context of Bitcoin is actually "Proof of money lost" in the form of paid electricity. If you taxed mining at 90%, you would also reduce mining and thus electricity consumption by 90%.

(Ideally, this would be a global tax and not too high, since reducing mining too much would compromise security)

RedNifre··on Untranslatable
You click on one of the languages on a random post, then change the language in the URL to the one you like.
RedNifre··on Was BASIC that horrible or better?
It's a great language if you want to write a compiler for fun: You can add the different statements incrementally, so you quickly get to a point where you can compile your first program and then add more and more features to compile more and more.

Also, when I was implementing FOR, my first naive implementation was compiling the body first, then append the loop related things that check the conditional and jump backwards to the start of the body. "Hang on, what about the case when the condition is initially false?" I thought, only to discover that the BASIC standard actually specifies that a FOR loop runs at least once, even if the condition is false! Officially, the language is advertised as for beginners, but to me it looks like it was meant as a lingua franca of computers, as in not only easy to understand, but also easy to implement.

Here's a BASIC compiler for the HP 15-C calculator written in Idris: https://gitlab.com/michaelzinn/voyc/-/blob/master/src/Compil...

RedNifre··on Code Is Not Technical Debt
Isn't it more useful to think of code not as an asset but as a liability? As in, instead of code being "produced", you "spend" lines of code when you solve a problem, i.e. "Getting X amount of business value cost us Y lines of code"?

As for the phrase "technical debt": While I like the metaphor, in my experience, most people use it as a synonym for "bad code", so I recommend making sure everyone agrees on the same definition before using it.

RedNifre··on Don’t starve, Diablo – Parallax 7
No, it's not: Mode 7 can only zoom, translate and rotate the layer in 2D. For example, the Bowser fight in Super Mario World is a typical use of mode 7: Bowser moves around, sometimes rotates and between rounds flies around in "3D" by zooming in and out.

The cool 3D hack comes from co-processors in the cartridge: Games like Super Mario Kart use extra chips than can quickly compute new mode 7 parameters per scanline: If you change the zoom and translation of mode 7 on every line (but keep the rotation the same), you can get the typical tilted 3D look by having the upper lines zoomed out (smaller) and the lower lines zoomed in more (bigger).

This "change the zoom on each scanline" trick is very different from what modern GPUs do and not an arbitrary transform, e.g. with the scanline trick you can only rotate the plane around the horizontal axis, but not around the vertical one.

RedNifre··on Code is run more than read
+0 = -0
RedNifre··on A gentle introduction to two's complement
It's -5 because if you add 5 to it, you get 0:

     11111011
   + 00000101
     --------
  (1)00000000
Two's complement is just like those spinning number wheel counters, like the km counter in old cars: If you drove more than 999999 km, it would look like you drove 000000. Now, if you had a funny car where driving backwards would subtract from the km counter, starting at 000000 and driving backwards 1 km would result in 999999, therefor 999999 means -1 (you could say 000000 to 499999 is positive, 500000 to 999999 is negative).
RedNifre··on How did people deal with punch cards?
The last line would be on a separate card, so it does not need to be reversible.

I wonder if you could write this on one card like

  /**/ debug = 1; /*/ ;0 = gubed /**/
RedNifre··on What a caste discrimination ban means for Americans
Yes? Wasn't that the entire point of racism in the first place?
RedNifre··on Hexadecimal clock counting down to 2038 problem
Not in this case: They also changed the amount from "5.99" to "5.99 €", so the total number of bytes went up (3 bytes for the €).
RedNifre··on CatalaLang/catala: Programming language for law specification
Will it help?

On the one hand, I think it would be fantastic, if you had automated tests for the law. For example, when German politicians introduced the "hacker law", you could have pointed out that "This new law would break the 'security researchers need to be allowed to do penetration testing' test".

On the other hand, "Brexit is in conflict with the Good Friday Agreement, we need a solution for Nothern Ireland." was known without machine readable laws and test, but politicians ignored it anyway.

Maybe what's needed is a law that outlaws test-breaking laws and requires politicians to fix the tests first, but I bet that would just result in a lot of "commented" tests.

RedNifre··on Hexadecimal clock counting down to 2038 problem
My bank is now y2.1k bug ready: In their CSV export, they changed the date format for the year back to 2 digits.

It only takes 23 years to forget history.

RedNifre··on Lodash just declared issue bankruptcy and closed every issue and open PR
As an illustration, I wrote a Sokoban game in that style (no mutation, no side effects, partial application everywhere). See https://github.com/Michael-Zinn/fpsokobanjs/blob/master/game...
RedNifre··on What is wrong with TOML? (2019)
Try edn: https://learnxinyminutes.com/docs/edn/
RedNifre··on Google no longer offers new domain registrations
What makes you think that search will last? They could easily sunset it as soon as the majority of users switch to some AI chat for getting answers.
RedNifre··on The Simplest Walking Robot: A bipedal robot with 1 actuator and 2 rigid bodies
We can't see what you posted, because it does not ship to our location.
RedNifre··on Stolen from Apple (2004)
Oh, interesting, thanks for correcting me! Why didn't the Game Boy check the logo that it loaded to display instead of loading it twice though?
RedNifre··on Stolen from Apple (2004)
This reminds me of how the Game Boy displayed the Nintendo logo on boot up: The logo is a bitmap in the cartridge, the Game Boy displays it and only continues if the checksum matches the Nintendo logo. The point of this is that trademark should prevent the use of the Nintendo logo bitmap in unlicensed games, basically doing DRM through trademark. (It didn't really work, since companies would design their own logos such that they had the same checksum as the Nintendo logo)
RedNifre··on Terminal Support for Emoji
Are there some well defined Unicode subsets, e.g. one without Emoji? (I'm only vaguely aware of XML specifying "Unicode without control characters" in the beginning).
RedNifre··on Help the Library of Congress create games to improve public knowledge of civics
Or two bots, generating the same content.
RedNifre··on You Are Atlas, You Hold Up the Sky
This would be interesting as a one-off thing, like reddit's "The Button". Having it say "The sky has fallen 989 times." makes it a bit meaningless.
RedNifre··on I claim Rich Hickey is wrong about non-null arguments to functions (2020)
Maybe Idris or Blodwen. Idris can at least define a printf function where the string must contain the right template, i.e. printf("number %i text %s", 5, "hey") compiles, but printf("number %s text %s", 5, "hey") does not, so I'm not sure it's impossible to encode string reversal in the type signature.
RedNifre··on Ironies of Automation (1983) [pdf]
The endgame is that we will be spending 99% of our time restarting IDEs and clearing caches to get rid of nonsensical errors, but since we will be 1000x as productive in the remaining 1%, it will still be worth it economically.
RedNifre··on The rule says, “No vehicles in the park”
I don't see this as a good way to get the point across. I perceived it like this:

1. This is a game, here are the rules, remember, it's not about intent, as in "should this vehicle be allowed?", it's strictly about the rules, i.e. "is it a vehicle" && "is it in the park?".

2. Look at how difficult content moderation is, people said the ambulance should not be allowed in the park!

While I agree that content moderation is difficult, prefacing it with a rigged game that primes people to make bad judgements is not a good argument.

(Personally, I would like every rule to come with the justifications/reasoning behind it, so I could make the decision to break it more easily, e.g. if wilderness areas had the rules "No mechanized or motorized equipment shall be used" annotated with "It's about the noise" then an electric wheelchair would be fine, but not a loud drone etc.)

← PreviousPage 4 of 7Next →