HNHacker News
TopNewBestAskShowJobs

dirkt

750 karma · joined May 28, 2015

submissionscomments
dirkt··on The Heisenberg Uncertainty Principle Is Pure Mathematics
> Why is the fourier transform of position equal to momentum?

That comes out of the way you get the probability distribution of the position and the probability distribution of the momentum out of the wave function.

If you do the math, then one turns out to be the fourier transformation of the either. (And of course the article skipped over this, because it needs quite a bit of math).

Of course this then begs the question why there are wave functions, and why you get the position and momentum from the wave function in that particular way. And I guess the only answer I have to that is "that's how quantum mechanics works, and it matches what we observe".

> More generally, why would the fourier transform of an observable be another observable?

Again, that comes out of how you calculate particular observables from the wave function. Like above, if you do this for the energy probability distribution and the time probability distribution, they turn out to be related.

And it's not the case for any observables you can compute. For example, the energy and position are NOT fourier transforms of each other.

dirkt··on size_t-to-int vulnerability in Linux’s filesystem layer
A better alternative would be to keep PID1 as simple as possible, and do anything more complex in a subprocess.

Systemd of course goes in the opposite direction: It assimilates as much functionality as possible from the OS into systemd (though to be fair, not all into PID1).

dirkt··on BANCStar (2000)
I hope this is meant sarcastically...
dirkt··on A Solarpunk Manifesto
Reading this article, there are quite a few examples of "buildings with trees" in Germany, e.g.

* the "Baumhaus" (tree-house) in Darmstadt [1], built 1970 (!). The linked article talks about some of the difficulties you get when roots grow through the roof, and how to avoid that.

* the "1000 green roofs" programme in Berlin [2], one particular example [3]

* there's a couple of Hundertwasserhaus with a unique architecture, and those usually also have green roofs.

On top of that, you can find points (3) walkable streets, (4) varied architecture and (5) shade in many many towns and cities in Europe. In Germany, this has a long tradition; the "Dorflinde" ("village linden tree") is the historic center of many villages.

[1] https://biotope-city.net/en/pioneer-ot-hoffmann/

[2] https://www.berlin.de/sen/uvk/natur-und-gruen/stadtgruen/sta...

[3] https://www.landscaper-berlin.de/dach-holzbau/flachdach/dach...

dirkt··on Germany fines YouTube for removing video of anti-lockdown protest
Youtube already tried [1] this for seven years with music videos in their licensing disagreement with the GEMA. And the world didn't break down in Germany, even though plenty of Germans were infuriated, which is why I guess they came to an agreement in the end...

[1] https://www.dw.com/en/why-the-youtube-music-deal-in-germany-...

dirkt··on Copilot regurgitating Quake code, including sweary comments
And the all suffer from rounding error problems?

I mean, fixed point and a specific type for currency (which also should include the denomination, while we are at it) are not rocket science. Spreadsheets get that right, at least.

dirkt··on Disproportionate amount of bad online behaviour stems from psychological issues
> This is what killed Usenet,

Nah. If you've actually have used the (non-binary) Usenet, you have certainly come across plonks [1] and killfiles.

And how do I wish for a killfile for web discussion forums...

> This, not spam, is what has mostly killed Usenet.

What killed Usenet is that the shiny new WWW was more attractive for new users (and easier to use than a newsreader).

[1] https://en.wikipedia.org/wiki/Plonk_%28Usenet%29

dirkt··on Can programming be liberated from the von Neumann style? (1978)
Nevertheless, most mainstream imperative languages (e.g. Java) have adopted lambdas, "fluent" style, async/await (which is a Monad), and other functional features in the last years, and continue to adopt them.
dirkt··on Laser pulse travels 300 times faster than light (2002)
Group velocity [1]:

Since the 1980s, various experiments have verified that it is possible for the group velocity (as defined above) of laser light pulses sent through lossy materials, or gainful materials, to significantly exceed the speed of light in vacuum c. The peaks of wavepackets were also seen to move faster than c.

