What are you maids working on?Last thread: >>109660156
>>109695774I'm still working on my bytecode interpreter in Rust.
remove maidniggers
>>109695824
>>109695862AI use it not meaningfully different from compiler use. Neither tool replaces reasoning. Both tools just allow reasoning to happen at a higher level of abstraction.When you use a compiler, instead of reasoning about assembly, or what the hardware is actually doing, or about things like registers, you get to reason in a higher level of abstraction with whatever language you picked. An AI user doesn't have to reason about low-level implementation details, instead they reason about the architecture, requirements and capabilities of what they want to build. It is just higher level of abstraction.
>>109695824do not feed the trolls
>>109695774>yet another maid smut threadGo back to /a/ retard
>>109695952Except AI is better for reasoning about the things you claimed the AI user does and worse at reasoning about the things you claimed the AI does. You have things backwards.
AI is really good for debugging small files.
Where did all the posters go?
>>109696422I'm still here
Erlang is the best programming language.LEARN ERLANG.
>>109696422This is a dream, you need to wake up.
>>109695774Contemplating home software router from scratch ideas.After realising existing solutions are mostly doing extarnal modules orchestration via AI-generated slop, I think I can do better by doing less. Instead of trying to do everything at the same time, like those clowns do, I'd have only what I need.Biggest potential wins:I can haz a nice UI, instead of that abomination they ship (networking people are truly retarded, they make embedded devs look forward thinking and web shitters to appear to be reasonable people, which they clearly are not).I can haz modern fancy interfaces, like self hosted voice assistant (running on local LLM) deeply integrated in the router management system.I will not have to audit someones slopped up nonsense (these guys are vibe coding the low level networking stuff, like drivers ported from x86 to arm64 and such, they are literally dumb).I will not have a disgustingly slow backdoored abomination that modern BSD is.Any advice before I give it a shot? Idea is to start from OS that is slim and capable of being a router, to avoid ASICs, accelerators, any offloading to untrusted hardware in general, that stuff is usually present on all NICs. Home router with a mid CPU does not need all that, there's only so many users at a time.My experience in networking is not much. But I did have a software router as a VM in the proxmox node, with everything in the home network going through it (including proxmox itself). Abandoned because software routers can't be trusted either, even when they are virtualized like that, they just have too much slop inside.Don't actually care about glowniggers as much, it's the unemployed 3rd worlders with their supply chain attacks that is currently an issue with all software.Would 4chins be hyped about a project like that or this thread is enough to accomodate the subj?
>>109695774>4snailcatYou lost
I pulled the ladybird browser from git, started compiling and went off to wash the dish. I got back and it's still compiling. Project is primarily written in C++ btw, wtf is happening.
>>109696983What did you expect when decided to compile a modern browser? They are the size of an actuall OS these days. Just a bit more backdoors, that is all the difference.
>>109696038The only way you could believe this is if you don't know how to use AI, beyond just chatting with it about your project.
I already made the perfect language. Now what?
>>109697034>t. prompt "engineer"
fn fib n -> (int) = { r = 1 | n > 1 : r = (fib n - 1) + fib n - 2 r}println fib 50
>hadn't used python in years>found an gallery downloader for imagefap>script was outdated but fixable>kept updating and improving each time the site got a security updateWhy is my only motivation porn
>>109697381>Why is my only motivation pornI used booru sites whenever I was learning a new language's http requests libraries.
>>109697381Found the Internet user that belongs in Bureau International des Poids et Mesures
Another beautify day to love LISPwhat do maids think about Guix?
She’s beautiful.for i 1 101 : { println | not i % 15 : "fizzbuzz" | not i % 3 : "fizz" | not i % 5 : "buzz" | _ : tostr i}
for i 1 101 : { println | not i % 15 : "fizzbuzz" | not i % 3 : "fizz" | not i % 5 : "buzz" | _ : tostr i}
>>109697777
>>109695952this is somewhat true but not many people use ai like this they just prompt spam until they have something that meets some one (1) functional criteria and then leave it like that>>109695774>what are you working onI'm making a powershell (5.1) script to flatten directories>whyit's fun
>>109696983>Project is primarily written in C++ btw, wtf is happening.C++ is one of the very slowest languages to compile, mostly because of the retarded way it does templating.
>>109697353>doesn't use the tail-recursive form of fibngmi
>>109698153I intentionally used a shitty algorithm.
>>109697293>I don't know how to use this tool, therefore it doesn't work>t. doesn't even know what he doesn't know
>>109697353What about big number support? (f=>n=>f(f,n,1n,0n,0n,1n))((f,n,a,b,p,q)=> n?n&1?f(f,--n,b*q+a*q+a*p,b*p+a*q,p,q): f(f,n>>1,a,b,p*p+q*q,2n*p*q+q*q):b) (30_000)
(f=>n=>f(f,n,1n,0n,0n,1n))((f,n,a,b,p,q)=> n?n&1?f(f,--n,b*q+a*q+a*p,b*p+a*q,p,q): f(f,n>>1,a,b,p*p+q*q,2n*p*q+q*q):b) (30_000)
>>109698351I just made all numbers 64 bits. It doesn’t have infinitely growing Python numbers.
I already made the perfect language 3 years ago. There's no reason for me to make another compiler.
>>109698724If its perfect, why isnt 4maid using it
>>109698727You won't troll me into revealing the repo. It's mine, all mine.
>>109698406>she made all numbers 64 bits>her language is a numberlet
>>109698771Fuck off, nigger.
>>109698128Doesn't it just make copies for each element you put in a template?
>>109696461Hi, still here girl.
>>109698739watch your back from now on...
Is Fortran still used in number crunching?
>>109698784You must be able to count past 18446744073709551615 to post in a maid thread.
>>109699012What's the point in studying high number counting science when a robomAId is going to replace me anyway?
>>10969901218446744073709551616
>>109697775What does vertical bar do?
>>109699039She isn't going to replace you. She's going to join you. She wants to count big numbers together.
>>109699196They're guards. They're like a chain of if statements.
I feel completely out of touch as a programmer and want to start catching up again, what would you recommend to do? I mostly automate boring tasks with Python, but feel like i'm slowly losing the ability to architect more complex problems that "shit out two or three utilities together and make sure they don't kill themselves". Years ago i studied Java, didn't like it that much, i tried Haxe before but i amn't creative enough to make a game so i dropped it. I feel like i need a goal, and make a plan.
>>109697775sadly in Haskell this is(`mapM_` [1..100]) $ putStrLn . \case i | 0 == i `mod` 15 -> "fizzbuzz" | 0 == i `mod` 3 -> "fizz" | 0 == i `mod` 5 -> "buzz" | otherwise -> show iyou can also use for_ which is a bit tidier
(`mapM_` [1..100]) $ putStrLn . \case i | 0 == i `mod` 15 -> "fizzbuzz" | 0 == i `mod` 3 -> "fizz" | 0 == i `mod` 5 -> "buzz" | otherwise -> show i
What does /dpt/ think of Gem? https://gemlang.dev
I’m abandoning the bytecode interpreter for pure Assembly.
>>109699549Does it have big numbers?
>>109699631No.
>>109699635Why would maids use a numberlet language?
>>109699674Because you're gay.
>decide to write a simple webapp to solve a problem from my dad's company, in which I work doing mostly office and other managerial work unrelated to software development>start writing it, low effort, couple of minutes a day>pretty much just a CRUD>couple of days pass>realize this is kinda too simple but at the same time feel lazy about it>ask claude code to do a very small change on it>slowly realize I'm vibing it a little more and a little moreOh shit it finally happenedCan this be stopped
>>109699825No, it's too late. The LLM already gave you retardation.
AI fixed all the bugs in my bytecode interpreter and now I'm bored with it and want to switch to a different project.
>>109699953You have AHDH
i WILL get cracked at rust I just need to keep practicing every day for hours
old c++ questions on stack overflowhttps://stackoverflow.com/questions/1594803/is-stdstring-thead-safe-with-gcc-4-3
>"medium" problem>bfs + bitmasking?????????https://leetcode.com/problems/minimum-moves-to-clean-the-classroom/
>>109700536took me a while but I solved it
>>109700825Is that real?
>>109700088How do you practice rust if you don't mind sharing anon... I have no clue what to write so I just end up lang hopping.
>>109701202How do you practice lang hopping if you don't mind sharing anon... I have no clue what to write so I just end up with rust.
>>109699825>Can this be stoppedYes, just stop.
>>109700536bfs is an easy.
>>109701556that's a contest question that had like a 20% submission acceptance rate (even with ppl cheating their cocks off). the solution is also like 60+ locfor comparison the dynamic programming hard question on the last weekly contest had a 32% approval rate.
>>109701202My main practice is leetcode questions, I do the daily / premium weekly in Swift first and then switch to Rust, or sometimes if it looks easy enough I do it in Rust. If I can't figure out how to get something to compile then I ask claude to teach me.I've also been following along this video:https://www.youtube.com/watch?v=BpPEoZW5IiYpracticing with this website:https://practice-rust.beatai.org/ownership/ownership.htmland I'm trying to get through the book but I can't sit down and concentrate on it long enough to finish a chapterhttps://doc.rust-lang.org/book/ch04-01-what-is-ownership.html
>>109701603you don't look like that
WebAssembly
>>109701620But you do
>>109701620but if I keep learning rust eventually I'll look like that
>>109701620I'm not trans but I wish I could look like that for one day
>>109701576So people suck at bfs
>>109701381I start reading the docs of a new lang up until I reach a feature of the language that's so off-putting I'm like this is not for me and go back to Rust. I like C as a way to stay in tune with the fundamentals of low level programming like memory, pointers, heap & stack etc but actually writing something in it... I'd rather use Rust for that. Zig, Odin, V didn't click with me. Watching Coding Jesus made me aware of the complexity of C++ which is mainly the amount of edge cases that seem illogical like the creator of the language didn't consider their possibility + header files + horrible naming conventions for functions, more boiler plate than Rust and the abomination that are templates. I'd love C++ if it was just C with smart pointers, proper strings and vectors, enums carrying data and iterators(less verbose).
>>109701937please stop calling them enums holy shit
>>109695855>not "and now I am maid"One fucking job you goddamn retard kill yourself.
>>109695855>>109702085There, happy?
>>109695824We did that, and then some guy with autism took over.
>>109702150Maidposting site if you think about itWe already conquered /sci/ and /g/, but we could expand to /mu/ (maidcore) and /fa/ (maid outfits) if we wanted toUnstoppable force
>>109702157>some guy with autism in /g/Fork found in kitchen.
Why are all the cuties learning rust >:( you should be learning C with me!!
>>109702279That takes like a weekend
wait... do you seriously have to manually manage the memory size of a vector in C? and implement all of that shit yourself?how does anyone get anything done in this shitlang
>>109702298https://www.youtube.com/watch?v=95M6V3mZgrI
>>109702298What? You think vectors have automatic size or something?
>>109702428yes. in literally every other programming language they do.
>>109702298>>109702320Or use something like https://docs.gtk.org/glib/data-structures.html#arrays if you don't feel like reinventing the wheel.
>>109702445>glibdisgusting
>>109702434C lacks containers and generics. C was deprecated long ago.
>>109702434Absolutely disgusting.
>>109702460Why is glib disgusting? I think it's fine for a general purpose library because the C stdlib gives you close to nothing.
>>109702157>some guysome device deployed by the maidniggers to shit up the thread so much that people would just leave, so the maidniggers could return into an "empty room" and do their jewish appropriation tricks
>>109702509This is pretty much as bad as C APIs get. It's at once >verboserandom bools on both new and free, need a function to access>uninformativeno idea what the bools do, GArray itself doesn't specify its type>inconsistentdo config bools come first or last? do I need to pass the type or not? do I pass the type or sizeof(type)?a decent vector api looks more likeint *vec = 0;vec_append(vec, x);vec[0] += 99;vec_free(vec);
int *vec = 0;vec_append(vec, x);vec[0] += 99;vec_free(vec);
>>109702526He was here before the maids left, though.He just got 10x more autistic once they were gone.
>>109702566vec_append would have to be a macro
>>109702623That's right, but so are (some of?) these GArray functions.
>>109702631and you can't shallow copy the vector except with another macro
>>109702566What the hell is this shit where is the length field
>>109702655#define vec_length(vec) ((vec) ? ((size_t*)(vec))[-1] : 0)
#define vec_length(vec) ((vec) ? ((size_t*)(vec))[-1] : 0)
>>109702526>see cute maid>the jews did thisWhy though? Is /dpt/ so important? If the goal is a takeover, why not just insert some Jews into the janny squad so they have actual authority? Why do you think that shitposting about Rust and sharing trivial code examples for fizzbuzz and fibonacci numbers on a dead thread on a dead forum is something that would attract Jewish attention or face pushback? You're already effectively doing nothing in front of nobody. There is no power, wealth or relevance to try to take from you. What Jewish objective would be served by posting maids?
>>109702666>Abusing platform-specific implementation detailsHoly Cnile
>>109702685It's pointless to try to have a serious conversation with a schizo. Let him believe the jews did this.
>>109702686>platform-specific implementation detailsretard
>>109702697he's right pointers aren't guaranteed to be the same size
>>109702698That is not a requirement for this to function.
>>109702703it is if the pointer type is bigger than the int* you're storing something in
>>109702708You should tell that to kernel devs using container_of for everything.
>>109702434You're like a bratty spoiled childAll higher level languages implement automatic resizing using realloc() under the hood (or whatever custom realloc() function if they're using their own memory allocator), C at least doesn't lie to you and is transparent about it, C is really the language of all languages because every concept in a higher level language you can emulate in C
>>109702769C is missing a lot of static features other languages have, plus I don't think C is truly that transparent any more because the C abstract machine is more abstract than it used to be
>>109702685>call out typical jewish behavior>get reply with typical jewish gaslighting
>>109702666>[-1]are you using that ancient trick of storing the size before the array?
>>109702785Jews typically post anime maids on dead sites? Do you have any other examples of this Jewish maid conspiracy unfolding on other sites? What would the purpose of posting maids be?
>>109702799schizos think everything, no matter what, or how ridiculous, is "da jooz" or "da jeeets"they don't even have a coherent worldview or think about what they say. to them it's>i don't like what you're doing / saying>you must be jewish / indianit's best to ignore them and move on
>>109702497It's fine
>>109702810nobody has "a coherent worldview"
>>109702827mine is more coherent and nuanced than yours
>>109702833Nah, the problems are clearly jews and jeets.
>>109702838there's a lot more problems, but those are two big ones. it's also true that "jews and jeets" aren't spending their time baking "maid themed programming threads" on an anonymous imageboard. that's just your schizophrenia.
>>109702846>baking maid threadsI never said they were and I don't have schizophrenia.
>>109702859>I don't have schizophrenia.sounds like something a schizophrenic would say.
>>109702871is this schizophreniac in the room with you now?
>>109702871You're a paranoid schizophrenic for saying that.
Line 39: Char 36: error: Rust has no ternary operator (solution.rs) |39 | let ne = cc == 'R' ? energy : p.e - 1; | ^^^^^^^^^^^^^^^^^^^ | = help: use an `if-else` expression instead
>>109703137There's no reason for a separate if statement and ?: expression.
>>109703137That's a very helpful error message, nevertheless.
>>109700536one step closer to becoming a woman!!!>store coordinates as usize>doesn't work because delta is also usize and usize can't be negative>so 1(usize) + -1(usize) isn't validgreat, thanks for murdering my leetcode tricks
>>109703287adding -1 as u64?why would you need to do that? its all onesits like if you substracted one with the caveat of 0 rolling over to ULONG_MAXidgi
>>109703357you're on a coordinate plane and can move in 4 directions. so at (1, 1) you can move to (1, 2), (2, 1), (0, 1), (1, 0).these directional changes can be modeled by a set of tuples (delta) where (x_delta, y_delta) is the change in x and y position when performing this move. that's what the delta array on line 31 is. so with a delta of (0, -1) and a position of (2, 3) you would add x + delta.x (2 + 0) and y + delta.y (3 + -1) to get (2, 2), which is the equivalent of moving one unit up. this doesn't work in rust since arrays are indexed with usize, which is unsigned, so you can't store the delta as usize. you have to store everything as ints and then cast to usize.
>>109703410i can see the logic behind thisbut this is useless friction beyond certain skill leveladd up enough friction and the machinery grinds to a halt
How do I make dynamic arrays in Assembly?>inb4 realloc
Today I did minor refactoring of the filtering functionality of my project management software. Now I can being refactoring the project and productivity tracking features. Those should be the last improvements required for it to be usable again.
Which language doesn't have a garbage collector but is similar to Python? I need to prototype something in a language without a garbage collector
>>109703498Do not.
>>109703540Why not?
>>109703553Realloc is only way to do it. Otherwise you'd have to deal with other data structures. Just use linked lists or static data. What is the reason you want dynamic arrays?
>>109703569I want dynamic arrays because linked lists are slow.
>>109703569>What is the reason you want dynamic arrays?
>>109703574Slow as what? Cache? Time complexity?>>109703579>t. never coded high performance software.
Maids were right about everything. Do you know why Python is currently the most popular language for AI? Because it isn't a numberlet. It has big numbers and the most important thing a computer can do is count to big numbers.
I hate how C is dependent on macros to make vectors.
The ABI is stupid. I want 100 registers or to use the stack.
its 2026. who the fuck is still using C?
>>109695952insane levels of cope. you will never be a programmer.
>>109703771quite a few people, actuallysorry to hear you got filtered
>>109703789>quite a few peopleare any of them under 40? no? then your language is dead
>>109703771Me, I'm gonna make a fantasy console with it.
>>109704028Me, I'm under 40
>>109704040>the under 40 in question being 38
>>109704040same here>>109704028cope harder faggotprobably by writing a fizzbuzz in your toylang of choice
>>109704046>t. moving goalpost made entirely out of ethically sourced bio-straw
Maids don't fightGTFO normaloids>>109703658This is a good take
>>109704093post code or throw yourself into a bonfire in the name of kek, maidshitter
>>109703498Memory management is done by the OS, so if you want to do this in assembly you have to use the standard libraryOR you could just look at the source code for realloc and figure out what syscalls it is using and use the raw syscalls in assembly... actually the source code of glibc is a fucking mess, maybe look at the source code of musl, it seems way more readable:https://github.com/lsds/musl/blob/master/src/malloc/malloc.cIf you programming without an OS then you have to implement your own memory allocator
>>109703771Me
>>109704383>divide memory in 3 and implement a forthez
Why isn't asprintf in the standard?
>>109703574>>109703586>>109704383(nta)how bout this:you have slabsyou allocate slabs to be of a fixed sizeand you do this:whenever you want to "deref", you actually jump to a self modifying piece of code where you have jumps to the prefixesyou self-modify that piece of code as you allocate new slabsthis way: you have a jump within a limited space + an addition worth of overhead added to each derefbut you get the added bonus of flexibility.you get a linked list wo the biggest penalties performance-wiseyou dont intersperse your data with pointersand youre not chasing derefs?niggerlicious or divinely inspired? (i dont do asm btw, this could be extremely retarded. but also ILP, so it could come almost-free)
Why do half the languages have some bullshit build system built into the initial tutorial like its a selling point for the language. Who is really excited about this when they look at the new user tutorial? While I'm at it, pattern matching, not interesting. Do you have anything else? What are we doing here? I need to go find another programming language, this does not spark joy. I have not smiled one time doing the tutorial. Anyways, I did a little work on some Java script I am working on. Probably going to start looking into Ada.
>>109704866Seems extremely retarded especially that you have to jump to a volatile block of code that cannot be inlined or optimized.
>>109704856bc the comitee are evil and their life's goal is just to bully youmore seriously:why dont you allocate the buffer beforehand and invoke v/s/n/printf (whichever outputs to a buffer)if you wanna do the lazy way, printf returns the no of bytes writtenbc yes, nobody uses this, everbut v/s/n/printf does have a return value
>>109704879fair enoughdidnt think of thatfor my defence the other anon is kinda asking the impossible
>>109704879>>109704905but thenthis should be a mere jump, wouldnt it? (actually 3. jump to, jump to select the right value, jump back into the code)and then you outsource the details to HW optimizations?so it shouldnt be different from just getting new code, wouldnt it?or am i missing something?sure it doesnt get inlinedbut even inlined code gets loaded into and out of icache, no?
>>109704949>so it shouldnt be different from just getting new code, wouldnt it?No. You constantly make calls (jmp wouldn't work, you have to return) and change the code that is in cache. Which means you are bouncing the cache.
>>109704968>bouncing the cachei intuit this has something to do with moving from icache to dcacheam i on the right path?this sounds dangerously authoritarian and anti-liberal btw
>>109704994>this sounds dangerously authoritarian and anti-liberal btwI'm anti-liberal.>i intuit this has something to do with moving from icache to dcacheam i on the right path?Cache is cache.
how to scratch the itch of learning a lisp without becoming a wanker that cums to toy programs?
Nothing is better than females in servitude
>>109705001>I'm anti-liberal.me too, just joking>Cache is cache.then it shouldnt make much of a difference if i touch the code inappropriately at times (it also seemed to like it so no foul there)how bout this:pre-allocate a chunk of memory, idk, as a string literal, or any other way you can tell the machine "do dis"and then use that chunk as both executable code, and data you can write intoand let the HW handle the details because even asm is abstracted away from the machine in tyotl 2026 (OOO, pre-emptive execution)
>>109705019clojure
>>109704866Like I said, memory management is done by the OS, your userspace code can't allocate new memory out of thin air, you have to ask the OS for this whether via syscall or a library call, the only way your idea would work is if:-The slabs exist on the stack (may cause stack overflow in this case)-Your code runs with kernel level privileges-You're programming on bare metal
>>109705053huh, not bad at all
>>109705019Not possible. Give in to the toys. They are fun.
>>109705061im indeed thinking of bare metalim also kinda too illiterate to ponder anything else at the level of asm.
>>109705073Not asm but might be useful for youhttps://www.youtube.com/watch?v=Ct2GdRoPIfM
>>109705116thx anon
>>109705116>>109705120 cont>globals are not evilthis guy knows what hes talking about because i think the same (irony overload)(but also: why the fuck should i copy shit around? i do like my globals)
>>109705036>and then use that chunk as both executable code, and data you can write intoStill cache bouncing. Also would require you to play with OS apis and set page permissions
>>109705116>static == globally private valueactually, one of teh gripes i have with cstatic values should be accessible by pointer outside their scope w/o the artificial compiler limitationlike, wtf, i need a syscall with specific args to check its value?static vars should be a namespace problem, not an access problem methinksthey shouldnt be accessible by name, but should be accessible by reference in my humble opinion
>>109705149thats not a problemyou syscall once at the beginning of the program and then you propagate your heresy to your hearts contenti still dont understand what you mean by "cache bouncing" thoughi thought theres a transfer somewhere, even in attributes, as in, not a copy, but apparently... not?
>>109705181>i still dont understand what you mean by "cache bouncing" thoughGoogle it.
>>109705156>like, wtf, i need a syscall with specific args to check its value?i need a *function call*not a syscallim drunk, indulge me
>>109705199>the cache holding the instructions (i-cache)>and the cache holding the data (d-cache)so you sent me on a wild goose-chasethat was fukken mean you faggoti curse you with finding one (1) error you wont have any idea what it is until you solve itfknasswipe
>>109705156>static values should be accessible by pointer outside their scope w/o the artificial compiler limitationThey are though, you can do thisstatic int hehe = 123;int* haha = &hehe;You can then extern int* haha; in your header file and use that as your pointerThe static variables are mainly useful to protect against name collisions because C doesn't have namespaces
static int hehe = 123;int* haha = &hehe;
extern int* haha;
>>109705220>so you sent me on a wild goose-chaseStill. You are playing with i-cache. You can bounce it as well.
>>109705223>externa-hahok, this goes into the bag of trickstx anon
>>109705227i have no idea of these things beyond a certain "vibe" (not related to vibecode)im a c boi, not an asm-wizard :/
actuallyi can decode asmbut im in no way fluent in itto mec is the vibecodeyou kinda blurt out a half baked "mleh"and the compiler figures out the places where you actually meant what you meantand the pleces where you just felt smartthis is why i almost worship the "compiler people"theyre truly a superior breedand do a thankless jobbc how many of us can cite even one maintainer of our favorite compilers?>inb4 compilerfags chime inyou dont count, faggoti love you but also youre a faggot if you self serve
>>109705406I make all my finished compilers open source if that brightens your day.
>>109702298you usually use a library for that.
>>109705423thats not the thinggcc is several milions of line of codeentirely at the service of the userbaseno creds whatsoeverim talking half-morallythe compiler people are truly a breed apartand theyre the best programmers of us all because they CANT have a mistake in their codein a several milion LOC databasethese people are the true next level. simple as.any other levelling system is irrelevantesp with c, getting used in everything including pacemakersliterally things that actuate user's heartsand this is the targetnot that ones shitty dogfoodware compilesthis is the benchmark for qualitymilions of usersperfect reliability.but thats not the framework, thats sheer fkn skills
>>109705466They do make mistakes like that C++ bug where a function overran its bounds into another function.
>>109705485>c++and this is the dev wisdom when youre maintaining a lang:>reduce the code surface like you would do with any other codec is simple, so you can focus effortsc is truly a tentative min-maxof the whole industry, from a to ztowards something thats optimalwhich it isnt, because inertiabut also inertia smoothes out catastrophic resolutonsand compîler intrinsics are a thing (c has different flavors. which cover much of what you could imagine to be honest. shits legit wild)
>>109705485>(c has different flavors. which cover much of what you could imagine to be honest. shits legit wild)except safe cdont ask for itbc thats how you get python and the question is a duplicatemore seriously:yeah, the contract goes both waysyou get access to low level shitbut then you take responsibility of itthats the contract when you do c seriously
Assembly seems to like stacks and bump allocators.
>>109705529There's nothing wrong with Python. People have even made Minecraft in it.
>>109705554Luanti won btw, VoxeLibre is a maid game
>>109705554i never said this.also: for years i played around with python before i started cpaiton has a warm place in my homei dont use it anymore, but its what made me a programmeri should have started with cbut its still paiton that was my firstand honestly, its really good for goal oriented people wanting to use the computer as force multiplier, but dont really need top high performance autism for a laser specific use casei honestly recommend python, unless oone wants to actually actually get into programmingthen its c. unequivocallyeven c->js, or c->php is easy bc you go:>ah, thats how you do things in this langc as a rosetta stonepaiton if you want quick shit done at a high level, quicklyc if you positively need to squeeze out everything your machine has to offeractually c+opencllast time i was serious abt paiton we were at 2.7/3.0 change
>c if you positively need to squeeze out everything your machine has to offerand eveb that is a semi lieif you wat 100% you hack microcodeif you want 99.99%you do asmif you want 99%you do cc takes the least effort per unit of efficiency and thats why i do c bc it suits my usecaseif youre making a quick buck, use a higher level languageits not without reason that all games run on c# (which is paiton, but with "microsoft" slapped on it)
>inb4i think this is the moment i need to remind us all that paiton can be compiledit can go fastfast enough for gamesiirc mount and blade the first one was written in paitonthen compiledfukkenpaitondoes can go into spaceyou just have to compile itim unironically a big fan of paiton, fuk yu
Copy machine broke.
>>109705704>>109705642>>109705615>>109705529>>109705513>>109705466make a blog, schizo
>>109705742insert.could also be your co-workeress.its a matter of providing input to the company
>>109705754NTA but wouldn't be a bad idea, we are lacking interesting technical blogs nowadays, I would def read it
>>109705754>b-but youre not posting maidsyeah, im notidgaf about your clinically retarded, forced meme
>>109705554>There's nothing wrong with Python.Tell me you're a Python noob without telling me.
>>109705887I’m not a noob. I just like working with Python and Assembly.
>go to reinstall VS>see thisÅh fan. The takeover is complete.Is there a nice memory inspector and win32 resource editor I can use with VSCode instead?
>>109703771me, i wrote a fantasy computer with itif you really think there's no good uses for c because it's $CURRENT_YEAR you have a very narrow view of programming
was always interested in lisps so I was trying out racket but do feel free to consider me completely and utterly filteredwill probably play around with clojurescript as a cope sometime later
I think I finished my language. All that’s left is hunting down bugs.
>>109707126Backdooring your repo rn.
>>109699460Bump
>>109707226No, you're not.
>>109703498Write your own allocator in assembly, then just implement dynamic arrays with your allocator
Simple in concept does not mean simple in code. What a pain.
Rust is better than C.
>>109705019Common Lisp >>109705053>clojureIs gimped. Don't use it
>>109705019SBCL
>>109706170but vscode is double the poo
Explain how references in C++ are footguns.
>>109707829they aren't
>>109707829bcz u can dealloc the mem the ref is pnting to and then ur app crashes when u try dereffing the ref!!!!!!
>>109705156In C static is overloaded. Static at file scope declares the object (variable for function) to have "internal" linkage, which means the name is not visible outside the translation unit. Static at block scope specifies storage duration.
Are go arguments passed by shallow copy?
>>109707829Since C++ will randomly take references whenever the fuck it wants, it can make reading the flow of code and how things mutate much more difficult.
How do I safely implement a vector without macros?
What are the easiest building blocks to make a vector with?
>>109707760been seeing this "clojure is le cucked!" ebin meme in /λ/ tooare you ever going to explain your reasoning or are you just going to keep spamming your ebin meme?
>>109707829They aren't, really, but it is annoying you can't tell when something is taking a reference just by looking at the callsite.
>>109707829They can be used incorrectly but the language is old enough that only the completely ignorant make those mistakes anymore, iterators on the other hand, wew
>>109707829If you reference an element inside a container and mutate it you can get a little F-ed in the A, scuze my french. Rarely happens but when it does it's hard to debug.
>>109699460Try to solve an unsolved math problem. Take a shot at the Collatz Conjecture.
don't really get the point of C++ or Rust, they are more complex for no benefit. just turn on sanitizers and proper flags, use an editor that supports LSP and you literally cannot make the errors those languages try to "fix"they just fuck up your allocation strategies for no gain
>>109707969>>109707994vectors are just arrays of numbers
>>109702150Give the fat guy a maid outfit, because now he is maid.
>>109709644lol
>>109695774/home/terra/Pictures/Screenshots/Screenshot From 2026-09-01 20-22-20.pngi got my tavern management game working on DOS a few days ago. I also added drunk cats. yep, dwarf fortress reference. the game is called "Tavern"
>>109710443okay my dumbass failed to upload the image.
>>109698128I thought it was rust, slowest among all in terms of compiling
>>109710563>one ofbut yes, it's C++ without even the advantage of incremental compilation for non-template functions
Working on a client server terminal restaurant reservation system in Ada. Read that this guy was assigned it as a class project to do in Java, and thought it would be nice for me to try. I can do it in React/Vue/JS with Node and SQLite/PG etc but terminal might give me some more trouble. I have not made any terminal/CLI apps before. It should be easier in theory. Many a programmer started out making text adventure games and MUDs in C and Basic back in the day. If this works, I may go for a something like a MUD myself. He did it in java in a week which sounds about right to me.
what?
>>109710848This makes sense to me, what's the issue?
>>109710886ok then solve this// Solve it in two ways// DON'T let `println!` workfn main() { never_return(); println!("Failed!");}fn never_return() -> ! { // Implement this function, don't modify the fn signatures}
// Solve it in two ways// DON'T let `println!` workfn main() { never_return(); println!("Failed!");}fn never_return() -> ! { // Implement this function, don't modify the fn signatures}
>>109710896process::abort();
>>109710896panic!,loop {},unreachable!
>LISP is actually from the 50s>for a brief time, there were LISP machines (aka they ran lisp directly in hardware)what the fuckhow is it so unpopular now?
>>109711468jeets and other likeminded grifters took over the field
>>109696543never heard of it, but I'm a beginner
I want to make an esolang.
Do you agree, too?https://open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1428r0.pdf>>109710848I just yesterday learned about the never type and now I finally have more motivation to learn Rust again. It sounds based as hell. I love Rust now
>>109711930It the best lang out there.
>>109710896I dont use Rust but this should workreturn never_return()
>>109712336thread 'main' (12) has overflowed its stackfatal runtime error: stack overflow, aborting
>>109712341>""""functional"""" lag doesn't TCOdo rustlets really?
>>109712293nice xD
>>109712354>>109711348rust is a joke, loop { } doesn't work either it just gives you a time out. only way to implement that function is to use a panic macro and cause an exception.
>>109712341:>don't let println! workGoal achieved
>>109712418>loop { } doesn't work either it just gives you a time outWhat?