
Andre Weissflog
@FlohOfWoe
Followers
9K
Following
65K
Media
3K
Statuses
45K
Sokol Headers, Chips Emulators, Oryol, Nebula Device, Drakensang, C, C++, Zig, Python, WASM... @[email protected] https://t.co/kOX3LYuRzS
Joined April 2013
alright, pretty big update to the Tiny Emulators page: new KC85/2 family emulators, more subtypes for the existing emulators, more file loading support, more games (mostly KC85 stuff), and the emulator git branches merged back to master:. #WebAssembly
7
35
199
Alright! perfect6502 simulation hooked up to the chip visualization running though the visual6502 standard test program at one half-cycle per frame :D. Time to start with the UI :). (cc @pagetable )
12
225
1K
@kettlecorn @natfriedman . or as the saying goes "Poor planning on your part does not necessitate an emergency on mine.". This should be the first thing hammered into the mind of newbies. There are very rare actual emergencies where staying late may be justified. Made-up deadlines are not an emergency.
0
20
629
@DanielcHooper TBH, even machine code is a high level abstraction compared to what a CPU does internally (e.g. assembly code is a high level language which provides the illusion that instructions are processed in order).
5
12
366
OMG looks like it's possible to render the Visual6502 data set with Dear ImGui at a smooth frame rate! And that's just a quick adhoc experiment without any optimizations. I think the next steps are inevitable :D. (cc @ocornut)
8
27
251
Should've listened ;).
Hey @CrowdStrike , if you think you need to inject yourself into other processes, could you please do this without crashing them?.This has happened to several of my customers, without them knowing what's going on. Fix this!. Signed,.Windows Developers
2
22
210
a bare bones C64 emu written in C99, compiled to #WebAssembly in under 64K (43 KB WASM + 15 KB JS, compressed download size), sokol_app.h + sokol_gfx.h + sokol_time.h + 8-bit chip headers:
5
71
196
Whoop whoop, Dear ImGui running on top of Chrome's current #WebGPU implementation via emscripten/WASM and sokol_app.h + sokol_gfx.h :D. A bit of code cleanup, then I should be able to put up a little sokol-samples-on-WebGPU preview page over the weekend :)
5
15
198
482 lines of (shader) code, no data, absolutely mindblowing. Most 3D APIs need more code to put a simple triangle on screen :D.
A procedural animated creature, raymarched SDF as usual in @Shadertoy. It's a first basic attempt to some character animation. Live-Stream with the Making-of and QA soon! In the meanwhile, source code:
2
27
192
@jakubtomsu_ That's why I always roll eyes when people want a 'simple string type' in programming languages. All you get from that splendid idea is code that *looks* simple on the surface but in reality just hides unspeakable horrors below.
6
6
168
C64 emulator running in (ghostty) terminal via the Kitty graphics protocol :) Right after start it seems to run too slow, but there's a couple of options to make the pixel transfer more efficient (currently it's very naive code) (cc @mitchellh)
7
11
166
Remember kids: in a C++ source file which includes stdlib headers, your own code is just a tiny little piece dangling off at the bottom. (what's up with modules btw, weren't those supposed to be the silver bullet?).
What's going on with LLVM's libc++ project? I noticed yesterday that the header file containing std::vector<> expands to 2 to 2.4 megabytes of pre-processed header code! (of which >99% is overhead) This . .
10
10
146
very cool: clang compiled to WebAssembly running in browser, compiling C++ programs to WebAssembly, and run the result in browser, a bit like @mattgodbolt's but without server: (discussion thread: .
1
65
144
Wow nice, in today's Safari Technology Preview upate on Mac (Release 197), the sokol-gfx WebGPU samples suddenly started working (cc @SebAaltonen maybe also interesting to check your WebGPU renderer with this version).
4
10
149
Not sure how I missed that brilliant @aras_p blog post. interesting points about over-abstracting and the "zero cost abstraction myth":.
7
30
141
Nice short article detailing the differences between C99 and C++20 designated initialization (also a nice example of how C++ takes a wonderfully simple, flexible and intuitive C feature and applies the "C++ treatment", essentially removing those three attributes ;).
C++20 designated initializers.#cpp.#cplusplus.
6
20
130
New attempt to run emulator in terminal via Kitty Graphics Protocol, this time in #Zig via libvaxis, works really well (in Ghostty or Kitty terminal at least). Repo:
3
11
132
Zig is basically fixing decades old C/C++ tooling problems as a side quest :D. (Rust should take note, this is how you lure C/C++ coders into your camp). #ziglang.
5
16
118
First printed presentation of the binary number system, 350 years old (and not by Leibnitz, but a "Juan Caramuel y Lobkowitz"). If it weren't for the Latin, this could also be taken from an old computer manual :). (via @nyquist64).
4
36
111
well that Raspi4 desktop experience is shockingly delightful for a computer that costs as much as a video game. there's a few things I need to fix in my workflow because the @code C/C++ extension doesn't support ARM, so I need to use different plugins, but otherwise great!
10
8
116
Interesting, I wasn't aware that @Blender is mostly written in C. Some C++ sources sprinkled inbetween, but all behind C-APIs. Might be a good study case of how to structure a big C project:.
5
8
106
The same is true for moving from C++ to C, but in the entirely opposite direction than C++ to Rust ;). (essentially, realizing that data should be "dumb" and not "smart", and that a lot of data in an application can and should have "static lifetime").
OH:. "After writing 10KLOC of Rust, I've become a much better C++ programmer. And that's having written C++ for over 15 years.". Rust's lifetime model reshapes the way your brain fundamentally approaches data structures and algorithms. Rust boot camp for all!.
3
13
94
@tumult I've been thinking for a while that the key to a really "slick" computing experience is running old software on new computers. It didn't occur to me that running old software in an emulator on new hardware is still faster than running new software on new hardware ;).
4
4
84
Finally a rational explanation why UIs have regressed so much in recent years :D.
@blu51899890 @FlohOfWoe They ran an A/B test that showed an increase in site usage while people were desperately trying to figure out where their shit went.
4
20
80