- Joined
- Feb 28, 2023
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Source?jai will drop at the same time
GNU make specifically. POSIX make is too minimal.Make is the way to go.
Here's Jared Taylor talking about spreadsheets:
this is an unusually common pattern: "GNU ____ specifically. POSIX ____ is too minimal."GNU make specifically. POSIX make is too minimal.
ifneq ($(V),1)
Q:=@
endif
# include potentially unsafe/nonportable scripting APIs
# FLAGS:=$(FLAGS) -DDANGER_ZONE
decker: c/build/decker
lilt: c/build/lilt
c/build/decker: c/resources.h c/decker.c c/dom.h c/lil.h
@mkdir -p c/build
$(Q)$(COMPILER) ./c/decker.c -o ./c/build/decker $(SDL) $(FLAGS) -DVERSION="\"$(VERSION)\""
Q will be set to the name of the target for the invocation, but V is defined nowhere, it seems. From what I can tell, if V equals one, then Q will be empty, making it pointless, but why would it be written this way? What's the possible purpose in calling deckergcc?Decker is awesome. The language is especially cool, I've used it for data analysis before (it has SQL-like features built in the language itself).I've come across Decker, and quite like it so far.
From what I know,Qwill be set to the name of the target for the invocation, butVis defined nowhere, it seems. From what I can tell, ifVequals one, thenQwill be empty, making it pointless, but why would it be written this way? What's the possible purpose in callingdeckergcc?
@suppresses echoing the command itself, so setting V=1 makes the rule also print the command to stdout. Some don't like when their build scripts print a bunch of CFLAGS and file paths to the terminal, so they choose to disable outputting them. For debugging your Makefile or larger build system you would want to see what exact commands are being ran. In his case make V=1 would be like set -x in Bash.I know it's terminal only, but you might get a kick out of ncurses. It's pretty ergonomic for C IMO.I've never written a graphical program. I've written the libraries I use to send ECMA-48 terminal control codes composed into various things, but that's a far cry from graphical programs.
Go next level and use notcurses instead for even more terminal bling!I know it's terminal only, but you might get a kick out of ncurses. It's pretty ergonomic for C IMO.
TFM said:Can I use Notcurses in my closed-source program?
Notcurses is licensed under Apache2, a demonstration that I have transcended your petty world of material goods, fiat currencies, and closed sources. Implement Microsoft Bob in it. Charge rubes for it. Put it in your ballistic missiles so that you have a nice LED display of said missile's speed and projected yield; right before impact, scroll "FUCK YOU" in all the world's languages, and close it out with a smart palette fade. Carve the compiled objects onto bricks and mail them to Richard Stallman, taunting him through a bullhorn as you do so.
Local kiwi btfos GC by using the worst class of GCARC (GC BTFO)
[wrap-file]
directory = SDL2_gfx-1.0.4
source_url = https://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-1.0.4.tar.gz
source_filename = SDL2_gfx-1.0.4.tar.gz
source_hash = 63e0e01addedc9df2f85b93a248f06e8a04affa014a835c2ea34bfe34e576262
project('sdl2-gfx', 'c',
meson_version : '>=0.57.0',
)
mod = import('unstable-external_project')
p = mod.add_project('configure',
configure_options : ['--libdir=@PREFIX@/@LIBDIR@','--prefix=@PREFIX@'],
verbose : true,
)
sdlgfx = p.dependency('sdl2-gfx')
meson.override_dependency('sdl2-gfx', sdlgfx)
Ah, I knew about the@suppresses echoing the command itself, so settingV=1makes the rule also print the command to stdout.
@ feature, but didn't know it extended like that. I sincerely appreciate the help.The task doesn't require using a C language library, so I avoid it. My library could even ask for the terminal dimensions without delving intoI know it's terminal only, but you might get a kick out of ncurses. It's pretty ergonomic for C IMO.
ioctl and TCGETWINSIZE. Xterm and the others implement the extended colour control codes improperly, by the way, which was fun to figure out.Not to depart from programming, but the following link and video may (interest/entertain) you.Something I will say is that if rust is a language cult then unreal engine is a video game engine cult.
IMO always modelling the data structures first is the way to go with anything programming related.My code is very easy to reason about, and because of how I'm using memory, it's very easy for me to mentally model how the resulting assembly is going to look and function. I'm incredibly pleased, I feel like I'm learning a lot. Hope you guys are having fun with your projects too.
Absolutely. All your code is written against your data structures, so they determine what code you can even write to begin with. They're also a great starting point when diving into a code base. Without fail, the most horrible code bases all have horrifically muddled data structures that do multiple unrelated things at once and have weird implicit invariants that nobody can (or does) keep track of.IMO always modelling the data structures first is the way to go with anything programming related.