[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
▼ Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: MVC-465F.jpg (66 KB, 640x480)
66 KB JPG
What are you working on, /g/?

Previous thread: >>110369197
>>
Why are newfags so obsessed with performance. Performance is usually a language thing so just use Rust, Go, or C++.
>>
>>110451331
>just use Rust, Go
Terrible try shill
>>
>>110451331
>Performance is usually a language thing
You're a beginner yourself lol
>>
>>110451428
What's wrong with Rust and Go, shill?
>>
>>110451519
No, I'm not.
>>
>>110451527
>What's wrong with Rust and Go, shill?
The problem with the Rust and Go shill is that he shills Rust and Go
>>
>>110451539
>Doesn't know how a comma works.
Learn English, ESL jeet.
>>
>>110451535
Yes, you absolutely are.
You implied that someone who is worried about performance should just switch to another language, which is an extremely asinine thing to say when performance bottlenecks (99.9% of cases for beginners) usually lie in sloppy code or architecture.

You want beginners to abandon faster (which means "faster to develop in", so your amateur brain doesn't mistake this for "faster to run") toolkits and frameworks for a relatively marginal increase in performance that would only make sense in very few domains of software.
>>
Writing an LLM tokenizer from scratch

https://www.youtube.com/watch?v=tVErrxBIdrQ
>>
>>110451645
holy mother of cope. yes python is giga slow, deal with it n00b.
>>
File: no-more-brother-wars.png (1.95 MB, 1787x1280)
1.95 MB PNG
With the AI era and all projects being made in rust & co due to harness/TDD programming, the counterculture is unironically to start coding in Python.

Python, or C if you prefer. 2 languages, normally considered completely different, also share one thing: having absolutely ass guardrails. It's very easy to write horrible code in Python or C that seems to work at interpretation/compilation yet fucks up during runtime.

Think about it logically. They are both very bad targets for doing anything serious with AI. There is no use case for Python in 2026. It used to be the language for nocoders wanting to automate stuff, or experienced programmers whipping up a PoC. Both of those can now be done in e.g. Rust by clueless nocoders.

C, with all the recent vulns, is so demonized for being le unsafe deprecated lang, and of course sucks for AI-programming compared to Rust.

Coding in Python or C right now is punk as fuck. Write simple code for humans (python) or hyperoptimized software (C).
>>
>>110451681
C > Rust > Javascript > Java >>>>>>>> Python
>>
File: 1787406875325977.png (1.06 MB, 668x992)
1.06 MB PNG
>>110451681
>C
>Python
C#
>>
Just use the right tool for the job.
If you want to perform a simple task like string manipulation or automation use Python unless you need to manipulate millions of strings per millisecond.
If you want to write a physics engine use C or C++.
>>
>>110451900
>If you want to write a physics engine use C or C++.
you can use c# these days
>>
>>110451900
>If you want to write a physics engine use C or C++.
You should be writing it in a shading language
>>
>>110451681
>C, with all the recent vulns
is so radical and cool dude holy shit being bad is cool now
>>
>>110451969
security is for corporate bootlickers
>>
What's wrong with C++? /copedpt/ just goes straight to C.
>>
>>vulns
bro is a webdev :skull:
>>
File: IMG_4826.jpg (99 KB, 1170x757)
99 KB JPG
>>110451973
Saving this moment.
>>
>>110451976
You can write vulns in C++ too if you want to suck.
>>
>>110452000
based and check'd
>>
>>110451974
C and C++ are both largely antiquated.
They're great for learning how things work close to the metal and provide critical performance in very specialized domains, but are otherwise of lesser use.

Most performance-critical code is heavily re-used through libraries that were written years prior. Almost no one writes them on their own anymore.
If you tinker around in ML or are making your own game engine, you'll find tons of Python or C# bindings for C++ libraries.
>>
>>110452050
No more sea or sepples. Now it's just an invisible legacy sea of sepples.
>>
>>110452050
Torch limits innovation in ML. People are only now extracting all the inference juice out of inference with things like Strata, and in the model architecture and training space I bet there are a lot of useful experiments that haven't been tried because they didn't mesh well with Torch's abstractions.
>>
>>110452079
I agree, but you won't find ML breakthroughs anywhere near 4chan. My post was specifically addressing the average programmer, not MScs.
>>
>>110452102
wrong, one of the main llama.cpp guys posts in /lmg/, and the strata guy wasn't a machine learning or gpu expert (his optimizations aren't that special the engine just went viral among dozens but it's better than what you could achieve with torch nonetheless), and neither does antirez.
>>
>>110451331
Probably because they grow up in a world where everything runs like shit
>>
I fixed a bug where pinballs go through walls if they're moving fast enough.
>>
>>110451013
>coding manually in the big 26
Ngmi
>>
>>110453116
it's nice to just dictate what needs to be written and watch the code write itself, but at the end of the day a meatbag still needs to read and approve the clanker's code
otherwise you're just a cuck to the AI, sitting in your cuck chair and watching things get done with no active involvement from yourself
>>
>>110451703
>compiled is better than interpreted
riveting stuff
>>
>>110453116
no klaudia kode in templeos
>>
>>110451013
I wonder what Richie is cooking there
>>
>>110451013
I am implementing my own hash map library in C, it's based on the idea of using interface almost 1:1 as stb_ds. I am almost done, the only thing that I have left is implementing shrinking of buckets array and main array after the amount of elements goes below 25% of full capacity. It's faster on all operations (get, put and delete) where it's almost twice as fast delete, 1.5 faster put and 0.3 faster get, delete will probably decrease 1.5 speed of stb_ds when I add shrinking but even without it uses less memory because I use uint32_t for fingerprints and indices which hard limits it to ~4 billion entries but that's more than enough and keeps each bucket the size of a 64 bytes
>>
File: screenshot.png (106 KB, 752x604)
106 KB PNG
>>110455128
Why can't AI answer this question. I was going to make a joke about him buying cunny from that country.
>>
>>110455251
okay, I have just learnt that process is plain and simple, you simply append elements of the bucket to the (bucket_index / 2) and handle probing for elements that won't fit
>>
File: grass.jpg (36 KB, 452x451)
36 KB JPG
Ok you fucking assembly experts.
So I have been writing a lot of assembly these days.
Been realizing that it makes sense to make functions very short, because
1) cognitive load
2) there is a lot of stuff that can be re-used

