Lens

@lens_r
24 Followers
24 Following
448 Posts

I wasn't planning on doing an "assembler" for the IR, just having it be a product of the compiler internals, but just as writing an emulator for it has proven useful (so I can test and verify the produced IR unfiltered through a backend), I think being able to generate very specific test cases that don't depend on coaxing the frontend into creating the desired situations would be convenient.

#Projects #Compiler

Guess I should decide on risc-y 3-arg (my current style):

ldwi %2, %1, 0
addi %3, %2, 1

vs llvm-y expressions:

%2 = load i32, i32* %1
%3 = add i32 %2, 1

and commit before writing a bunch of this stuff by hand and using it for test cases...

Gosh I love programming. I'd just write programs all the time if I could. *

* I actually can. And I actually am writing programs all the time.

Perhaps I am some kind of dangerous computer radical these days, thinking that one should be able to buy or make a computer, install one's choice of OSs and software, create a local user account, and get on with one's affairs, privately and without interference.

Quiet enjoyment of one's computer.

* No age or ID verification

* No jumping through hoops to install software, or third parties restricting the software that one can run

* No third party accounts

WTF, CMake still cannot be arsed to support import std; in C++‽

Frankly, this is a complete joke and unacceptable for a modern build system! Like: “What would you say you are doing for a living?”-tiers level of unacceptable.

They are
actively holding back the evolution of C++ at this point!

Anyways, does anyone have a recommendation for a build system that meets the most basic requirements ever:

* Support for globs (So no, Meson is not a valid answer!), I do not consider having to manually edit the build-file each time I add a file acceptable.
* Parallel build, strongly prefered by default!
* Basic support of modules, in particular
import std; has to just work!

It is
insane that I have to even ask this at this point. C++ modules have been a thing since C++20! This is not just a hald decade old superseeded standard. The version that superseeded it has been superseeded again since this week! (Okay, technically national bodies still have a vote, but the committee has voted it out as completed!)

#cplusplus #modules #cmake
@fiore
A good thing that the C compilers that I use, patch/write, are also GNU (GNU CC and GNU MesCC) which means they are free software and thus can never be taken away (from me or from anyone else), unlike most other C compilers in existence.

Look at this thing I've made!

https://github.com/JoaoNasMonteiro/bitmath

It is actually a transpiler from the weird c-like syntax for bitllevel operations that exists in my brain to code that the LuaJIT interpreter actually understands and can evaluate, displayed in a well-aligned manner right inside the text editor.

#neovim #plugin #lowlevel #math

A small list of #bad #programming #jokes to put on tshirts that i've been maintaining for the last few weeks.

Focused on #C and #security stuff lol

she malloc on my heap till i leak

(deep fried bill gates)
"in this house we pass unsanitized user input into ShellExecuteExW()"

(void*)
trust me bro

***ptr
I know a guy that knows a guy...

(post-irony meme of boy with sunglasses)
yeah, I am a bad boy, how could you tell?
"sudo wget | bash"

gaslight git rebase -i HEAD~5
gatekeep git commit --amend --no-edit
girlbboss git push origin main --force

(post-irony 2000's wordart aesthetic)
born to segfault, forced to borrow check

sanitizing inputs is a violation of my free speech

Fuzzer? I barely know her!
(alternatively)
Buffer? I barely know her!

Baby, are you a dangling pointer?
Cuz imma using you after free tonite.

I do not consent to your memory safety laws.
I AM A SOVEREIGN CITIZEN OF THE HEAP.
GOD GAVE US unsafe{} SO BY JESUS I AM GOING TO USE IT

I WILL memset(0) YOUR ENTIRE BLOODLINE

@aeva My favorite is making things I've never made before and learning new stuff along the way.

Outsourcing that to the slop machine sort of misses the entire point of the exercise.

No work on Org mode today.
Casually searching for libre LLM that is open-licensed and uses training dataset that is open-licensed. That beast is harder to catch in the wild than I initially thought in https://yhetil.org/emacs-devel/87bjivtpyh.fsf@localhost/ I first found OLMo 3, which claims to use open-licensed data, but it does not - sublicenses are not free. Pleias (https://huggingface.co/PleIAs) looks more promising (although it is a smaller model). Maybe also KL3M and SILO-PD. Just for lulz, maybe also https://github.com/DGoettlich/history-llms
Re: oai package and others that specifically work with LLMs. - Ihor Radchenko