Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ajusa
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
ajusa
11mo ago
(author here) It's exactly this - I do regret using "db" a bit now after reading all of the comments here, as it's taken away focus from the main point. But yes, the post had to fit on a single page, and I needed to pick
2.
▲
by
ajusa
11mo ago
(author here) This is actually closer to the way the first draft of this article was written. Unfortunately, some readability was lost to make it fit on a single page. 100% agree that a statement like this is harder to reason about and shou
3.
▲
by
ajusa
2y ago
Which book is being read in that screenshot? Looks interesting. I did a few searches based on the text and couldn't find it.
4.
▲
by
ajusa
3y ago
I still have a Dell Latitude D820 kicking around at home with the same display specs. I threw in a 256gb SSD, 4GB of RAM, and might have upgraded the CPU (can't remember exactly). According to what I can find online, it retailed for $2
5.
▲
Object-Oriented Programming is Garbage: 3800 SLOC example (2016) [video]
(youtube.com)
5 points
by
ajusa
3y ago
|
0 comments
6.
▲
by
ajusa
3y ago
Honestly - CLI apps that need to run on multiple platforms. I once built a version of https://github.com/lovebrew/lovebrew (back when it was written in Nim) using Cosmopolitan 2, and I got back a single binary that ran
7.
▲
by
ajusa
5y ago
https://github.com/yglukhov/nimpy gives very, very solid access to the Python ecosystem from Nim - I've copied code from Python docs and have had it work with hardly any changes. Hopefully that's a good enoug
8.
▲
by
ajusa
5y ago
This is a really fantastic resource for learning programming with Nim. I've started recommending it to folks that are newer to programming that want to try Nim out for various reasons. The only downside is that it is written by a non-n
9.
▲
by
ajusa
5y ago
Yeah, that must be a Safari thing. I pulled out my Nexus 5 (circa 2013) and everything feels instant. I don't have any working iOS devices lying around to test on unfortunately.
10.
▲
by
ajusa
5y ago
Sorry for that (and thanks to all the folks that pointed out the word matching code was wrong). I've pushed an updated version, it's 63 lines now. Turns out, HN finds and reports bugs much faster than family and friends :)
11.
▲
by
ajusa
5y ago
Looks like they doubled the size by accident, in the network debugger the first is a 302 that resolves to the actual file. It shows 84kb twice because of that.
12.
▲
by
ajusa
5y ago
Yep, I have the wrong meta tag I believe: <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> That should fix it, I'll push a new ver
13.
▲
by
ajusa
5y ago
Yup, exactly. I've considered adding a bloom filter check for words but I've accomplished what I wanted to try out. Maybe if I'm ever interested in the future! It'd be very easy to check against just a list of words, but
14.
▲
by
ajusa
5y ago
Oh wow, I never noticed that myself. I'll fix it once I'm at my computer, thanks for pointing it out! The fix will probably be something like if letter not in (.bg-warning in first .guess).innerText then add .bg-warning H
15.
▲
Show HN: A simple Wordle clone in 60 lines, using Hyperscript
(arhamjain.com)
111 points
by
ajusa
5y ago
|
49 comments
16.
▲
Antivirus software incorrectly flags Nim programs as malware
(github.com)
2 points
by
ajusa
5y ago
|
0 comments
17.
▲
Building a simple typing test website using hyperscript
(arhamjain.com)
2 points
by
ajusa
5y ago
|
1 comments
18.
▲
by
ajusa
5y ago
+1 to what planetis mentioned. I didn't include a full explanation of the macro because I was more or less showing off a project - not doing a full tutorial of all of the internal bits and implementation details of what libraries I was
19.
▲
by
ajusa
5y ago
If I understood your point correctly you are talking about the binary size? Me naively compiling with `nim c -d:release` and running `strip` on it gives the server binary to be around 700kb, and it's dynamically linked to glibc. There
20.
▲
by
ajusa
5y ago
As far as Nim's dependencies go in this case, it's literally just Karax (no dependencies), Jester (depends on httpbeast which has no dependencies) and treeform's ws library (no dependencies). So the only thing in this chain t
21.
▲
by
ajusa
5y ago
(Author here) Thanks! The inputs aren't sanitized in this example, but the output (the generated HTML) actually is in this case. Specifically this part: text ": " & sentMessage.getStr() The `text` function in the K
22.
▲
by
ajusa
5y ago
In case you want a quick example of a backend application in Nim, I've written a small post[1] describing how to create a room based chat using it and HTMX. In total, it's around 70 lines of code (though it doesn't cover more
23.
▲
by
ajusa
5y ago
I doubt it for two reasons: 1. nginx has had many more years of performance tuning (it's 17 years old) than a project made in the last few years. 2. redbean is x86 only if I'm not mistaken (it's using x86-64 from αcτµαlly pδr
24.
▲
Jeremy Maluf's “Onebag”
(jeremymaluf.com)
1 points
by
ajusa
5y ago
|
0 comments
25.
▲
by
ajusa
5y ago
Haha, this is just a school project so I don't think they'll go after me. We struggled with coming up with a name though, just picked one so that we could submit it. If there was a ton of feedback or interest we'd probably re
26.
▲
by
ajusa
5y ago
Hello HN! I'm sharing a small project I built with two other students. We built it in three weeks for a UI/design class back in April of this year. Nestly is a nested time tracker. It's similar to Dynalist and Workflowy in th
27.
▲
Show HN: Nestly – A simple nested time tracker
(ajusa.github.io)
48 points
by
ajusa
5y ago
|
12 comments
28.
▲
by
ajusa
5y ago
Nope, Ryzen 3500u with integrated graphics :) There were quite a few issues with amdgpu that would get fixed in certain kernel/video driver updates, and broken in other ones.
29.
▲
by
ajusa
5y ago
The really nice thing about `dnf` is that you can easily downgrade or rollback an update. There's also an easy way to see all of the packages that have been installed by the user to help track down when or what broke a system (which I
30.
▲
by
ajusa
5y ago
Flatpak + user maintained copr's have been mostly able to fill that void for me. The only package I've had to compile so far (that would have been available in the AUR) is wrk, a HTTP benchmarking tool. There is a copr available f
More ›