What exactly is desired here? Do you want to write something like... byte blob[]=static_load_bytes("filename.bin") Rather than being a preprocessor thing, it could be compile-time execution of constructs in the compile-time file environment rather than runtime.
-
-
-
Yeah. Compile time I/O would work too.
- 2 more replies
New conversation -
-
-
Lately I've been thinking: - C++ is an overbloated language that keeps getting more features - C is an over-austere language that could REALLY use a bunch of new backwards compat features and nobody seems to care.
-
And yet C++ is still missing this feature!
End of conversation
New conversation -
-
-
XBM was the first easy to generate from early JS ("Mocha") image format people actually scripted, before img element reflection and src attribute assignability in Netscape 3. XBM rules! (lol, I kid; anticompression!)
-
There was a beautiful old tutorial on 2D and 3D graphics programming in 2004 based on XBM I was lucky enough to archive locally at the time. Partially available on the web archive: https://web.archive.org/web/20070209110856/http://www.dawnofthegeeks.com/software_rendering/index.php?section=js&page=tutorial …
End of conversation
New conversation -
-
-
include_bytes! looks neat, really neat. I suppose
@thephantomderp is working on something similar for C++ (std::embed) -
#embed is going to the C Committee, and I am struggling to find proper wording to prevent the preprocessor directive from being melted down into runtime shenanigans that amount to `fread` and `ftell` by a DeathStation9000 implementation. I have until March 2nd to find words.
End of conversation
New conversation -
-
-
I had that same though when I first learned about Rust’s various include macros. Rust is incredibly smart. Didn’t know that but about XBM. I’d buy that.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I have wanted this so many times.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.