Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pkkm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
151.
▲
by
pkkm
3y ago
It's odd that you included systemd in the list. It's something that a casual user isn't going to notice, but that has made life easier for system administrators and desktop tinkerers. With systemd, I can write a few lines of
152.
▲
by
pkkm
3y ago
It's the only language I'm aware of that takes C's explicitness and pushes it even further: it bans some implicit conversions, and it makes you pass an allocator as an argument to functions which can allocate memory. Most lan
153.
▲
by
pkkm
3y ago
Oh, I don't use C for every command-line utility. If it's something IO-bound like parsing a webpage and downloading a bunch of files linked from it, I write it in Python. The convenience of modules like argparse and requests i
154.
▲
by
pkkm
3y ago
> It's all still going to be a million time faster than whatever you were doing in Python, or Java, or Go, or Javascript, or whatever. Not at all. Systems languages don't magically make all code faster, they just help you write
155.
▲
by
pkkm
3y ago
> I very much question that “you don’t write C as C++ part”, if anything you don’t write C++ as C as that would be inefficient. Yeah, I was thinking about your string example when I wrote that. For high performance numerical code, I can
156.
▲
by
pkkm
3y ago
> Yeah if you want to kill yourself from frustrations, maybe. I'm not writing microcontroller code for the fucking space shuttle, and I would suspect most people aren't. You're really exaggerating the problems. Does your n
157.
▲
by
pkkm
3y ago
> How are the toolkits e.g. for ESP32 and TI in terms of C23 compatibility? C23 hasn't been released yet so it's hard to talk about compatibility. It's probably going to take a few years before it's widely supported.
158.
▲
by
pkkm
3y ago
> due to its low level of expressivity, you often have to introduce less efficient solutions simply because language deficiencies. Things like small string optimizations in C++ are simply not possible in C. You don't have to use a
159.
▲
by
pkkm
3y ago
> I really hate how for microcontrollers the only two choices are either C++ or Micropython Why wouldn't you just use C for programming a microcontroller? Sure, it's not a great language for web backends, but microcontrollers a
160.
▲
by
pkkm
3y ago
1. It gives me a lot of control over how the program works, which lets me create programs that work faster and use less memory than would be possible in most other languages. 2. Relatedly, it's more explicit than almost any other langu
161.
▲
by
pkkm
3y ago
What do you find so crazy about it? Dynamically typed languages like these can be fast. It has already been demonstrated with Common Lisp and, more recently, JavaScript. Not only that, but LuaJIT has shown that you don't need impossibl
162.
▲
by
pkkm
3y ago
Take a look at OCaml, Kotlin, and F#. They aren't literally what you described, but they're close enough than I think you may find them useful.
163.
▲
Function multi-versioning in GCC 6 (2016)
(lwn.net)
29 points
by
pkkm
3y ago
|
8 comments
164.
▲
Use singular nouns for database table names
(teamten.com)
89 points
by
pkkm
3y ago
|
104 comments
165.
▲
Poll: Which build system do you use for C and C++?
5 points
by
pkkm
3y ago
|
3 comments
166.
▲
by
pkkm
3y ago
CMake
167.
▲
by
pkkm
3y ago
Meson
168.
▲
by
pkkm
3y ago
Visual Studio
169.
▲
by
pkkm
3y ago
make
170.
▲
by
pkkm
3y ago
A shell script
171.
▲
by
pkkm
3y ago
SCons
172.
▲
by
pkkm
3y ago
waf
173.
▲
by
pkkm
3y ago
Autotools
174.
▲
by
pkkm
3y ago
Premake
175.
▲
by
pkkm
3y ago
Bazel
176.
▲
by
pkkm
3y ago
qmake
177.
▲
by
pkkm
3y ago
zig build
178.
▲
by
pkkm
3y ago
build2
179.
▲
by
pkkm
3y ago
xmake
180.
▲
by
pkkm
3y ago
Other
More ›