Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mgunyho
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
mgunyho
10mo ago
Yep, I think in Taka the most confusing case is lists - writing list [ 1 2 3 ] creates the list [3 2 1]. (When indexing, the first item of the list is the one on top of the stack.) This has tripped me up several
2.
▲
by
mgunyho
10mo ago
PN makes it appear more like a traditional programming language on the surface, even if it's still read in a kind of strange way. So it might help spread the joy of stack languages by seeming more easily approachable. For me personally
3.
▲
Show HN: The Taka Programming Language
(codeberg.org)
12 points
by
mgunyho
10mo ago
|
4 comments
4.
▲
by
mgunyho
1y ago
For Torch, I have come across Named Tensors, which should work in a similar way: https://docs.pytorch.org/docs/stable/named_tensor.html The docs say that it's a prototype feature, and I think it has been that
5.
▲
by
mgunyho
1y ago
Seconded. Xarray has mostly replaced bare NumPy for me and it makes me so much more productive.
6.
▲
by
mgunyho
2y ago
I want to second the idea of broadcasting based on named axes/dimensions. I think it's a logical next step in the evolution of the array programming paradigm. I particularly recommend checking out xarray. It has made my numpy-ish
7.
▲
by
mgunyho
3y ago
The pro version of Overleaf supports offline work with a simple trick: every Overleaf document can be accessed as a git repo. It's a bit limited (there's no branches or tags, and it breaks the "track changes" feature) an
8.
▲
by
mgunyho
3y ago
Looks very similar to my tool, tere: https://github.com/mgunyho/tere . The main difference seems to be that I don't do any file manipulation, while walk has the option to delete files/folders. In my implementa
9.
▲
by
mgunyho
3y ago
Hmm, this indeed seems to be the case! I think I was confused by ln(1), since 1 is a real number, but the multi-valued complex logarithm of 1 is indeed k 2pi (and now I see the appropriate notation should be "log" instead of "
10.
▲
by
mgunyho
3y ago
But note how right above this span there is the <span class="katex-mathml">, which is not aria-hidden, and which contains the MathML representation of the equations. I would have assumed that a screen reader would look at th
11.
▲
by
mgunyho
3y ago
Yes, I manually put 2π in the html <title>, while the <h1> has the KaTeX rendered math in it :)
12.
▲
by
mgunyho
3y ago
Not a coincidence :)
13.
▲
by
mgunyho
3y ago
> sin(x) is the sinus function with the angle implicitly divided by 1 radian This to me sounds like the most natural explanation. For example, in a sibling comment someone mentioned that "you can calculate e^(-t)", but I disagr
14.
▲
by
mgunyho
3y ago
I think parent is referring here to the fact that math used to be written without symbols (other than numbers) up to the 1300s according to Wikipedia: https://en.wikipedia.org/wiki/History_of_mathematical_notati... (ve
15.
▲
by
mgunyho
3y ago
From what I can tell it's the opposite (on Firefox): the math is in the source HTML twice, once in <span class="katex-mathml">, which is hidden using CSS in the non-reader mode but is rendered in the reader mode, and &l
16.
▲
by
mgunyho
3y ago
> You can also eliminate the constant in some of the integral formulas by using đx instead of dx. I'm surprised the author does not propose this. In the post I propose doing that for Gauss' theorem and Cauchy's formula, be
17.
▲
by
mgunyho
3y ago
Author here, I'm sorry to hear that it doesn't work well with a screen reader. I tested it with the reader mode of Firefox, which renders MathML perfectly, although I don't know how that would translate to a screen reader. Sa
18.
▲
A trick to eliminate 2π (sometimes)
(marci.gunyho.com)
195 points
by
mgunyho
3y ago
|
172 comments
19.
▲
by
mgunyho
4y ago
That's true, although I think in the case of Go, it is a central design decision to make single-binaries easy so it's more of an exception to the rule. I don't think it's an inherent feature of scripting languages that t
20.
▲
by
mgunyho
4y ago
Indeed, Python would be a good language to implement this in terms of ease of development, but it's very difficult to distribute a standalone binary (which I wanted to do). The built-in curses support of Python is also not cross-platfo
21.
▲
by
mgunyho
4y ago
Also, aho-corasick comes from the name of this algorithm that is named after its inventors https://en.wikipedia.org/wiki/Aho%E2%80%93Corasick_algorithm
22.
▲
by
mgunyho
4y ago
Not really. The main reason for choosing Rust was to try it out, because it's the new cool thing. And I do find it really enjoyable. Rust is also trying very hard to keep dependency-related breakage to a minimum, and I think the Cargo
23.
▲
by
mgunyho
4y ago
> one extra keystroke is hardly cumbersome To me, there really is a significant difference in friction when navigating in vim vs tere. Maybe it's because I need to use shift to type '/' on my keyboard layout. But I al
24.
▲
by
mgunyho
4y ago
Nice! Looks like xplr can indeed "integrate them all", as you say in the readme.
25.
▲
by
mgunyho
4y ago
As mentioned in another comment, vim doesn't provide exactly the same experience: navigation is more cumbersome because you need extra keystrokes for type-to-search and to cd a folder. It also requires some extra tinkering for vim to p
26.
▲
by
mgunyho
4y ago
You need to configure a shell function to actually do the cd (see the snippets in the README). It has to be done this way because a subprocess cannot change the pwd of the parent.
27.
▲
by
mgunyho
4y ago
Indeed, this looks very similar! I added it to the list in the README. To compile it, I had to sudo apt-get install libacl1-dev, which was not mentioned in the instructions.
28.
▲
by
mgunyho
4y ago
I was well prepared mentally for the HN cynicism, and I did spend quite a bit of mental energy to justify the existence of tere to myself. Luckily I have a good rebuttal: I already use vim! :)
29.
▲
by
mgunyho
4y ago
Nice, looks like this is indeed very similar to tere! I guess the biggest difference is that the current search is not as "sticky", looks like it's cleared automatically after a while, which is similar to the behavior of the
30.
▲
by
mgunyho
4y ago
I would say that terminal explorer is what I had in mind initially (and incidentally, I also speak Finnish, heh). But a misspelling of tree is certainly a valid interpretation as well :)
More ›