In all these cases, however, there is no possibility that signals could be carried faster than the speed of light in vacuum, since the high value of vg does not help to speed up the true motion of the sharp wavefront that would occur at the start of any real signal. Essentially the seemingly superluminal transmission is an artifact of the narrow band approximation used above to define group velocity and happens because of resonance phenomena in the intervening medium. In a wide band analysis it is seen that the apparently paradoxical speed of propagation of the signal envelope is actually the result of local interference of a wider band of frequencies over many cycles, all of which propagate perfectly causally and at phase velocity. The result is akin to the fact that shadows can travel faster than light, even if the light causing them always propagates at light speed; since the phenomenon being measured is only loosely connected with causality, it does not necessarily respect the rules of causal propagation, even if it under normal circumstances does so and leads to a common intuition.

[1] https://en.wikipedia.org/wiki/Group_velocity#Superluminal_gr...

dirkt··on 6502 “Illegal” Opcodes Demystified
Not sure what you mean, but all 6502 disassemblers I've seen use a table to get the mnemonic (and the addressing mode) from the opcode.

Mnemonics are arbitrary, there is no other way.

dirkt··on John Carmack on JPEG
> makes me think that a substantial number of video cards have included YUV decoding capability in hardware since the previous millennium.

You are correct, and you can find details on that by reading the card documentation (as far as it is available). That was in particular the case when cards had a fixed-function rendering pipeline.

With the advent of more general purpose cores on the GPU for the rendering pipeline, YUV decoding has been offloaded to them.

