HNHacker News
TopNewBestAskShowJobs

laszlokorte

1,199 karma · joined September 10, 2015

submissionscomments
laszlokorte··on A first lesson in meta-rationality
The issue with your solution is that it can not decide for a single combination of circle and triangle if it would belong to the left or the right side.
laszlokorte··on Helix: a post-modern modal text editor
I get this error when trying to run the latest release on windows

> thread 'main' panicked at 'index out of bounds: the len is 2856 but the index is 2856', helix-tui\src\buffer.rs:185:14

laszlokorte··on Learn American Sign Language Fingerspelling with Machine Learning
works really well, even in a dark room in which I could barely see my own hand on the webcam. I am really impressed.
laszlokorte··on Sublime Text 4
On MacOS the file name is only meta data, ie the file has an internal id that does not change, but on other platforms filesystems the filename might be the identifier.
laszlokorte··on Kolmogorov Complexity: Extensions and Applications
In Kolmogorov complexity you typically do not care about constant offsets. You assume you are free to choose the language to implement the program in and in the worst case if someone else choses another language you just have to prefix all your programs with an interpreter of your language written in the other language. The size of that interpreter might be huge but it‘s a constant length for all your programs so you dont care. Same for program vs literal: just include one prefix symbol in your language to mark your program as either literal output or real program. That makes all your programs one symbol longer but as you only care about relative program size inside your language you do not care.
laszlokorte··on Kolmogorov Complexity: Extensions and Applications
came here to say that as well and recommend this video [1]

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

/edit: ant this one [2]

[2]: https://www.youtube.com/watch?v=DCjeM3Sei-s

laszlokorte··on Hosting SQLite databases on GitHub Pages or any static file hoster
Minor nitpick: Git does not store diffs for any file format but always the full file for each version. So it does not really matter that its binary (except for not being able to VIEW the diff, but I guess you could even implement a plugin for that) but just that it's a big file. Even a huge text file would be fully stored per version.

/edit: The sibling comments mentions that git can infact delta compress older commits for storage efficency. But my point was that git commits are not deltas but full snapshots.

laszlokorte··on Kaboom – JavaScript game programming library and environment
Maybe boilerplate free?
laszlokorte··on On the death of my family's dairy farm (2019)
I had to look that up: https://www.youtube.com/watch?v=tLjI_eixBQk
laszlokorte··on Why is electricity so hard to understand? (1989)
> ...mistaken belief that energy flows out of a battery through one wire, then flows back through the other. The charges do this, while instead the energy flows along both wires in one direction, from source to load.

Has somebody a good visual analogy for this in another medium? I mean I know that this is a case but I can not visualize the energy flowing on both sides out of the source with the medium only moving out on one side.

I will try for myself:

Say I pump a lot of water in a circle by moving a pump by hand. I put some energy into the system. By pumping I push water molecues out one side of the pump and pulling them in on the other side. That creates a pressure difference inside the water. Even if I pump the water really slow, that pressure difference propagte with the speed of sound through the water. That pressure difference is positive one the one side of the pump (water is pushed) and negative on the other side (water is pulled). Somewhere on the other side of the pipe circle the pressure differences meet cancel each other out. So the pressure difference is the energy moving through the system in both directions. But the water itself only moves in one direction. But now we have two kinds if energy in the system. The pressure wave and the kinetic energy of the water. If I keep pumping the water will speed up faster and faster. I guess that's the analog to a glowing wire. But if a put a turbine into the water the flow of water will be slowed down because the kinetic energy of the water is extracted by the turbine. Now if the water is at rest and the turbine as well and I now start pumping the pressure difference will flow in both directions to the turbine. It will start spinning as soon as the pressure differences meet there. If the turbine is not opposite to the pump the pressure differences will take different amounts of time to reach it. But the turbine will already start moving when hit by the first pressure difference by absorbing it the (pressure wave stops there) and then latter be hit by opposite pressure difference and move again.

So far correct?

So in an ideal system the water would not move at all but only the pressure difference would propagate and be consumed by the turbine. But that would mean that the turbine energy leaves the system completely -> the turbine does not even turn because it's energy is 100% extracted by it's consumer.

So in this example flowing water always represents some kind of loss/inefficency. The goal would be to maximize the pressure difference to propagate but the minimze the water flowing.

Is this how you could explain alternating current for transportation of energy?

laszlokorte··on The Libet experiment doesn't disprove free will (2019)
As I wrote in a comment below I guess the feeling of a free will is just the observation that nobody else and not even oneself kan predict ones decision until it is made even because the decision process is chaotic.
laszlokorte··on The Libet experiment doesn't disprove free will (2019)
I guess free will just means that making a decision is a chaotic process that can broadly be influenced from the outside but in the end can not be preditected up to the moment the result is observed. This then in turn is observed as in that the decision was not completely determined by an outside signal so it is concluded that it must have been free.
laszlokorte··on Rust 1.50
empty parameter list of a closure.

rust: |x| x+x

swift: {x in x+x}

rust: || 42

swift: { 42 }

