HNHacker News
TopNewBestAskShowJobs

laszlokorte

1,199 karma · joined September 10, 2015

submissionscomments
laszlokorte··on The Psychology of not wanting to know (2017) [pdf]
How would you know that what it says is actually true?
laszlokorte··on WebAssembly 2.0 First Working Draft
Well the user perspective is: suddenly there a compilers for all kind of languages targetting the browser because wasm makes it easier for the maintainers to build them.

Sure you could have implemented unsigned integer semantics on top of bool-arrays in javascript years ago but if the result is too slow you have gained because the compiled c++ code does not run fast enough to be usable.

laszlokorte··on WebAssembly 2.0 First Working Draft
JavaScript being garbage-collected, having a rather complex runtime, not having proper integers etc... makes it a rather unfortunate compile target. Yes you can do it and it is done but js idiosyncrasies leak into the source langues pretty easily.
laszlokorte··on The Dunning-Kruger Effect Is Autocorrelation
Someone who has a skill=0 can not underestimate and someone with a skill=100 can not overestimate. So by the framing of the question alone the participants are nudged to estimate there own skill "more averagely".
laszlokorte··on Math Poetry (2015)
Funny, just two weeks ago I wrote this [1] just for fun (in german) and was wondering if there were other math songs/poems out there.

[1]: https://static.laszlokorte.de/infinite-impulse-rhapsodie/

laszlokorte··on Ask HN: Why aren't devs making desktop apps any more?
For a cloud related settings page. You could as well call it "connects to iCloud via RESTful api"
laszlokorte··on A new speed milestone for Chrome
Having an account banned and not being able to restore it or having to watch countless of ads slowing down my computer or not searching what I am looking for because of new ranking algorithms seems worse that a little bit of loading time :)
laszlokorte··on A regular expression to check for prime numbers (2007)
No, the point is that the article does not use a real regular expression: 1. Real regular expressiona can always be checked in linear time 2. primes can not be checked in linear time Ergo: primes can not be checked with regular expressions, otherwise there would be a way to check primes in linear time, which would contratict premise 2
laszlokorte··on How I See Numbers
There is a really distinct feeling I have about the fact that 2 times 8=16 and 3 times 6=18. Really hard to describe but something like 8 and 6 being siblings fighting about who is stronger/bigger.
laszlokorte··on Things you don't need JavaScript for

   <form method="get" action="foo.php">
   <select name="item" mutiple>
   <option>1</option>
   <option>2</option>
   <option>3</option>
   </select>
   <button>go</button>
   </form>
If you select option 1 and option 3 it will submit to foo.php?item[]=1&item[]=3

So in general <form method="get"> will append a query string to the action url composed of the form field values. But it is not possible to specify an url template to control the exact structure of the url. If you want that you have to implement a server side redirect.

One thing I did not know until recently myself: form submit buttons can specify their own formaction and formmethod attributes that override that ones specified by the form. So you can have multiple buttons inside on form the submit to different locations.

laszlokorte··on OK for Apple to Call Sagan 'Butt-Head Astronomer' (1994)
I soldier could have choosen to reject the concept of „enemy“ by not being a soldier and not letting a gouvernment define distinct groups of people as „enemies“
laszlokorte··on Trailing slashes on URLs: Contentious or settled?
Seems like a bug in the URL detection heuristic, no?

I would not have expected that URLs are detected inside rtl context in the first place.

laszlokorte··on Matrix Multiplication
Thanks for your suggestion. I Now added a share link at the allows you to share/bookmark the full state (size, cells, step)
laszlokorte··on Equipping backbone networks with DNS resolution infrastructures
From Biedermann und die Brandstifter (German) [1] (The Fire Raisers) [2]

   - ... [you gave them] matches?!!
   - why not? Don't you think, if they were really fire raisers, that they would have brought their own matches?
   (laughter)
[1]: https://www.youtube.com/watch?v=jrGmNXjjDNk

[2]: https://en.wikipedia.org/wiki/The_Fire_Raisers_(play)

laszlokorte··on Matrix Multiplication
I added an option for that.
laszlokorte··on Matrix Multiplication
Thank you for your feedback. Should be fixed now :)
laszlokorte··on Matrix Multiplication
Thanks for the idea! I added that :)
laszlokorte··on Matrix Multiplication
The animation looks really neat but I did not find it very helpful from an pedagocical perspective which is why I built an alternative version inspired by OP. [1]

/edit: I just noticed the OP is built by andrestaltz with Cycle.js. Cycle is a really nice reactive programming js framework that is very great to work with.

[1]: https://static.laszlokorte.de/matrix-multiplication/

