HNHacker News
TopNewBestAskShowJobs

cygx

3,754 karma · joined January 27, 2011

submissionscomments
cygx··on Tomorrow the Unix timestamp will get to 1,666,666,666
However, it also allows you to re-sync a device just by putting in the current datetime - at the cost that it'll drift at a rate of up to two seconds per year (though the current average is more like 0.5s given 27 leap seconds in 50 years).
cygx··on Tomorrow the Unix timestamp will get to 1,666,666,666
Hmmm, am I wrong in understanding that, by pretending leap seconds don't exist, the unix time actually represents how many seconds passed rather than what time time is now?

It's the other way around: Unix time pretends every day has exactly 86,400 seconds, and consequently, you can calculate the current time of day by taking the respective modulus.

However, this comes at the cost that the difference between two unix timestamps does not yield a duration in seconds in general.

cygx··on Tomorrow the Unix timestamp will get to 1,666,666,666
At that time, a total of 1,666,666,693 seconds will have passed since 1970-01-01 00:00:00 GMT as Unix time pretends leap seconds don't exist...
cygx··on Researcher discovers another astronomy book written by Galileo Galilei
It's true that due to the large mass of Jupiter, the barycenter of the solar system lies outside the surface of the sun.

However, the barycenter of any sun/planet 2-body system besides Jupiter lies within the sun's surface, so I'm quite comfortable with the claim that at the very least most planets do orbit the sun...

cygx··on Researcher discovers another astronomy book written by Galileo Galilei
In my opinion, that would make things even worse:

The sentencing clearly states that the earth revolving around the sun "is a proposition absurd and false in philosophy, and formerly heretical", and by that time, Copernicus's De revolutionibus orbium coelestium had already been placed on the Index of Prohibited Books.

Are you saying the church actually knew Galileo was right, and did this anyway?

cygx··on Show HN: Minimal, no-JS web forum software
Ohh I miss the good old days of forums in general. I find all this new software, where conversions are "threaded" stupidly hard to read.

A 'classical' web forum is threaded, contrasting with an unthreaded (bulletin) board - at least that's how the terminology was used in the German webdev scene of the late 90s/early 2000s, possibly due to the prominence of SELFHTML and its forum.

cygx··on German rail operator says train disruption caused by sabotage
I doubt the involvement of any well-known climate activist groups: They tend to claim responsibility for their actions, as the point is to generate publicity and political pressure.
cygx··on Elon Musk moves ahead with Twitter deal in 13D filing
One of Elon's most visible projects (Hyperloop) is literally public transit.

Elon does not actively work on the Hyperloop, and critics have argued it may even be a red herring that he put out there deliberately to distract from more realistic and well-proven high speed rail technology. What Elon (or at least the Boring Company) did work on, though, is the 'Vegas Loop', a sad joke of a project.

cygx··on Elon Musk moves ahead with Twitter deal in 13D filing
Elon: The richest and most successful business person in the history of humanity

Rockefeller probably still has him bet, never mind historical figures such as Mansa Munsa or Augustus Caesar (though in rather different contexts).

Personally, I wouldn't frame things in terms of competence, but trustworthiness. However, his disdain for public transport does seem rather myopic...

cygx··on Go runtime: 4 years later
Historically, goroutines worked like in libdill, only passing control to the scheduler on certain calls. So did the Go runtime suddenly become a VM at version 1.14, when preemption was added?

And why the distinction between OS threads and green threads? Sure, in case of OS threads, it's not the language runtime that does the scheduling, but that just means that the operating system is now our virtual machine.

I would argue that what makes a language runtime a virtual machine is not the presence of a garbage collector, a jit compiler, or a scheduler (with or without preemption), but that it has well-defined semantics in terms of something that looks a bit like a real machine - hence the name! In particular, there's a set of instructions it understands. In case of the JVM, the instruction set is defined in the Java Virtual Machine Specification (with Java bytecode its representation), in case of the CLR, it's defined in the Common Language Infrastructure specification (with CIL bytecode its representation), in case of Smalltalk, it's defined in the Blue Book, in case of WASM, in the WebAssembly core specification.

cygx··on Taken under fascism, Spain’s ‘stolen babies’ are learning the truth
You're assuming fascist ideology needs to be internally consistent. If you look at historical examples, it rarely is.
cygx··on Go runtime: 4 years later
Would you consider the C runtime a virtual machine once you link against libdill or use OpenMP? If not, why not? If so, well, then we just disagree on the term 'virtual machine'. My litmus test would be the presence of some sort of well-defined instruction set.
cygx··on Go runtime: 4 years later
It's not an implementation detail, the interface is mandatory and public (Java bytecode).
cygx··on Go runtime: 4 years later
Most relevant in context of our discussion: The JVM is a (virtual) stack machine with its own instruction set and semantics specified in the Java Virtual Machine Specification. As far as I'm aware, something equivalent does not exist for Go, or as an internal implementation detail at best (some intermediate representation might potentially qualify if you squint at it the right way).
cygx··on Go runtime: 4 years later
Not every runtime environment is a virtual machine...
cygx··on Turns are better than radians
You need to apply the chain rules, ie

    sin'(ax) = a cos(ax)
