HNHacker News
TopNewBestAskShowJobs

laszlokorte

1,199 karma · joined September 10, 2015

submissionscomments
laszlokorte··on W3C announces new Web standard for online payments
Ok, lets rephrase it a different way:

Why are websites required to inform a user about data tracking and required to ask for consent in a custom implemented, not-machine-readable dialog/poup. The user can not even check if the tracking is actually disabled once they clicked "decline" or "only accept technical required cookies".

Why not require websites to provide that information on a per-file/per-cookie/per-localstorage-key level. Then browser could block all js-files/cookies/storage-entries that have now proper description included (eg, in an http-header for files, or a robots.txt-like cooies.txt file, or as standardized comment at the top of a js file).

Currently there are extension like no-script taht block everything, but how about allowing/requirig site-owners to annotate files with tracking meta data in order to be unblocked?

laszlokorte··on W3C announces new Web standard for online payments
I never understood why websites are required to inform about cookies if it's acutally the browsers who store the cookies on the device and send them back to the server.

How about a domain.tld/.well-known/cookies.txt file that contains a description about each cookie-key and then let the browser provide the UI for displaying that information and being configurable on which individual cookies to store for how long? (and for example discard all cookies that are not described in the cookies.txt file)

laszlokorte··on Elixir's “Set Theoretical Type System” prototype/demo/showcase
A simple syntax would be something like

map :: forall a. ([a] -> [a])

or

map :: <a> ([a] -> [a])

laszlokorte··on A chiral aperiodic monotile
But can I use it to rub the fleeb? [1]

[1]: https://www.youtube.com/watch?v=eMJk4y9NGvE

laszlokorte··on Introduction to the Fourier transform for image processing (2001)
Fourier Transform is one of my favourite topic in maths and computer science. I am anways happy to stumble upon new resources about it.

While taking courses in signal processing at university I built a collection of interactive visualiztations to provide a experimental and intuitive approach without much technical explanations.[1]

I already submitted a few of them to HN and received very motivating feedback.[2] I am sure some of you who like the OP article might also enjoy these.

The latest visualization is dedicated to the trade-off between time and frequency resolution/uncertainty priciple.

[1]: https://tools.laszlokorte.de/ [2]: https://news.ycombinator.com/item?id=29455894 [3]: https://static.laszlokorte.de/time-frequency/

laszlokorte··on See this page fetch itself, byte by byte, over TLS
If the annotations were added by the server, yes. Not if they are added client side.
laszlokorte··on GPT-4
With a assumtion of unlimited time even a computer can decide the halting problem by just running the program in question to test if it halts. The issue is that the task is to determine for ALL programs if they halt and for each of them to determine that in a FINITE amount of time.

> What makes you certain there is an algorithmic analog for all human reasoning?

(Maybe) not for ALL human thought but at least all communicatable deductive reasoning can be encoded in formal logic. If I give you an algorithm and ask you to decide if it does halt or does not halt (I give you plenty of time to decide) and then ask you to explain to me your result and convince me that you are correct, you have to put your thoughts into words that I can understand and and the logic of your reasoning has to be sound. And if you can explain to me you could as well encode your though process into an algorithm or a formal logic expression. If you can not, you could not convince me. If you can: now you have your algorithm for deciding the halting problem.

laszlokorte··on GPT-4
no you can't. only for some of the inputs. and for those you could also write an algorithmic doesHalt function that is analog to your reasoning.
laszlokorte··on We Found an Neuron in GPT-2
From my naïve point of view it seems obvious that at any point where both an „a“ or a „an“ would fit the model randomly selects one of them and by doing so reduces the set of possible nouns to follow.
laszlokorte··on Improving Rust compile times to enable adoption of memory safety
Phonetically for a german that sounds like "eww, disgusting wanker"
laszlokorte··on Digital Logic Sim
Probably to be consistent with all the composed gates you build and name yourself.
laszlokorte··on Overlapping markup
Wouldnt one obvious solution be to allow tags from different namespaces to overlap? Maybe it is mentioned in the article but I could not see it:

  <ns1:root>
  <ns2:root>
  <ns1:elemA>This is some <ns2:mark>content</ns1:elemA>
  <ns1:elemB>that is split</ns:mark> into two nodes</ns1:elemB>
  </ns2:root>
  </ns1:root>
Then in this case two trees with common leaf nodes (4 text nodes) are constructed. From point of ns2-root there are only 3 children (the 2 next nodes outside <mark> and the <mark>) and from point fof ns1-root there are two children (elemA and elemB).

Then when parsing one could even pre-select which namespaces to parse and skip all other, for example if I am only interested in ns1, ns2 could be skipped during parsing.

laszlokorte··on Overlapping markup
There exists a "form"-attribute for input elements that can be used to associate input elements outside the form hierarchy to be included in the form submission.

So the semantics of "form field outside the actual form" are available anyway. When parsing a not-closed <form> the browsers just make use of that.

laszlokorte··on Migrating from Vue 2 to Svelte
Yeah from a semantic standpoint it makes kind of sense sometimes but it just shows that jsx/xml is not the right abstraction level for the problem at hand.

If you compare xml style syntax to s-expressions there is a clear distinction between child nodes and attributes (a "bi-partite tree", not sure if the term exists). For markup like html where the child-data is the content and the attributes are meta-level annotations this makes sense. Even when looking at guidelikes for "how to design an xml schema/doctype" the responses are often like "use child elements for alle business data and attributes only for technical meta-data".

