Recent Activity

&cuik I've been learning to parse LLVM bitcode, on the left is TB in it's flattened text form and on the right we have the disassembled LLVM bitcode, the goal being to eventually have a drop-in replacement for the llvm tool, llc, yes it does compile too (left is mine, right is LLVM, both unoptimized):

View original message on Discord

&cuik When im bored i toy around with TB's optimizer, in this example it's doing some dumb stuff with the regalloc but more importantly it folded the branch into a branchless select and that into a float max operation (in retrospect the code was slightly wrong but i fixed it :p)

View original message on Discord

&cuik Only a bit laggy :P, i'll be improving codegen on switch statements once i'm not up at 7am

View original message on Discord

&cuik a bit of GLSL parsing using the Cuik facilities along with some additional stuff, we winning :P (the qualifiers are being parsed, the dumper just doesn't show their results yet)

View original message on Discord

&cuik more stuff, we've got quads now so i can start on making the game logic in lua, ideally we get sword slashing tonight

View original message on Discord

&cuik ok we got a window showing up now, i had to fix some idiv bug because regalloc is lovely :P, time to make a GL2 context

View original message on Discord

&cuik Got the JIT to be able to call other functions, we can now printf from inside it

View original message on Discord

&cuik started work on the DLL side of libcuik, i'm calling libcuik from luajit using the fancy FFI and now i can introspect or compile C code from within lua, im hoping to setup a nice little library for this such that a lua project can easily embed C and call it when it needs performance or other C concerns. I purposefully made it error because if not it doesn't say anything lol

View original message on Discord

Cuik/TB can now emit EXEs directly, the feature is still early but it's almost capable of linking against libc. Here's a test of ciabatta compiling with the microsoft linker and the TBlink respectively. For the spall views you can see link.exe on the left and TBlink on the right. &cuik

View original message on Discord

&cuik started work on the user-friendly diagnostics option 🎉 , the idea being that some reporting methods play better with automated systems like editors but some play far better at removing the noise (there's both a highlighted options and caret version because colors aren't always available and i haven't decided on things yet). Compare this against the old way of dealing with these types of errors.

View original message on Discord

&cuik More debug info! this time i've got some basic support for structs

View original message on Discord

&cuik Guess who just got a little further into Codeview support in Cuik/TB! 🎉

View original message on Discord

&cuik Been making changes to the CLI, also the spinning triangle is doing as spinning triangles do... that's right, compile correctly

View original message on Discord

Getting closer to having parsed & type checked my entire compiler with itself 🥳, ignore the .cpp file, it won't be doing that one, instead i'll probably convert it to valid C file &cuik

View original message on Discord