Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gnuvince
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
gnuvince
5y ago
> The idea of code telling a story is that a unit of work should explain what it does through its use of well named variables, function/object names, and how data flows between function/objects. Code telling a story is a fallac
92.
▲
Semantic Compression (2014)
(caseymuratori.com)
1 points
by
gnuvince
5y ago
|
0 comments
93.
▲
by
gnuvince
5y ago
What does "modern" C imply? AFAIK, there are not very many new language features; is it about organizing code differently than what one would learn from K&R?
94.
▲
by
gnuvince
6y ago
Many organizations have independently converged on memory safety being responsible for roughly 70% of vulnerabilities. So yes, still relevant and still a problem for users. https://alexgaynor.net/2020/may/27/s
95.
▲
by
gnuvince
6y ago
~Zig doesn't support TCE.~ Edit: Tried with different optimization levels, it seems it might. I wonder if it's an optimization from LLVM. Nevertheless, I don't think that Zig is the kind of language where you want to use recu
96.
▲
by
gnuvince
6y ago
Hijacking this topic to talk about something I've been thinking about lately: literate diffs. I find that the order of diffs given by git is not optimized for helping a reviewer understand the change. Sometimes the order of files will
97.
▲
by
gnuvince
6y ago
I didn't know much of anything about ASL, but seeing David Cowan at some press conferences in Georgia made me a bit curious. There's a nice video of him on Youtube[1] where he explains that deaf people's native language is AS
98.
▲
Normalization of Deviance, Mike Mullane (2007)
(youtube.com)
1 points
by
gnuvince
6y ago
|
0 comments
99.
▲
by
gnuvince
6y ago
> I’d wager that you have a better chance of translating OCaml or non-fancy Haskell straight into Rust than you do C++. I found that translating OCaml code to Rust is frustrating, because you cannot easily and cheaply replicate the funct
100.
▲
by
gnuvince
6y ago
Regarding syntax highlighting, I created my own Emacs theme a few years ago to have only a few constructs highlighted: * The name of a function being defined * Comments * String and character literals The result is very calm [1], but I can
101.
▲
What science can tell us about C and C++'s security
(alexgaynor.net)
12 points
by
gnuvince
6y ago
|
2 comments
102.
▲
by
gnuvince
7y ago
> how do you win? By spending quality time with your friends and having a lot of fun imagining an epic quest?
103.
▲
by
gnuvince
7y ago
The problem statement said that the input would be natural numbers.
104.
▲
by
gnuvince
7y ago
For people who, like me, thought that this would be slower than repeated division: my crappy benchmark indicates that allocating a new string and taking its length is faster by a factor of 2–2.5x. Edit: In C, the version that loops is 15 ti
105.
▲
by
gnuvince
7y ago
By using a do-while loop, you don't have to handle the special case of zero (although one could argue that the do-while loop is the special handling for zero). Python does not have such a loop, so you need to do an infinite loop with
106.
▲
by
gnuvince
7y ago
There's a download option to have Fantasque Sans Mono without the looped k. https://github.com/belluzj/fantasque-sans/releases/download/...
107.
▲
by
gnuvince
7y ago
That's Hack [1]. [1] https://sourcefoundry.org/hack/
108.
▲
by
gnuvince
7y ago
There aren't yet, but Iosevka now has an experimental proportional version. It does not seem to have ligatures yet, however that might just be a question of time.
109.
▲
by
gnuvince
7y ago
I used Iosevka for a whole year and it is one of the best fonts I've ever used, amazing quality. I only changed to Input because I wanted to have some variety.
110.
▲
by
gnuvince
7y ago
In fairness to Microsoft, Cascadia Code is still a young project. A couple of weeks ago, they had their second release which added Latin characters (vowels with accents, cedillas, etc.) Hopefully they keep adding more.
111.
▲
by
gnuvince
7y ago
Practically, we look at text all day long, so having a font that is easy to read is good ergonomics. A font may be good for code, but might not work as well in a tool like htop or gotop. Monospaced fonts are also interesting from an artisti
112.
▲
by
gnuvince
7y ago
It's up now (10:04am EDT), but this is the first article on my site that has this much traffic, so it's possible the small Linode instance I use was not able to keep up.
113.
▲
by
gnuvince
7y ago
Is this really verb-noun/noun-verb or verb-object/object-verb?
114.
▲
by
gnuvince
7y ago
Popularity ≠ Quality.
115.
▲
by
gnuvince
7y ago
Zig is a simpler language, but that simplicity comes at a cost: the memory bugs that exist in C also exist in Zig. Users bear the cost of the programmer using a simple language. Rust is a more complex language, but it eliminates a numbe
116.
▲
by
gnuvince
7y ago
> Boldface strikes me as a lack of respect for the reader. An adult reader is supposed to read the whole text. Yeah, that's bullshit. Open any CS book on your shelf and you'll see different fonts, different sizes, different wei
117.
▲
by
gnuvince
7y ago
One big problem with Fira Code is its lack of italics.
118.
▲
by
gnuvince
7y ago
There are too many colors in too many places. Everything is highlighted and nothing stands out.
119.
▲
by
gnuvince
7y ago
Damn near impossible to read the code in those blockquote blocks :(
120.
▲
by
gnuvince
8y ago
Dan Luu has an article titled exactly the same: https://danluu.com/wat/
More ›