HNHacker News
TopNewBestAskShowJobs

laszlokorte

1,199 karma · joined September 10, 2015

submissionscomments
laszlokorte··on Alligator Eggs and Lambda Calculus (2007)
Thats exactly how my teacher in second grade when I was 8 years old (in Germany) taught us about greater than ans less than.
laszlokorte··on Lambda Calculus in 383 Bytes (2022)
You might find my practical introduction to lambda calculus and combinatory logic based on javascript helpful. [1]

Its mostly based on other introductory resources but I tried to write it from a practical step by step perspective I found most useful for myself.

[1]: https://static.laszlokorte.de/combinators/

laszlokorte··on Egui – An immediate mode GUI written in Rust
Thank you for the suggestion. This is also what is discussed in some stackoverflow threads on that topic. I simply do not get why javascript is required to stop the browser from interfering with user actions. Calling preventDefault also messes with element focus and other events.
laszlokorte··on Egui – An immediate mode GUI written in Rust
I currently have the same issue while building a canvas web app. Safari shows a small magnifier glass on double tap/long press and none of the css properties will suppress it.
laszlokorte··on Show HN: Rust Web Framework
By skimming docs I notice that you use <%- %> tags for outputting un-escaped strings. In contrast ERB uses <%- and -%> for trimming leading and trailing whitespace of the surroundings. In security sensitive context of escaping output you might not want to appear as mimicing ERB while deviating at the same time. A user might end up using un-escaped output all over the place by accident.

But great work overall!

laszlokorte··on Understanding the Y Combinator
You might find my write-up on lambda calculus and combinatory logic in javascript syntax insightful:

https://static.laszlokorte.de/combinators/

laszlokorte··on Show HN: Perlin noise Wang tile generator
Such a nice idea. I saw the same idea of wang tiling in a youtube video of a conference talk a few weeks ago and found it quite fascinating.

You might also like my interactive implementation of the void ans cluster algorithm for generating blue noise [1]

[1]: https://static.laszlokorte.de/blue-noise/

laszlokorte··on Tetris Font (2020)
Would be nice if browsers would group back button entries by: 1. same url except hash 2. same domain 3. rest
laszlokorte··on An animated introduction to Fourier series
Great article! I like that it starts with circles and complex numbers ans builds up from there. Some other explanations try to only throw in complex numbers in the end.

If you are interested in this topic you might also like my visualization of a fractional fourier transform [1] and the complex plane [2]

[1]: https://static.laszlokorte.de/frft-cube/

[2]: https://static.laszlokorte.de/complex-plane/

laszlokorte··on Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout
you could simply do: "display: grid; display: masonry;" and all not-supporting browsers would skip the second declaration.
laszlokorte··on Is the frequency domain a real place?
See [1] for my visualization of this 4-cycle and the fractional fourier transform

[1]: https://static.laszlokorte.de/frft-cube/

laszlokorte··on The xz attack shell script
Even as a non-native speaker it really stood out: "This situation is exacerbated by the fact that", "In contrast", "Given the outlined".

I would call this style something like fluid enumeration of facts, typical for GPT generated texts.

laszlokorte··on An interactive guide to Fourier series (2022)
> Wouldn't this effectively make frequency 0?

Yes! Letting the period length approach infinity, would make the lowest frequency (omega_0, also delta each other frequencies) approach 0, effectively turning the discrete sum of the fourier series into an integral, turning the fourier series into the continous fourier transform.

laszlokorte··on An interactive guide to Fourier series (2022)
Very well written article!

If you are interested in interactive explorations of the fourier transform you might also like this visualization I built [1], featuring the not so well known fractional fourier transform.

[1]: https://static.laszlokorte.de/frft-cube/

laszlokorte··on Harmonics Explorer
Actually the Theorem states, that you must sample with a rate strictly GREATER THAN (not equal) than twice the highest frequency. Exactly because sampling only the zero crossings is not enough.

Ofcourse depending on how exactly you want to process your samples it might be convenient to have an even higher sampling rate. And if you know your signal does not contain low frequencies (=not using the full bandwidth) you might get away with even lower sampling rates.

But the general case is: you must sample with a rate strictly greater than twice the highest frequences.

laszlokorte··on Harmonics Explorer
Yes phase information is really important. Try this:

1. Fourier Transform an Image 2. Set all magnitues the the spectrum to 1.0, but do not change the phase 3. Inverse Transform and look at the result 4. Now try the same, but this time keep the maginutes unchanged but change all phases to 0°

Spoiler: When changing all amplitudes the image is still regocognizable, when changing all phases, it is not. See example: [1]

But in what sense are you saying the Nyquist-Shannon theorem is incorrect (when applied)? It only says something about the most general case of perfectly reconstructing a signal.

For getting an playful and intuitive understanding of time/frequency transformations my fourier-cube visualization might be useful [2]

[1]: https://static.laszlokorte.de/phase.png [2]: https://static.laszlokorte.de/frft-cube/

laszlokorte··on P vs NP: The most important unsolved problem in computer science
Not 1000 iterations of 1 loop, but 1000 loops nested inside each other.
laszlokorte··on Atree: A simple and efficient pointer-free tree implementation
They are array languages. If you have never heart of array languages check out the code_report youtube channel.
laszlokorte··on A gentle introduction to two's complement
You might find it useful to play around with this:

https://thesis.laszlokorte.de/demo/number-circle.html

And notice how „just using the sign bit“ and the 2compl are just different ways to align interepretations with bit patterns.

But using the 2compl is the alignment that does not require special cases for handling the negative numbers as opposed to the positive numbers.

laszlokorte··on An Interactive Guide to CSS Grid
These are no fractions at all. The „/„ ist just the separator between the start and the end position (counting lines not cells)
laszlokorte··on Mistakes in the Design of CSS (2013)
Originally the „cascade“ referres to the ability for both the browser, and the the user, and the website to define styles for a single website. With the browsers styling being the weakest, the users styles the strongest and the websites own styles being in the middle of the cascads
laszlokorte··on The $1.5T Nuclear Weapons Program You've Never Heard Of
Do you have a source at hand for the flouride in drinking water being linked to atomic weapons?
laszlokorte··on Stable Fiddusion: Frequency-domain blue noise generator
Zooming works on my iphone
laszlokorte··on Why SQLite Does Not Use Git
> What’s the point of that level of immutability?

That all data even the bug tracker can be synchronized across spacetime without conflicts.

laszlokorte··on Everything vs. Anything
First-order logic 101: Quantifiers
laszlokorte··on Last Chance to fix eIDAS: Secret EU law threatens Internet security
The „same opinion as“ operator does not distribute over the transitive equality relation
laszlokorte··on Animated AI
Thanks for sharing! I especially like the "Understanding Hyperparameters" widget in the poloclub article. I built something similar that people might find helpful[1].

[1]: https://static.laszlokorte.de/conv2d/

laszlokorte··on mAh Is an Industry Mistake
And still "w/h" makes no sense. As explained in other comments watt is already "energy per time", i.e. power, i.e. "1w = 3600 J/h".
laszlokorte··on Pixel-based visualization of distributions – click Settings
Really nice visualization! I like the way the controls are shown/hidden by simply scrolling the page!

I once implemented a simple tool to explore binary hypothesis testing. [1]

Maybe adding an option to denoise the pixels by thresholding would be interesting.

[1]: https://static.laszlokorte.de/hypothesis/

laszlokorte··on An INI Critique of TOML (2021)
There is no undefined behavior in C. You just have to read your compilers source code or the generated assembly or simply run to program to learn the exact definition.
← PreviousPage 3 of 12Next →