But the shorter I make those functions, the more calls I have to do, which results in more pushing and popping variables to the stack.
Should I just not worry about the overhead of the stack frames and just do it (tm)?

Performing site maintenance. Try again in a little while.
>>
File: pepeclown.png (27 KB, 1024x1024)
27 KB PNG
>>110451331
> Rust, Go
>>
File: lucy.png (18 KB, 300x301)
18 KB PNG
Is Gleam a good lang? I like it static typing and Erlang VM, but not sure about C like syntax and it being tranny coded.
>>
>>110456432
>C like syntax
Finally, a memelang with GOOD syntax
Rust STINKS
>>
File: 1785750318725989.png (42 KB, 791x285)
42 KB PNG
>>110455540
your gemini said more than mine, mine just said one sentence:
>The exact country where this photo of Richard Stallman was taken cannot be determined from the available context.
chatgpt and claude doesn't know shit too
>>
File: IMG_20261128_135038_538.jpg (889 KB, 2047x2082)
889 KB JPG
back in the soldering game.
Holy shit. soldering 10uF 0402 caps is probably the worst experience irl afk fr fr no cap 67
If I can make it, then I can finally attach a floppy drive to my FPGA (i think)
>>
File: scrn_20261128_214919.png (9 KB, 640x480)
9 KB PNG
I can now find files (based as hell).
Next I need to read em into a buffer.
I think then I might try calling binaries first. After that reading text files and then I have to write an assembler in assembly until it can assemble itself.
Maybe I have to do file writing first, but I know that this will suck. So maybe terry was right and JIT is just much easier.

>>110456482
this failed btw. Made some mistakes on design. RIP
>>
>>110456008
If you are looking for maximum performance what you want to do is read the documentation for the architecture you're writing for, and that's going to help inform what sort of length you'll target for subroutines.
If your CPU is reading in instructions in 32 byte chunks, you don't want to be jumping to 6 or 7 instruction long subroutines all the time.
>>
File: IMG_20261129_003051_281.jpg (1.28 MB, 3795x2268)
1.28 MB JPG
>>110459749
T-t-thanks. That makes sense.
I am not sure how big the prefetch buffer is of the CPU I am using, but I guess not very big. It's also not really pipelined in a traditional way. It just prefetches a bit. So it's probably not that expensive.

Anyway. Maybe I'll just do some Rust instead of fighting through my own assembler inside of TempleOS.
I kinda already have all the hardware shit. Now I just need to make a usable system.

>t. le overthinker ;-)


... tho the VGA buffer is actually mostly hardware. It's just writing to a few registers to display text. So that'd be very simple to implement in assembly. Lets have some Rust fun, explore what I can do and then overthink again
>>
>>110451013
The only good communist is a dead communist.
>>
File: pcsx2shit.png (20 KB, 1057x393)
20 KB PNG
PCSX2 decided to enforce acknowledging ISTAT changes when interrupts raise because the BIOS module does it, not because the hardware requires it.
And it was an ass to find what was going wrong for a while.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.