Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
linkdd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
271.
▲
by
linkdd
4y ago
> If a dev releases his work free-as-in-libre and/or free-as-in-beer, they don't get to complain if the donations are "insufficient". Of course they get to complain. Complaining and doing nothing to change the situati
272.
▲
Procedural Map Generation in C++, Part 1: The slow, the bad and the ugly
(david-delassus.medium.com)
4 points
by
linkdd
4y ago
|
0 comments
273.
▲
A simple, yet versatile, game loop in C++ with EnTT
(david-delassus.medium.com)
1 points
by
linkdd
4y ago
|
0 comments
274.
▲
by
linkdd
4y ago
This will be possible in my programming language https://letlang.dev It's going all in on dynamic typing. NB: It's actually already possible, since the type system is already implemented, it's just that many featu
275.
▲
by
linkdd
4y ago
Not sure this is what GP is talking about but to implement the actor model in https://letlang.dev I use tokio.
276.
▲
Decoupling input bindings from game systems with C++/SDL
(david-delassus.medium.com)
1 points
by
linkdd
4y ago
|
0 comments
277.
▲
by
linkdd
4y ago
Lichess has less chess variants, less learning content (made by IMs and GMs), and has some gameplay differences: - on chess.com you can premove multiple times, each premove consume 0.1s on the clock - on lichess, you can premove only
278.
▲
by
linkdd
4y ago
Ah thank you, it predates Github's renaming of Github Pages from .com to .io --> https://linkdd.github.io/ooduck/
279.
▲
A short introduction to Entity-Component-System in C++ with EnTT
(david-delassus.medium.com)
1 points
by
linkdd
4y ago
|
0 comments
280.
▲
by
linkdd
4y ago
You mean "C with classes" ?
281.
▲
by
linkdd
4y ago
Years ago, I started an implementation of that book: https://github.com/linkdd/ooduck Never truly finished it, but it works well :)
282.
▲
by
linkdd
4y ago
Well, a CGI script isn't really a web server.
283.
▲
by
linkdd
4y ago
imgui distribute .c/.h files, not .h files with .c embedded in them. What I'm criticizing is the extra step of me having to write the .c files anyway to avoid bloating the obj files, which should have been done by the library in t
284.
▲
by
linkdd
4y ago
There are billions of flies who eat shit. Therefore, shit should be edible? The "numbers argument" is a fallacious one. No, "how you are supposed to distribute a C library" is not my opinion, but the experience/obse
285.
▲
by
linkdd
4y ago
By not making a choice, the library is actually making the worst possible decision. It is bloating my ABI if I'm not careful, and it makes distributing more cumbersome when it could/should be straightforward. That's just not
286.
▲
by
linkdd
4y ago
You missed the "with extra steps". #define XXX_IMPL #include "xxx.h" And #include "xxx.c" Are exactly the same trash.
287.
▲
by
linkdd
4y ago
Because: - I like my object files (.o) to only contain what they are supposed to contain and nothing else - I don't want to have to keep track of where did I put the `XXX_IMPL` No I'm not missing the point of how it is me
288.
▲
by
linkdd
4y ago
If the library was instead giving me a .c and a .h, I would simply need to make that CMakeLists.txt, or a Makefile, or whatever build system I use. Now, the library gives me a .h and a `#define XXX_IMPL`. So to avoid making the mistake of d
289.
▲
by
linkdd
4y ago
https://github.com/ocornut/imgui > Just copy paste the source code in your source tree And/Or make a simple CMakeLists.txt like this: cmake_minimum_required(VERSION 3.22.0) project(mylib C) file(GLOB_R
290.
▲
by
linkdd
4y ago
C Header-only libraries do not exist. It's just `#include "foo.c"` with extra steps.
291.
▲
by
linkdd
4y ago
Forcing me to define `XXX_IMPL` in a single compilation unit is not a header-only library. It will simply force me to make a `.c` file for every `.h` and define it there. Why not simply distribute the .c/.h like imgui does, or lua, or
292.
▲
Multiplayer, multithreading, and an actor model in C++
(david-delassus.medium.com)
1 points
by
linkdd
4y ago
|
0 comments
293.
▲
by
linkdd
4y ago
150+ components but the doc lists less than 30, so I guess it's still a WIP? The ones present looks good, though I was looking for a responsive navbar one (since that's a component I reuse in 99% of my projects). I suck at CSS (I
294.
▲
by
linkdd
4y ago
Yes
295.
▲
I’m embedding my game assets into the executable, here’s how I did it
(david-delassus.medium.com)
3 points
by
linkdd
4y ago
|
0 comments
296.
▲
by
linkdd
4y ago
And in both cases: Rust is still backward compatible (old code will compiles on newer compiler versions) so you won't be rewriting what already works. You won't use unsafe that much (especially once the hardware parts have been ab
297.
▲
by
linkdd
4y ago
Maybe not the kernel since JS needs a runtime at least, but there is https://node-os.com/ based on the linux kernel.
298.
▲
by
linkdd
4y ago
I'd recommend reading https://os.phil-opp.com/ to drive away those wrong assumptions.
299.
▲
by
linkdd
4y ago
I'd still use C.
300.
▲
by
linkdd
4y ago
This seems reasonable for working with C APIs.
More ›