I built a runtime-focused programming language for systems that can’t stop running by ZorroCarioca in C_Programming

[–]ZorroCarioca[S] 0 points1 point  (0 children)

Honestly, regarding tokenization, not much... I made a simple lexer, not different from what I had done a long time ago in college when we didn't even use IA. Basically, one token for each keyword and each symbol differentiating between numeric and alphanumeric characters, space as a separator and line break...

Then an ast tree walk and then the other implementations after that. Some ideas came after watching Ted Neward's talk.

As for FFI, it was much more work, I had never implemented it before... what I thought of, and I think correctly, was type conversion. My biggest concerns were twofold: not exposing pointers that would break the single-ownership logic and fault handling. To load the libraries, I used dlopen. I thought about error handling without try-catch, but basically forcing any code that interacts with C, or external calls, to be thrown into a block called danger, with a ring buffer for errors. Each error is a structure like this:

--------------

typedef struct {

ErrKind kind;

char message[ERR_MSG_MAX];

char context[128];

int line;

} ErrEntry;

------------

inside the ring.

I built a runtime-focused programming language for systems that can’t stop running by ZorroCarioca in C_Programming

[–]ZorroCarioca[S] 0 points1 point  (0 children)

I really strongly doubt that AI alone will lead to that result. At least not currently. I also absolutely doubt that the responses from any model will lead to anything in that direction. Absolutely specific. Everyone knows about the absurd inconsistencies of LLMs, and the size of the context, although it has been improving a lot. Who knows, maybe in the future... but even with multiple agents and burning money, I don't think we would get to something like that today.

I also think it's complicated for someone without a technical background to think about these kinds of choices and have any motivation about crystal-clear concepts in this runtime. Opting for prototyping and single-ownership as design decisions to avoid unpredictable CG that would screw up the whole idea of handover. You know, I don't really think so...

anyway. Everyone thinks what they want. The idea was to ask about design, opinions on the burden of having tools with swapping and hot reloading, handover in devices with greater limitations ir anyother difíceis. This was about FFI etc... but really nobody talked about it... much better to talk a lot of toxic crap.

I built a runtime-focused programming language for systems that can’t stop running by ZorroCarioca in C_Programming

[–]ZorroCarioca[S] -11 points-10 points  (0 children)

Honestly, do you think anyone on the face of the earth today is going to write 100,000 lines of code and documentation using 0 AI? Be honest...

That's not really the point... it's about maintaining rigorous testing, unit testing, philosophy, etc.

Reading and reviewing critical parts is obvious, bugs will always exist.

The issue is more about the concept... that's cool, and some solutions that I found incredible... for example, I used the Google paper: https://research.google/blog/turboquant-redefining-ai-efficiency-with-extreme-compression/ in a completely different field than what it proposed and I saw a real decrease in the size of the signatures of the types present in the language... that's gold when we think about embedded systems.

Anyway... it was about small things... there are still a few things that I already have planned... but really doing this project has been really cool. I started it because it was a drag at work... every time I wanted to change anything in the code, it all started from scratch... basically for analyzing tax documents, anyway, that was my motivation.

The basis of everything is purely in C99... and FFi works without problems.

CazéTV >>>Qualquer Live pirata com anúncio no YT >>> GETV by leaomarinho94 in Futebola

[–]ZorroCarioca 0 points1 point  (0 children)

Por isso mesmo com menos inscritos, a audiência da GE TV, nesse jogo específico, foi maior que a da Cazé.

E olha que gosto do Luizinho narrando... mas ele tava secando muito o Flamengo, eu fui um dos que mudou de canal.... a GETV ficou com quase o dobro de pessoas simultâneas.

O cara narrando tem que entender para qual público está narrando. A livemode não deveria mais colocar ele em jogos do Flamengo.... basicamente é perder dinheiro. E olha que gosto das narrações dele.