Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
laszlokorte
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
laszlokorte
11mo ago
If you nest two grids, the rows and columns of two sibling grids are not forced two align. With subgrid the rows and columns of two sibling grids are aligned with each other by glueing them to the rows and columns of the parent grid.
32.
▲
by
laszlokorte
11mo ago
With nested flexbox the nested dimensions are not aligned to each other. With grid the items are aligned across both each row AND each column. With subgrid even nested grids can be aligned across nesting levels.
33.
▲
by
laszlokorte
11mo ago
My favorite Bret Victor talk ever is „Drawing dynamic visualizations“ [1] that made me try to reverse engineer [2] the demonstrated tool that he sadly never released. [1]: https://youtu.be/ef2jpjTEB5U?si=S7sYRIDJKbdiwYml [2
34.
▲
by
laszlokorte
1y ago
Say you want to do obj.child.foo[3].bar += 2 but without mutation, but instead all the data is immutable and you need to do a deep copy along the path. Lenses are an embedded dsl for doing this via syntax that reads similar to to the mutabl
35.
▲
by
laszlokorte
1y ago
Yes functional lenses are very good at transforming between between schematas. You can think of it as an functional programming based embedded domain specific language for transforming immutable data structures into each other. Sure there a
36.
▲
by
laszlokorte
1y ago
Yes lenses are pairs of functions that allow bidirectional data transformations. One function acts like a getter and one function acts like a setter. The signatures of the functions are designed to compose nicely. This allows to compose com
37.
▲
by
laszlokorte
1y ago
This is a very simple example in svelte [1] This is very detailed introduction and documetation of a lense-based architecture in react. [2] At the first glance it looks kind of overwhelming but it contains lots of examples. This is a case s
38.
▲
by
laszlokorte
1y ago
In my experience when applying this architecture to react or svelte, the performance is quiet good, often better than classic alternative approaches (redux, many local useState) But the main benefit is not only the persistence of the app st
39.
▲
by
laszlokorte
1y ago
With lenses its possible to create component interfaces that make local and global state interchangeable. Even for focus, selection, scrollposition components use local state by default but that can replaced by a lense into a global state.
40.
▲
by
laszlokorte
1y ago
Yes if List is immutable and the interface for stepping through the slides ist designed accordingly
41.
▲
by
laszlokorte
1y ago
Typst is such a pleasure to work with! Especially compiled to wasm in the browser, super fast
42.
▲
by
laszlokorte
1y ago
php
43.
▲
by
laszlokorte
1y ago
Yes because Elixir is such a nice language. In every language there are sharp edges or dirty corners that are just annoying once you hit them. JavaScript and Php are full of inconsistencies, Ruby and Python are nice and the surface but once
44.
▲
by
laszlokorte
1y ago
Are these kind of projects actually build manually inside of minecraft block by block or is there some verilog/vhdl to minecraft-level compiler toolchains used?
45.
▲
by
laszlokorte
1y ago
No, because they dont define the >>= operator (which is the one to be associative) in the first place.
46.
▲
by
laszlokorte
1y ago
I am glad you are enjoying it! :)
47.
▲
by
laszlokorte
1y ago
Look great! I was already thinking about reimplementing mine as TUI
48.
▲
by
laszlokorte
1y ago
Looks amazing! Thank you
49.
▲
by
laszlokorte
1y ago
I am glad you like it! Yes the simplest way to think of it is to exponentiate the dft matrix to an exponent between 0 and 1 (1 being the classic dft). But then the runtime complexity is O(n^2) (vector multiplied with precomputed matrix) or
50.
▲
by
laszlokorte
1y ago
Shameless plug: If you are interested in Fourier Transform and signal processing you might enjoy my somewhat artistic 3D visualisation of the fourier transform as well as the fractional fourier transform [1] (Fractional fourier transform on
51.
▲
by
laszlokorte
1y ago
The implementation shown in the video is actually particularly slow because all the geometric transformations are implemented in terms of lenses/optics ([1]) and ramdajs ([2]). So the whole mess is a gigantic stack of nested, composed
52.
▲
by
laszlokorte
1y ago
Very cool! Just just implemented an SVG 3D renderer a few weeks ago [1]. But I did not implement texturing yet and wondered how one could do this. [1]: https://youtu.be/kCNHQkG1Q24?si=3VxfVFtG2MiEEmlX
53.
▲
by
laszlokorte
2y ago
What would be the corresponding syntax for matching and flipping only the first Posn? If I had to guess: fun flip_all([Posn(x, y), rest]): [Posn(y, x), rest] If I am correct then the only difference between flipping all and flipp
54.
▲
by
laszlokorte
2y ago
So what about synced bookmarks?
55.
▲
by
laszlokorte
2y ago
Except emacs
56.
▲
by
laszlokorte
2y ago
Thats exactly how my teacher in second grade when I was 8 years old (in Germany) taught us about greater than ans less than.
57.
▲
by
laszlokorte
2y ago
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 mo
58.
▲
by
laszlokorte
2y ago
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 mes
59.
▲
by
laszlokorte
2y ago
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.
60.
▲
by
laszlokorte
2y ago
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 o
More ›