cygx··on Turns are better than radians
In my opinion, it puts too much emphasis on the variables compared to the operators and numbers and makes the expression as a whole harder to parse at a glance as I have to actually read the names.
cygx··on Turns are better than radians
Did you ever need to do involved mathematical manipulations using pen and paper? How would you judge the readability of the following expressions:

  zero_point equals negative prefactor divided_by two plus_or_minus square_root_of( square_of(prefactor divided_by two) minus absolute_term )

  zero_point = -prefactor/2 ± √((prefactor/2)² - absolute_term)

  x = -p/2 ± √((p/2)² - q)
cygx··on Guix for Development
Same backend, but different frontend, so to speak. Hence, it used to be possible to have nix and guix share a store and local state directory. Not sure if that's still possible today, though...
cygx··on Why the Rings of Power Show Is Not Good (Part #7934)
I feel you. "Thankfully", my memory of how these things were supposed to happen is foggy at best, so I'll be able to enjoy the series on its own merits...
cygx··on Why the Rings of Power Show Is Not Good (Part #7934)
Haven't seen Rings of Power yet, but I'm probably going to be fine with it - Tolkien fan-fiction still scratches the itch. I found what they did to the Hobbit far more upsetting, and had a friend who absolutely hated the original movie trilogy back in the day: In contrast to Rings of Power, where the writers just make shit up, there was detailed source material available, making any deviation far more jarring.

Sauron the flaming eyeball? Denethor smacking his lips and dribbling food down his chin so that even the last person in the audience understands that he's a "bad guy". Faramir getting tempted by the ring? It's quite interesting how some people treat it as some sort of gold standard of faithful adaption...

cygx··on Why the Rings of Power Show Is Not Good (Part #7934)
However, note that Galadriel is supposed to be over six feet tall, and her Teleri name is Nerwen - man-maiden - because she used to tussle with the boys back in the day. She's "a match for both the loremasters and the athletes of the Eldar in the days of their youth" and "she was then of Amazon disposition and bound up her hair as a crown when taking part in athletic feats".
cygx··on Why the Rings of Power Show Is Not Good (Part #7934)
Not a lawyer, but I'm assuming anyone who's mentioned in the Hobbit, the trilogy and the annexes (ie the stuff Amazon bought the rights to) even in passing can make an appearance. However, if these people do things exclusively described elsewhere in the way they are described in those other works, there's an issue...
cygx··on Why the Rings of Power Show Is Not Good (Part #7934)
They do not have the rights to the Silmarillion, so being too accurate could get them sued.

Given these constraints, I probably won't be too upset by any liberties they take once I get around to watching the show - never mind that by now, I've probably forgotten most of the lore anyway ;)

That said, I'd have preferred a taller Galadriel and bearded dwarf ladies would have been fun...

cygx··on Olive.c: a simple graphics library that does not have any dependencies
Note that C23 will include a variant of incbin spelled #embed: Semantically, the preprocessor will insert a list of integers which you can use to initialize an array.
cygx··on Available today: The Windows 11 2022 Update
Not to mention the fact that selecting icons from your taskbar isn't even the most efficient way of switching windows, which would be win+number or alt+tab.

Not sure that's true in the setup under discussion: win+# requires figuring out which number to press - and if the count is wrong, I mind even end up on an entirely different desktop via some apps I keep pinned on the taskbar. And at the very least subjectively, alt-tab feels rather jarring and requires some mental re-adjustment before I find the proper window to click.

cygx··on Available today: The Windows 11 2022 Update
I think you can get about 8 non-collapsed windows.

My taskbar fits 28 windows before scrolling happens. It gets a bit unwieldy after the first 12, and eventually, titles will no longer be displayed.

do you really need more than that?

Yes.

cygx··on It's time to halt starting any new projects in C/C++
Sure. But the selling point of Rust is that the compiler will check ownership and lifetimes for you. That goes away if you use integer handles, in which case I might as well use another language.
cygx··on CppCon 2022
The claim was that, quote: According to the law in most places, there are no such places that tolerate an "open nazi" because being a nazi is a crime.
cygx··on CppCon 2022
As far as I'm aware, organizations like the American Nazi Party or the National Socialist Movement (United States) are legal in the US. Even Germany failed to ban its neo-Nazi party (the National Democratic Party of Germany) despite the court acknowledging that its goals are anti-constitutional and similar in nature to historical National Socialism. As long as you color within the lines, it is possible to be an open Nazi in most places.
← PreviousPage 4 of 34Next →