Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
glouwbug
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
541.
▲
by
glouwbug
6y ago
Most business logic neural nets simply train into what could've been an or-gate
542.
▲
by
glouwbug
6y ago
git grep has worked wonders for me, even with C++
543.
▲
by
glouwbug
6y ago
No one is perfect
544.
▲
by
glouwbug
6y ago
Prefer puts, as the newline is included
545.
▲
by
glouwbug
6y ago
I found that dead lifting really helps prevent RSI
546.
▲
by
glouwbug
6y ago
Electron apps
547.
▲
by
glouwbug
6y ago
Didn’t Walter Bright write empire? He frequents HN a lot
548.
▲
by
glouwbug
6y ago
Ye, I pushed it to the extreme and back ported a good chunk of the STL to C: https://www.github.com/glouw/ctl
549.
▲
by
glouwbug
6y ago
Good on them for puttin in the effort, at least. Some of us just show up for the paycheque
550.
▲
by
glouwbug
6y ago
Not really, he just has it figured out better than any of us.
551.
▲
by
glouwbug
6y ago
Eh, even C supports clean templated type safe containers: https://www.github.com/glouw/ctl Why Go is so far behind is behind me
552.
▲
by
glouwbug
6y ago
Well, they did hand off slack to Salesforce
553.
▲
by
glouwbug
6y ago
Time to slack
554.
▲
by
glouwbug
6y ago
What's there to change in Slack, though? It's arguably a messaging system, and that feature is tried and tested. That, and giphys, to be honest. EDIT: Guys it was a joke, chill
555.
▲
by
glouwbug
6y ago
Hey it's me, your Carl, send me your code
556.
▲
by
glouwbug
6y ago
You mean 8 billion?
557.
▲
by
glouwbug
6y ago
Yup, I had the worst flu of my life in late November of 2019. Lasted 2 weeks, and the cough that came with it lingered for 2 months. I remember everyone at work saying "something awful" was going around.
558.
▲
by
glouwbug
6y ago
But that's just youtube. "Engaging content" is them yelling at us to smash the like button, and _hit the bell_
559.
▲
by
glouwbug
6y ago
Causation vs. correlation, Linux is secure because it _is_ open source. Closed systems can cut corners, assuming the source stays secret
560.
▲
by
glouwbug
6y ago
Amazing, I can drop the variadic macro. EDIT: Done, and thank you so much - it's so much cleaner this way
561.
▲
by
glouwbug
6y ago
I will keep this in mind when I implement unordered_set. Thank you, and happy holidays
562.
▲
by
glouwbug
6y ago
The compare nomenclature is a one size fits all, given larger structs require a pointer to prevent large amount of copies. Think of qsorts compare, which uses two void* arguments.
563.
▲
by
glouwbug
6y ago
Yes, as many templates as you like. An A* pathfinder, for instance: https://github.com/glouw/ctl/blob/master/examples/astar.c#L8... Although if you're interested in just a batch rename, it'
564.
▲
by
glouwbug
6y ago
Sets (and maps) are implemented as red black trees in the STL. The STL unordered_set (and unordered_map) is what I believe Java would call a HashMap, unless I am mistaken (I am not a Java guru).
565.
▲
by
glouwbug
6y ago
I imagine something along the lines of: typedef char* charp; #define P #define T charp #include <lst.h> typedef struct { int x, y; } point; #define P #define T point #include <lst.h> int m
566.
▲
by
glouwbug
6y ago
I'm not sure where I heard it, but if you are interested in an article: https://www.sciencedaily.com/releases/2014/01/140116085105.h...
567.
▲
by
glouwbug
6y ago
I have a series of functional tests in `tests/func` which randomly call container functions and check their output against the C++ STL. These tests run on every push, on all optimization settings, with and without gcc's address sa
568.
▲
by
glouwbug
6y ago
Due to popular demand, I will implement unordered_set after the holidays, once the new year is in full swing.
569.
▲
by
glouwbug
6y ago
There's this theory that humans are antennas, and that we pick up "wavelengths from above" to build and create the world we live in. Not only did we decide on the same project name and idea, but we also used the same pre-proc
570.
▲
by
glouwbug
6y ago
C99 Variadic macros, for one, which allows for a nice to use `foreach` implementation. As for the latest C spec, I use a set of C compilable by C++, since most of the functional tests back-test against the STL, and hence compile with a C++
More ›