dirkt··on After a week at my mom’s house I'm getting ads for her toothpaste brand
Which country is that? US? I am glad in my country we do not have eye-level facial recognition cameras (I'd assume that would be illegal), and I can and happily do pay with cash.
dirkt··on The Great Hanoi Rat Massacre of 1902 Did Not Go as Planned (2017)
Just use a magic pipe.

https://en.wikipedia.org/wiki/Pied_Piper_of_Hamelin:

The legend dates back to the Middle Ages, the earliest references describing a piper, dressed in multicolored ("pied") clothing, who was a rat-catcher hired by the town to lure rats away with his magic pipe. When the citizens refuse to pay for this service as promised, he retaliates by using his instrument's magical power on their children, leading them away as he had the rats.

dirkt··on Fujitsu BS2000 Operating System Manuals
It's extremely unlikely that Siemens used a name like "Business Server" in the 70s.

My guess would be that it originally did mean "Betriebssystem", and the "Business Server" was coined a lot later for the non-German-speaking part of the world.

And have a look at [1], if you compare "PBS" (Platte Betriebssystem) to "BS 1000", both running on a 4004-45, it would be really really strange if this "BS" meant "Business Server" in 1968.

[1] https://de.wikipedia.org/wiki/Liste_der_Siemens-Computer

dirkt··on Fujitsu BS2000 Operating System Manuals
If Japanese companies stole the source code, then why was BS2000 developed by Siemens (a German company) from 1970 on [1], with Siemens-Fujitsu taking only over in 2000, 11 years after the date in your link?

And yes, the BS2000 uses the /360 ISA, but so did a few other imitators of IBM. And copying an ISA is widespread, and not restricted to the /360.

[1] https://en.wikipedia.org/wiki/BS2000

dirkt··on High-Speed Internet at a Crossroads
I have had maths lectures where that just doesn't work, so I'd question the "anyone". You need the extra time to fill in the steps the prof left out, because they are obvious to him.

(And yes, I usually also go through presentations at 2x).

dirkt··on Recovering “lost” treasure-filled floppy discs with an oscilloscope
You mean something like this?

https://en.wikipedia.org/wiki/Floppy_disk#/media/File:Visual...

dirkt··on JWT should not be your default for sessions
The whole point of a JWT is that it is stateless, and the information is (cryptographically signed) in the client. The advantages and disadvantages of JWT both derive from that.

If you want a session, just use an opaque session cookie. Then all information is safely handled in the server.

While it's certainly technically possible to use a JWT like a session cookie (or store session information in it), what you then get is a solution that combines the disadvantages of both approaches: All the complexity of making "visible" client-handled information safe, with the additional overhead of also having it in the server, while you loose the advantages of a JWT in integrating third-party services.

So, either use one, or use the other, depending on your requirements. Don't combine them.

dirkt··on Boeing 787s must be turned off and on every 51 days (2020)
> is there something intrinsic to complex systems and the need for a reset?

As the number of possible states of the system explodes, and as you layer levels of abstraction onto each other, the probability that you somehow reach a state the designers didn't think about increases. Then you need to reset.

Add to that limited bits for representation of numbers, and people not thinking about what do to when one overflows (because this is really really hard in many cases), and you get to "better reset it every n days" scenario.

> Any interesting writings on the subject?

None that I know of.

dirkt··on The XY Problem (2014)
> Whose time was wasted?

The time spent on the interaction between asker and those who answered to actually get the asker to provide context and outline his X.

If the asker had done this right from the start, instead of making the answerers guess, then the goal to help the asker deepen their understanding can be reached much more quickly.

dirkt··on The XY Problem (2014)
> Well, that's strange, because what they do is still divining.

Then don't make them devine, outline your X in a short sentence.

Ignore those who still divine.

Listen to those who tell you that Y is really hard, but to solve X, you can try Y' instead.

dirkt··on The XY Problem (2014)
> but in order to be helpful, I try to answer Y directly and honestly, and then point out my concerns, describing my presumptions.

This works fine as long as Y actually does have a simple solution. Often it does not, and already the question for Y is really weird, but once you hear about the X you can give a quick and simple answer.

That said, sometimes X is really really complicated. But even in that case it'll help anyone you are asking if you quickly outline X in a short sentence, just so the one you are asking has enough context.

(I have been on both sides, but more often then not the simple X was missing from questions was really strange Ys. Though I also have asked for Ys (and even outlined the X) and have been annoyed by people who insist that I should do something else, and describe my X in more detail, but when I do, they can't answer either, because the X really complicated and Y actually was a valid attempt at solving it).

dirkt··on Ask HN: Cheapest Maps APIs
For your frontend: MapLibre GL [1] is the fork of Mapbox GL that's still open source, so you don't have to pay for each usage.

For tile hosting: Openmaptiles [2], based on Openstreetmap data. Either pay them for out-of-the-box experience, or use their open-source code to set up your own server at whatever hosting for whatever price you prefer.

[1] https://github.com/MapLibre/maplibre-gl-js

[2] https://openmaptiles.org/

dirkt··on Zellij – A Terminal Workspace and Multiplexer
C-a is "go to beginning of line" in emacs-bindings for bash, which I use quite often...

There's no way to please everyone :-)

dirkt··on Mars Helicopter successfully completed its second flight
This video

https://www.youtube.com/watch?v=GhsZUZmJvaM

explains it: they can change the attack angle of rotor blades for different positions, which produces a torque, though you have to compensate for the gyroscopic effect, which lags behind.

Humans cannot fly this, but computers can.

The video also explains why the chose two contra-rotating rotors instead of a quad-copter design.

dirkt··on Show HN: Giving my mother-in-law an easy internet radio with real icon buttons
Same for me, and in the beginning it happened often enough I am too quick and pressed the wrong one ...

At least make the "answer" button green.

dirkt··on FTP is 50 years old
https://www.aoeu.com/

> It resulted from a typo. I was writing a domain registration system for an ISP and, during some debugging, forgot to use the --no-act command line flag and ended up registering aoeu.com for real. Since it was so easy to type, I kept it.

The letters A O E U are the first four characters of the left hand on a Dvorak keyboard, which is the layout I use.

dirkt··on Floor, Ceiling, Bracket
Intersestingly enough, set builder notation has made its way as "list comprehension" or even "set comprehension" into many programming languages now.
dirkt··on Kunst Der Fuge Collection – Free Classical MIDI Files
Don't try to combine ALSA (which is what Pulseaudio uses by default on most distributions) with Jack. You'll have a huge amount of "fun".

Don't try to "make Pulseaudio play MIDI".

Just install Timidity.

dirkt··on Problems with JPA/Hibernate
Yes, it makes your objects go to sleep.

The use case is "you have a collection of objects that reference each other in memory. You want to say: Bam, put that structure like it is into a database ("put it to sleep"), and retrieve it again for me if I need it ("wake it up after winter is gone")."

For this type of ORM Hibernate works fine. If you want to use a database as a database, it resists at every turn.

← PreviousPage 5 of 9Next →