laszlokorte··on Who Invented the Alphabet?
In german "letter" (the symbol) is "Buchstabe" which is based on "Buche"(beech, a kind of tree/wood) and "Stab" (stick). So "Buchstabe" means "wooden stick(s)".
laszlokorte··on My Phone Was Spying on Me, So I Tracked Down the Surveillants
In short: contracts are only as valid as you want them to be or as a powerful entity can force them upon you.
laszlokorte··on Obsolete trig functions and why we don't use them anymore (2013)
but you could conclude that cos and sin are both jsut the constant function: x->sqrt(0.5)
laszlokorte··on PHP 8
Oh thanks! That's nice.
laszlokorte··on PHP 8
REMOTE_USER as in HTTP Basic auth? the ugly login prompt you can not logout of again?
laszlokorte··on PHP 8
Then I agree of course!
laszlokorte··on PHP 8
One nice thing about php compared to Js is that you are not allowed to write async code. (except you use some extensions) So everything is simpler by design.
laszlokorte··on PHP 8
That's a local effect that can be avoided once you know the sematincs of the language. The issue with abused metaprogramming and monkey patching is that it results in global effects that are hard to track.

I would prefer to review a messy 50kloc php project over a messy 50kloc ruby project.

laszlokorte··on PHP 8
Ruby is extreme flexible in terms of metaprogramming in rails uses that very much. And ruby is not statically typed.

So if in rails you declare an active record model with belongs_to etc it's hard to keep track of what is really happening under the hood.

In php you have almost no runtime metaprogramming so the things that could happen if you read a piece of code are reduced to a smaller set of options that are easier to understand. well you have reflections but at least they are used in a more static way.

laszlokorte··on PHP 8
Php was my first language I learned 15 years ago. On that way I really started to hate it because of all it's quirks. Many of those have been fixed and nowadays I really enjoy it again and it's my goto language for any web project.

It really hits a pragmatic sweetspot. It's really easy to deploy and frameworks like symfony give you all the power like rails but without the magic.

laszlokorte··on Grand Unification of Web Technologies Proposal
why not just add new xml/cool-web-application content type to all browsers that lives in a parallel universes next to text/html and allows building rich UIs in wasm via nice modern api like for example flutter.

Then HTML/CSS/JS could be left alone for documents and hypertext based pages like wikipedia, blogs etc and stuff like googles docs or figma can be built in a new format.

And as both formats are supported by all browsers a document could just embed and xml/cool-web-application resource in an iframe and the application could just have a component to render an linked document.

laszlokorte··on Java Verbal Expressions
is(4).equalTo(5.plus(eulers_constant.toThePowerOf(1.toTmaginaryUnit().times(rationBetweenCircumferenceOfACircleToItsDiameter))))
laszlokorte··on Rust 1.48
not sure which plugin you used but rust-analyzer is the way to go.
laszlokorte··on Google sued: Idle Android eats mobile data to send telemetry and preload ads
setup a vpn to your home network
laszlokorte··on They Thought They Were Free: The Germans, 1933-45 (1955)
Regarding psychatric care it was at least discussed in april but then discarded due to harsh critique [1].

In general I agree with you and would not take an extreme position to deny the goverment everything in a crisis situation.

But on the other hand there are people (medical experts?) arguing that in the coming years or decades there will be many new viral deseases to encounter. So espacially with all this worldwide awareness and fear I find it easy to imagine that there will be an increased afford to detect virsus leading to maybe one new virus in focus every few years keeping the whole system in an alarmed state (including all the "special" [reading the permanent] laws) active for the whole time. Generations growing up from now on may not even know the times before. Same as with the "terror" theme now. Every few month there are reports about terrorist attacks and the whole thing becomes a meme and is used to justify anything.

[1]: https://deutsch.medscape.com/artikelansicht/4908831

laszlokorte··on They Thought They Were Free: The Germans, 1933-45 (1955)
I tried to list a few examples that came to my mind in a sibling comment. But the issue is that it's not just about specific examples but about the overall drift in perspective, production of fear and slooow but steady changes. From my understanding that's exactly one of the points the OP article touched uppon: If you ask for specific examples of bad changes I can name a few and you can justfy each of them in one way or another. But the sum of it all points to a really bad outcome from which we all be looking back in a few years and will wonder how we got there.

Actually the downvotes my original comment receives demonstrate the exact behavior the OP article describes.

laszlokorte··on They Thought They Were Free: The Germans, 1933-45 (1955)
I see that I am downvoted and I guess it is because my comment has been very simplistic and not explained well.

I will try (in a perspective here from Germany):

In general nothing here is really bad, nobody is killed or deported. So of course a comparison to the linked article is an exaggeration. But nonetheless since April the general mood in the country is be-surprised-and-accept driven: Businesses are closed on short term (last time on a friday end of september it was decided that on monday all restaurants, sport centers etc) must close (*takaway only). Because covid is propagated as this extreme dangerous risk nobody can complain. The whole public is only waiting what next rule is announced from week to week or month to month. People who refuse to wear a mask (for various reasons in various situations) are losing their jobs - either because the employer wants to get rid of them anyway and uses the not-mask-wearing as excuse or because their is real hate and fear between people in different groups. Their is no real philosophically based discussion about risk realted tradeoffs - only dictated policy.

And in the background basic laws are rewritten/adjusted to reduce the overall freedom. For example here in Germany a basic right of privacy at home so except with an order of a judge the police is not allowed to enter. But it is tried (or even succeeded? I do not know) to allow police to enter homes in general in order to check if more than X people are inside. Or it is argued that people who violate a quarantine order should be locked into a psychiatry. Some (few) people fight back but in genral changes are just announced and accepted.

It's a really slow process so many do not or want not to notice it but since april there are a lot of long term changes on the way that will alter the whole system to be more tolitarian/less free and which for sure will persist even after covid - all with covid as excuse.

← PreviousPage 7 of 12Next →