Kanashimia

E=m×Rust+ChatGPT JPEG AI Native Web 3 SaaS Blockchain Startup CEO

2025-06-20

Refrigerator vs Heater by Nvidia

2025-06-18

I want goroutines in #haskell, how do I get them? forkIO? The answer is simple:

2025-06-17

@SystemsDevel That is pretty cool.

Kanashimia boosted:
2025-06-17

Just rendered my first Vulkan triangle in raw x86-64 Assembly.
No C, no C++, no Rust.
Pure MASM64. Pure pain. Pure control.
This is what it means to go full bare metal.
More to come. ⚙️🔥
github.com/IbrahimHindawi/masm

#Vulkan #AssemblyLanguage #MASM64 #Assembly #BareMetal #GameDev #GraphicsProgramming #HandmadeHero #LowLevelDev #x64 #OpenGLWho #TriangleOfVictory

2025-06-17

Multi column scrollable window management sounds like an interesting idea. That is basically two tabbed views.

2025-06-17

Apparently this was the previous logo of @thekhronosgroup , amazing.

Very ugly Khronos group logo that uses Papyrus font or something
2025-05-20

#matrix in nutshell
by @goldstein

2025-04-21

Learning Vulkan

Caption at the bottom: "same student 10-minute timelapse"
Caption on the left: "learning vulkan"
Picture on the left: "girl sleeping on the computer deskt"
Caption on the right: "voice feminization tutorial"
Picture on the right: "girl looks on the screen with captivated look while holding her hands locked"
2025-04-10

On how many levels of macros are you?

2025-03-19

@thephd

But lets be honest, you just replace one ugly syntax with another one.....
It is as if everything in C++ was specifically engineered to look as hideous as possible.

And it isn't even the worst part of inline ASM, the worst part is that unmemorizable ugly ass gcc clobber/operand syntax that comes after that, ugh... I'm glad that Rust replaced that llvm asm syntax with their own, which is about infinity times better.

I've seen that dedent handling based on the last `"""` in multiple languages, pretty popular,
also heredocs are similar to that.

Another way to do it would be to base it on the least indented line in the string, methods for dedenting commonly do that,
for example like for JS there was `String.dedent` proposal for that.

There are also some languages in which you can insert `|` somewhere at the beginning of the line and it will be based on that instead.

Dedented strings, multiline strings, and raw strings are all orthogonal to each other when you think about it.

In general there is also a question on how to specify what language is in the string to help tooling, in JS it is pretty nice when you do `sql`whatever string`` it can be highlighted as SQL, can be autocompleted as SQL even, pretty cool.
For Rust there was pretty awful proposal to add multiline dedented strings which optionally specify which language string contains.
It is not as if that matters for a language as good as C, like some people don't even use syntax highlighting here.

I also had this one deranged idea for my language on time:

```
let str =
"lol
"this is
"multiline string
```

Strings... but you can omit last `"` and newline will be added automatically and strings are automatically concatenated.
Similar to how Zig does it but much worse.
This is really stupid, but I find this specific syntax to be very funny.

Whatever.

Kanashimia boosted:

I should start commenting my code like this so my friends experience the same visceral reaction I did when seeing this.

#shitpost

/*a*/ void /*function in the class*/ API /*that will*/::initCurl(){
    /*the variable*/ handle /*is*/ = /*to the result of the function named*/ curl_easy_init();

    if /*the*/ (!handle) /*isn't*/{
        /*then*/ printf(/*the string:*/"curl couldn't init");
        /*and then*/ return /*nothing*/;
    }
}
2024-12-17

Imagine searching for #opengl info and google search suggests this. Search query is GL_QUADS.

Related searches page on Google Search showing results for  gl line strip (opengl) and gl couple drawing (yuri)
Kanashimia boosted:
2024-12-07

Alright fedi, just got back from the Nix Store, ended up buying /etc/nixos#nixosConfigurations.Infini-FRAMEWORK.config.system.build.toplevel

An extremely long receipt, starting with "Nix Store", "Everyone's favorite package store", "You were looking for: /etc/nixos#nixosConfigurations.Infini-FRAMEWORK.config.system.build.toplevel", "Your closure today:",

Then the entire NixOS path closure for that flake output, totaling 5930 store paths
2024-12-02

LLVM - Large Language Virtual Machine

2024-11-30

systemd contains xorg directory, pretty funny

2024-11-29
Kanashimia boosted:
the account formerly known as Lunaluna@tech.lgbt
2024-11-23

years ago I wrote a tool called sloth — which is like cat but slower — and only today did I realize you can pipe things like vim through it

github.com/lunasorcery/sloth

Kanashimia boosted:
It's FOSSitsfoss
2024-11-23

Here's a really cool trick. Type the following to open files/folders using the default app within the Terminal:

ls -1 --hyperlink=always

2024-11-09

You can use any program as a wallpaper on wlroots compositors, by using this program:
gitlab.freedesktop.org/mstoeck

For example you can use vkcube as a background.
windowtolayer -- vkcube-wayland --present_mode 2 --gpu_number 0

2024-11-08

Today in NixOS:
Installing breeze-icons-6.7.0 will install cups on your system, globally.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst