Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ir3k
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
ir3k
2y ago
Forgot the year of the Linux. It's the year of Pebble! I had a blast on last Rebble hackathon creating watchface named pRebble inspired by Pebble original UI design which I found amazing in how it manifested through work of designers w
2.
▲
by
ir3k
3y ago
I looked into those points and: 1. `sfd` is now closed. This cost me an extra line of code tho so I had to improvise. 2. `j` was not initially -1 as even empty input contains one "\n" character. But it could go pass value of 0 und
3.
▲
by
ir3k
3y ago
Wow, this is actually very good description of program flow. There are only few small mistakes. For example: > navigate through the history (when input starts with a digit) Should be more like: navigate to link from currently displayed p
4.
▲
by
ir3k
3y ago
Yes, that was my reasoning. Also there is non-written rule in this project that forbids me from going wider than 80 columns. With that I initially had indentation set to 2 spaces but later I realized that code is indented at most 2 times an
5.
▲
by
ir3k
3y ago
That's true and many Gemini clients supports multiple protocols. But in case of this "gmi100" only gemini:// protocol is supported.
6.
▲
by
ir3k
3y ago
Besides GNU/Linux I compiled on MacOS. I made no effort to test on BSD systems or Windows. I included only few std libs so I wonder - what exactly makes it not compatible with OpenBSD?
7.
▲
by
ir3k
3y ago
Yea it's very hard to read. I'm surprised that people are actually can follow the flow and can understand dirty tricks. The most unreadable code would be the code that was intentionally obfuscated. Here I at least try to pretend t
8.
▲
by
ir3k
3y ago
This is such a great feedback. Thank you a lot. OFC I will try to correct my mistakes. Not to make any excuses, just for the context. I'm a beginner in C programming and I wrote only few small programs. My tooling is basically non exis
9.
▲
by
ir3k
3y ago
Yes, sry for confusion. I don't see any way to correct my mistake as edit button for title and description is no longer available to me. At least I don't have this mistake on GitHub.
10.
▲
by
ir3k
3y ago
Ah yes, there are couple of line saving tricks like that. Mostly in for loops. Thanks for suggestion. I will go through code again to see if I can save more space with normal code. Actually that was my workflow. Each time I managed to write
11.
▲
by
ir3k
3y ago
I found out about BearSSL after I had first version of client working. So I kept OpenSSL. I will remember to try BearSSL in next project.
12.
▲
by
ir3k
3y ago
Yea, you are right. Poor choose of words on my side. One can argue the definition of "web" but it would be much more precise to write "CLI client".
13.
▲
Show HN: Gemini web client in 100 lines of C
(github.com)
91 points
by
ir3k
3y ago
|
45 comments