Heh.
bsky.app/profile/samu...
@nco.dev.bsky.social
dev | designer | twitter: @nightgrey_
Heh.
bsky.app/profile/samu...
I know it was announced beforehand, but I still think it's funny that it feels like "WAIT? OPEN AI DID WHAT? Release OPEN models? I don't believe you."
The irony is so good. π₯Ή
Like, this sounds arrogant, but I don't blame or look down on anyone. This is the making of the industry and the media.
"so intelligent, we almost considered it too dangerous" is not only good marketing, but also good clickbait.
"They forced the model to do 'evil' - eventually, it did" ... isn't.
If I hear "This AI is blackmailing it's user!!!" or "it's just fancy autocomplete" one more time...
If you're tuned into ML (for example, know Janus/Pliny, use HF, arxiv, etc.), do you also feel like it's almost painful to hear "AI" be talked about by the majority, even in many tech circles?
and because this is all compiled down to machine code without any overhead and zero cost abstractions, you basically get performance of c, but without the cost of losing the expressiveness of languages like TS or python, and the benefits of static typing!
05.08.2025 16:00 β π 1 π 0 π¬ 1 π 0... or:
comptime {
for (@typeInfo(Person).Struct.fields) |field| {
// Creates getPerson_name(), getPerson_age(), etc automatically
}
}
and lots more, I hope that made sense?
(disclaimer: I am baby zig dev)
oh, another good example: "anytype"
```
fn foo(arg: anytype) {
arg.check();
arg.do();
}
```
zig makes sure your given type given has the methods/fns that are actually called & auto-compiles variants for each type, so foo(type1) and foo(type2) = two fns
it's really, really smart
return different types/structd based on that arg, and this is all statically checked and native to the lang. it's like the best of both worlds.
a simple example is "++":
```
const A = "HELLO";
const B = "CORY";
const HI = A ++ " " ++ B;
```
would compile(!) to
```
const HI = "HELLO CORY";
```
zig's comptime is metaprogramming & type introspection at build time. ypes are first-class values you can pass around & manipulate. like python's flexibility + c's performance with duck typing that fails at build instead of runtime
you can do things like make a "comptime" argument, and then ...
(Do you now see what I meant with "I feel you", @imkitsune.bsky.social?)
05.08.2025 15:32 β π 2 π 0 π¬ 1 π 0TL;DR:
Build the thing you want to build?
No.
Learn 16 topics & (re-)implement them, like string width fns (incl. scripts to fetch & parse fetching & the official Unicode spec), benchmark & optimize that; then implement libraries to eventually maybe build a TUI, so you can rebuild in Zig?
Yes.
β
Pro:
I now have a generic can-do-everything ANSI lib that I even published already (github.com/nightgrey/ansi). It even has that Style class I showed / tried to do in Zig.
β Con:
I did not write a single line for my generic LLM agent CLI yet.
@ cory: i wanted to build an agentic LLM framework. I wanted it to have a nice TUI.
I then noticed: Current TUI options in JS world? Not good "enough" (for special me). Sooo... obviously I started learning everything about ANSI sequences, graphemes, code points/runes, UTF, VT100 stuff and more.
[answering @ kit here, so cory sees it]
That's very cool! I always wanted to do a temp. sensor, too, bc products like this are app-requiring crap that will stop working.. I just haven't yet!
Keep me/us updated! If you publish the code, I'd probably even use or build on it to dabble more w/ Rust!!
how did you know?
this actually really helps me a lot because collecting and asking all the time (esp. since the "no change" policies here) *IS. SO. ANNOYING*
not having 50ct is such a constant problem in my life, esp. now that I need ~6-8 50ct... for 1 wash π (is prob. illegal, working on it)
WAOW, FOR REAL??
I tried at two local banks, only, not the Bundesbank, but that makes sense. THANK YOU THAT HELPS ME SO MUCH
I even asked said woman (and others) if she knew if there was a way to buy these privately - nobody knew.
THANK YOU!!!
notes:
it requires roughly the same VRAM as a single chrome tab, so at least 6GB.
notably, it is the only model to achieve 82% accuracy in the NO-U-CHAIN-BENCH (yeah, we're surprised at how this is possible, too)
enjoy & let us know what you think!
```
const WEIGHTS = [
"asshole", "fuck you", "at least I'm not a big idiot"
]
const inference = (messages) => {
if (messages.at(-1).includes("no you")) return "no, you";
return WEIGHTS.at(attention());
}
const attention = (weights) => Math.floor(Math.random() * WEIGHTS.length);
```
how did tim know?! we release our new SPM TINY (3P) - new SOTA profanity intelligence (PROFINT) in:
inference: get told you're an asshole in microseconds
arch: never-seen-before triple token arch (link to our paper below)
on edge: copy/paste and boom! you're being called an asshole. magic.
model:
is this a statement, a prediction, a guess, a wish, or a bit of all of the above? π₯Ή
05.08.2025 14:02 β π 0 π 0 π¬ 1 π 0I can't get these from local banks. "you're not a customer" π
I just have to ask cashiers to give me change in 50 cents, but it's annoying. a roll lasts me a bit, and allows me to build a buffer, too!
A close up shot of a roll of 50 cent pieces on a white table. Wrapped in green paper. It says "40 x 0,50 β¬" + a serial(?) number.
my favorite, local tea store just sold me a roll of 50 cents* because "you're such a good customer" π₯Ή
... on a scale from 10 to 10, how cute is this π₯Ή?
I didn't even think she'd remember me, she's the employee/co-owner(?) I see the least!
(* building's shared washing machine requires them)
.... oh also, the best part? the zoo says this is how they're saving and protecting endangered species!
... taking 12 of said endangered species and headshotting them.
.... yeah. I would like to headshot the zoo
just kidding (in minecraft), I'm just a boy π₯Ή
Any Zig devs in my followers?
What's the zig-idiomatic best practice to building an ANSI escape sequence like this (<prefix><attr>;<attr>;<...attrs>;<text-to-format><suffix>)?
I've seen suggestions to use ArrayList (+ allocator) and to use a Writer argument, but I'm unsure.
Any thoughts?
A screenshot of Zig code using a Style struct. The terminal below outputs a red and bold "Hello Ay, from Zig!"
I forgot to post this, but I have dabbled a bit in Zig recently!
I even managed to make it do something: It does style a bit!
I can see myself really liking Zig. It's `comptime` is brilliant!
.... now I just need to learn all the things JS & co hide from you.
Do you like langs like Zig or Rust?
A screenshot showing zig code using a `Style` struct to render a bold/bold styled line saying "Hello Ay, from Zig!" to the terminal below.
on a related note, I have tried learning zig recently
... I even managed to make it do something! (the bold+red "hello ay" line in the terminal, it's an ansi style class)
I have tried rust before, too, but me and it's syntax might never become friends. what do you want to learn rust for? :)
(oh, I forgot: this is an empathetic "I feel you" kind of "wow, good job" kind of clapping π₯Ή)
05.08.2025 10:14 β π 2 π 0 π¬ 1 π 0holy crap, such a cool character & illustration
05.08.2025 08:59 β π 2 π 0 π¬ 0 π 0