laszlokorte··on Show HN: Simple interactive tools to improve statistical intuition
Thank you for your feedback! In both tools you mentioned you can open example projects via the menu at the top.

But I agree that I could have highlighted that better.

laszlokorte··on Show HN: Simple interactive tools to improve statistical intuition
In the recent months while taking a course in statistics and signal processing I built a handful of visualizations in order demonstrate some of the basic but important concepts I (re)learned.

I already posted a link to the fourier transform visualization a month ago. [1] Since then I worked on some more tools some of you might find helpful or interesting:

- visual proof of Bayes Theorem

- visualization how parameters of a gaussian distribution can be estimated

- interactive binary hypothesis test

- effect of a function on a random variable

The tools are not meant to give a fullblown introduction on the topics but more to deepen your intuition while learning from other sources or at least having already heard about the underlying concepts. But the visual and interactive concept of the tools might even allow to discover the core ideas and relations by yourself.

The section "Other Educational Tools" is older stuff that I included because it might be interesting as well.

All the code is on Github but it's really hacked together and not polished to be read by others. [2]

[1]: https://news.ycombinator.com/item?id=29455894

[2]: https://github.com/laszlokorte

laszlokorte··on Visualizing Bayes Theorem (2009)
I added some explanation on the page itself now.
laszlokorte··on Visualizing Bayes Theorem (2009)
I agree that it could use a little written explanation:

One big square represents the whole result space having a probability of 1, ie an area of 1 (side length 1x1). The four colors partiotion the whole space in all 4 combinations: 1. A happens and B happens, 2. A happens but not B, 3. A does not happen but B, 4. neither A nor B happen.

Each of the four colors has an area representing the corresponding probability. Naturally all 4 areas sum to 1.

The left and right big squres are simply the same areas just arranged differently to create a straight vertical or horizontal split.

This leads to the side lenghts of the areas corresponding to the probabilities of A happening, B happensing and the dependent probsbilities (eg A happening given that B happens, or B happening given that A happens, etc).

Given that two areas of the same color are the same size you can derive bayes theorem by converting the side length of one rectangle to that of the other same colored reactangle.

For example: The pink rectangle has the area equal to the probability Pr(B∩A). the left pink rectangle is factorized into the side lengths of width=Pr(A) and height=Pr(B|A). So the area is widthheight = Pr(A)Pr(B|A) = Pr(B∩A). The right pink rectangle is factorized into Pr(A|B) and Pr(B) instead, but has the same area Pr(B∩A).

Also you can see that the aligned side of two rectangle sum to 1. For example on the left side the height of the pink plus the height of the orange always sum to one.

Now by changing the probabilities by dragging the sliders you can see that there are configurations in which the height of a rectangle on the left side differs very stark from the width of the rectangle on the right side. For example when Pr(B|A) is totally different than Pr(A|B). But there are also configurations when they match.

laszlokorte··on Visualizing Bayes Theorem (2009)
I recently built an interactive visualisation [1] to explore dependent probabilities in terms of area and side length of rectangles.

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

laszlokorte··on Entire website in a single HTML file
I built a mobile web app for a conference that way [1], workes really well and is way more performant on older mobile devices than the previous version that was built in react.

[1]: https://app.ishl.eu/2018

laszlokorte··on Show HN: Fourier Transform Visualized via WebGL
I am not sure yet where to put them exaclty.
laszlokorte··on Show HN: Fourier Transform Visualized via WebGL
I now added and x-ray view option to show all sides of the cube at the same time (by hiding the cube itself)
laszlokorte··on Show HN: Fourier Transform Visualized via WebGL
I added an extra x-ray view option that shows all 4 plots at the same time
laszlokorte··on Show HN: Fourier Transform Visualized via WebGL
Ah yeah, thanks, I added a saw function.
laszlokorte··on Show HN: Fourier Transform Visualized via WebGL
Thank you for your feedback! So you mean just not rendering/masking the cube but keeping the position of the coordinate systems? The initial motivation for the cube itself was to mask any intersections of the different plots. But yes it sounds interesting to get rid of the cube itself.
laszlokorte··on Show HN: Fourier Transform Visualized via WebGL
> I mean, true in a technical sense, but don't all the sample functions here have known analytical Fourier transforms?

Yes but currently I make not use of it but simply apply the DFT on the samples of the function. Making use of the analytical versions would result in smoother results but I would like to allow for custom signal functions in the future so I would like to keep the simple approach of just doing the DFT.

> It would also be cool to have functions in the shape dropdown that are not symmetrical. Nice idea but what interesting functins would be there that are not achieved by using the time shift?

> Sure, introducing a time shift did the trick, but it was a tiny disappointment. I agree

← PreviousPage 5 of 12Next →