Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
barosl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
barosl
11y ago
I think Python's mandatory whitespace has a similar nature as Go's unused-as-an-error. They are definitely great in production code, but when I play with code, sometimes I do want to mess them up while adding and removing the part
122.
▲
by
barosl
12y ago
The explanation on the "water level overflow" is marvelous... > I had been wondering if raising/lowering the water level could help me collect this star in 0 A presses, and then it suddenly hit me: what if I raised the wat
123.
▲
by
barosl
12y ago
Could you recommend me some articles on the "mobile phones vs. safe water" thing and/or "paying via SMS"? That sounds very interesting.
124.
▲
by
barosl
12y ago
Rob Pike, one of the creators of Go, said so: > Although we expected C++ programmers to see Go as an alternative, instead most Go programmers come from languages like Python and Ruby. Very few come from C++.[1] I thought this was obvious
125.
▲
by
barosl
12y ago
...Abstract syntax tree? I didn't know it was implemented without using AST. It surprises me, as I've been always told that ASTs are necessary to implement a compiler. Maybe there seem to be some alternatives?
126.
▲
by
barosl
12y ago
Their PyPI packages also seem to be pulled out[1], but thankfully, their Twitter account is still alive![2] Also note that there seems to be a mirror for the PyPI packages.[3] [1] https://pypi.python.org/pypi/foundation
127.
▲
by
barosl
12y ago
I do think promise and deferred are huge improvements to ergonomics, but still... I cannot completely love the code bloat (which is much smaller and easier to reason about than callback hell, of course) that is caused by those libraries. I
128.
▲
by
barosl
12y ago
That's a good point. I also think `asyncio` was way too late in the game. I just wanted to mention the feature that was missed from your comment, which I think is not fair to Python.
129.
▲
by
barosl
12y ago
> I prefer coroutines over state machines And that's why Python supports `asyncio` (not to be confused with `asyncore` which is obsolete). So I prefer: sock = yield from connect('localhost', 7942) msg = yield from re
130.
▲
by
barosl
12y ago
I heard that Swift catches the overflow (and underflow). Rust also does that, but only in debug builds. So now we're finally seeing the mainstream languages adopt the integer-overflow-as-an-exception approach. Rust had used unbounded i
131.
▲
by
barosl
12y ago
I like this kind of partial rendering, which preserves the markdown markup. Months ago, I've investigated some alternatives in this regard, such as: https://github.com/lepture/editor https://github.com&
132.
▲
by
barosl
12y ago
> One of my favorite things is that methods are way less awkard than Objective-C. It looks, you know, like other programming languages now. This made me laugh. I've also suffered from them. I tried to convince myself to like them wh
133.
▲
by
barosl
12y ago
I've also experienced similar failures. I've tried to learn Haskell several times, and every time I meet the Monad section in the tutorial I lost my concentration. One of my friends who is proficient in Haskell told me to just sta
134.
▲
by
barosl
12y ago
Years ago, when I first watched the videos of the contest, I was overwhelmed by the micro that an AI plays with a bunch of Mutalisks. It never resembles a human play - among a number of Mutalisks, each Mutalisk could be moved completely ind
135.
▲
by
barosl
12y ago
As a South Korean, it is interesting to me that their translation of the technical terms which originate from English is quite different to ours. In general, the loanwords in North Korean tend to follow the meaning of the original words, wh
136.
▲
by
barosl
12y ago
The welcome screen says: > The operating system of our own style, "Red Star" > "Red Star" OS 3.0 for users is a system of our own style, whose stability, performance, ease of use and security are achieved at a high
137.
▲
by
barosl
12y ago
It seems that the GNU version slightly differs from the OP. It includes a joke on IBM RS-6000 and their virtual machine, and have different spellings (Nichlaus vs. Niklaus, AT&&T vs. AT&T). I wonder which one precedes.
138.
▲
by
barosl
12y ago
Wow, it's been a long time since I checked this joke for the last time! At that time I read the version that was translated into my mother tongue (Korean). Now I read this in its native form.
139.
▲
by
barosl
12y ago
I'm quite surprised that Nim's strings are null-terminated, and have a length field. According to a forum article[1], it is mainly due to the C interoperability. I understand that FFI is kinda important for system languages, but
140.
▲
by
barosl
12y ago
I like their FAQ, which says that other than database servers, application servers can be the bottleneck. http://cppcms.com/wikipp/en/page/faq http://blog.cppcms.com/post/42
141.
▲
by
barosl
12y ago
I find Java's checked exception similar to Option type, because they are all part of the function's type. You cannot pass alone without checking the possible failure case.
142.
▲
by
barosl
12y ago
One thing I love in Rust is that it purely makes use of the existing infrastructure that everybody knows - GitHub. Every Google project uses its own repository, issue tracker, and mailing list. Even many Mozilla projects such as SpiderMonke
143.
▲
by
barosl
12y ago
It is surprising to me that they recommend callbacks over promises! I had no idea that promises require higher CPU resources.
144.
▲
by
barosl
12y ago
As a noob who recently moved away from the Python land, it is mind-blowing to me that the shim needed to communicate with a foreign library (or even, bare metal) is that simple. When I first learned Python years ago, I was told that I can s
145.
▲
by
barosl
12y ago
Regarding the configuration formats, I would recommend TOML. In fact, I hated it because it seemed to be just "another standard" that unnecessarily adds dependency. But after using Rust, whose package manager forces me to write th
146.
▲
by
barosl
12y ago
Thanks! I wanted to know what it is called.
147.
▲
by
barosl
12y ago
Does anyone remember how Drupal handles the hierarchical comments? It maintains a "sort key" field for each comment, which consists of multiple index numbers for all levels, much like the section numbers in Wikipedia. 1 1.1 1.2 2
148.
▲
by
barosl
12y ago
"Whether Alt+char is succesfully picked up by your terminal application is dependent on the quality of your connection." This! The most annoying behavior in my daily terminal usage. Whenever I encounter this problem, I feel like &
149.
▲
by
barosl
12y ago
Even if you use popen() or system() in your application, Debian/Ubuntu machines are not affected. These distributions don't use bash for /bin/sh. `dash`(Debian ash) is used instead. Good work, Debian!
150.
▲
by
barosl
12y ago
I guess using a connection queue is preferable? (Although it complicates the software stack a bit.)
More ›