So from syntactical perspective there is a clear distinction between attributes and child elements. The main one I would say is that attributes are limited in the sub-structure they can contain (only primitive types or space separated lists).

The way react adopted the html/xml like syntax for the creation of javascript objects to allow the declaration of DOM nodes in a nicer way. On top of that react allows the creation of custom elements as functions and allows their usage via the same xml-like syntax.

But now as soon as these custom components have more complicated dependencies between each other the xml syntax gets (imo) misused as a poor dependency-injection layer. It's only possible because JSX allows for non-primitive attribute values and it sticks out like like a sore thumb because the semantics do not match the syntax (like defining a "+" operator that is not commutative).

In my opinion a better way would be curry the component creation or to introduce a real DI-layer for component configuration that is then used to load fully configured components that can then simply be composed in jsx.

laszlokorte··on Migrating from Vue 2 to Svelte
I see that as an advantage. Everytime I see components passed as props or a callback passed as child in react I regard it as a big red flag that something is wrong with the architecture of either the app or react itself.
laszlokorte··on Measuring System Interface Complexity
Like an erlang process?
laszlokorte··on Wavelets: A mathematical microscope [video]
Inspired by this excellent video I just built an visualization to dig further into the relation between short time fourier transform and wavelet transform. [1]

Its not quiet done yet and misses some polishing but I find it already helpful rightnow.

[1]: https://static.laszlokorte.de/time-frequency/

laszlokorte··on I am endlessly fascinated with content tagging systems
Clearly the solution to all of this would be the category of all those categories that do not contain themself.
laszlokorte··on Sound
Wow, thank you very much! Straight to the point and very helpful, especially the web audio stuff.
laszlokorte··on Sound
I posted this as a submission a while ago but you might find it helpful. While learning about signal processing my self I built a collection of educational tools for visualizing some concepts. [1]

Especially the fourier cube [2], the complex exponential [3], the digital filter designer [4] and the signal generator [5] might be helpful.

Additionally the matrix multiplier [6] has an option for complex numbers that highlights the perspective that complex numbers can be seen as just a subset of 2x2 matrices.

[1]: https://tools.laszlokorte.de/ [2]: https://static.laszlokorte.de/fourier/ [3]: https://static.laszlokorte.de/complex-exponential/ [4]: https://static.laszlokorte.de/signal-transform/ [5]: https://static.laszlokorte.de/signal-generator/ [6]: https://static.laszlokorte.de/matrix-multiplication/

laszlokorte··on Gauss's Pythagorean right triangle proposal
But it might trigger some aliensplaining: they will come here to tell us about non-euclidean geometry and how to do it properly
laszlokorte··on Jeff Eldred Introduces Solomonoff Induction
This other discussion on the front page (https://news.ycombinator.com/item?id=32982513) remembered me of this video introducing Solomonoff Induction as an answer to the the philosophical question of "what is an explanation?" and and a precise break down of Occam's razor from a point of information/complexity theory and data compression.
laszlokorte··on Learning Is Remembering
remembering vs understanding is uncompressed vs compressed storage:

If I tell you a sequence of numbers: 1,2,4,8,16,32,64,128

And you try to remember them, having never seen these numbers before, you have to remember each individually and it will not be so easy.

But if you, before trying to remember them, apply a little computing power to figure out that its a sequence of powers of two, starting from 2^0 going up to 2^7, then you have compressed the information I gave you. You understood (presumely) the source of the information and you will be able to remember the numbers much easier.

One strategy I see people applying to unknown data they want to remember is to try to establish links to already known information or made up stories. For example when given the sequence of numbers above but not knowing about exponentials some people would try the follwing:

  * 1: the first number is one (as on the number line)
  * 2: the second number is two (same)
  * 4: I have four friends
  * 8: I ate lunch with my friends
  * 16: my sister was also there, she is 16 years old
  * 32: the house number of the restaurant was 32
  * 64: we ate sushi, my dad also likes sushi, he is 64 years old
  * 128: one-two-eight sounds a bit like "want to eat" and yeah I also like to eat
By doing so some people seem to achieve quit good memory of an unknown topic. But from my point of view they are only re-encoding the information to sort it into already existing bins in their memory instead of compressing it. The amount of information is not reduced but increased and it seems harder to reconstruct the original encoding/information. Additional without compressing the numbers to their generating algorithm it is not possible to use the "learned" knowledge for anything but reciting.

This all leads to Solomonoff's theory of inductive inference.

laszlokorte··on 4.2 Gigabytes, Or: How to Draw Anything
the reason is the onkeydown=closeModal() that clears the window.location.hash
laszlokorte··on Image generation ethics: Will you be an AI vegan?
https://en.wikipedia.org/wiki/Asceticism
laszlokorte··on Show HN: Pornpen.ai – AI-Generated Porn
does it?
laszlokorte··on Design the next iPhone
Oh, the button does not show up for me :(
laszlokorte··on Design the next iPhone
This needs a way to share the results!
laszlokorte··on Nepal's Kusunda language has no words for "yes" or "no"
In the video he says that "yes/no" are for negative questions and "yea/nay" are for positive questions.
laszlokorte··on EdgeDB 2.0
I just took a look at the quickstart guide. The way the code snippets are implemented is gorgeous. They are syntax highlighted, are formatted/indented exactly as they would be in the terminal, line breaks are indented correctly but css is used to make them easily copy/pastable without including any line numbers/indentation characters. Such a delight. Such focus on details. Makes me really confident in the rest of the project.
← PreviousPage 4 of 12Next →