[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]


Janitor acceptance emails will be sent out over the coming weeks. Make sure to check your spam folder!


[Advertise on 4chan]


File: IMG_7988.gif (344 KB, 500x491)
344 KB GIF
Previous >>109376420
>>
iToddlers BTFO
>>
>>109393385
but what am I working on /g/?
>>
>>109393811
Those zoomers don't keep the traditions
>>
>>109394011
I don't care because there is a cute anime girl OP and its not maidshit
>>
I like it whenever someone else finally gives in and makes a new /dpt/. It's confirmation that people here and there are much more addicted than I could even dream of.
>>
fact n =
fs n 1
where
fs n r
| n > 1 = fs (n - 1) (n * r)
| otherwise = r

main = print $ fact 5
>>
So?
>>109390379
>>
File: 1677123434047898.png (769 KB, 680x674)
769 KB PNG
I don't want to make any more compilers.
>>
>>109394350
Finally.
Now can you *please* oust the compiler autists so that we can have some actual proper fucking optimizing compilers?
>>
>>109394439
Everyone who wants to optimize is just transpiling to C.
>>
Erlang is the best programming language
>>
>>109394471
Rust is even better.
>>
WHICH FUCKING C# VSCODIUM FORMATTER EXTENSION HAS THE OPTION TO SWITCH TO K&R BRACES (NO NEW LINE FOR OPENING BRACE) NONE OF THEM FUCKING HAS IT FOR FUCKS SAKE
>>
>>109394459
>optimize is just transpiling to C
But C compilers are garbage!

>>109394498
Haha!
>>
>>109393811
>>109394011
based doubles
>>
>>109394509
>But C compilers are garbage!
write a better one
>>
The real maidposter were the friends we made along the way
>>
File: 1726729365109912.jpg (135 KB, 512x384)
135 KB JPG
>>109394526
Just fix the existing ones.
Oh, but you can't.

>>109394532
Friends are superfluous.
>>
Ok now I want to write a compiler in Rust :(
But the headaches and I have to finish my clock first
>>
>>109394544
>Just fix the existing ones.
But i thought they are garbage? Just make it better?
>>
>>109394552
>But i thought they are garbage?
Are ... are you actually admitting they are garbage *beyond repair*?
>>
>>109394574
I really don't care desu. They work. I can get my stuff done with them. It's alright
>>
>>109394584
So you don't understand assembly and have no actually valid opinion, got it.
>>
>>109394350
Make more type checkers
>>
>>109394598
Yeah, because that will totally help.
>>
>>109394588
I do understand assembly, but I have no opinion on the output of current compilers
>>
>>109394678
So you have no empathy, got it.
>>
>>109394687
Why should I have empathy with a compiler?
>>
    // 3.42 Write a program to copy a vector of ints into an array of ints
// (nums_vec was defined some lines back
const size_t sz = nums_vec.size();
int nums[sz];

for (size_t i = 0; i < sz; ++i) {
nums[i] = nums_vec[i];
}

// printing
for (size_t i = 0; i < sz; ++i) {
std::cout << nums[i] << std::endl;
}


I thought this should not compile according to C++11, but it does even with -Wall -Werror -Wextra. I don't understand why.
>>
>>109394696
>he thinks this is about compilers
>and not about users
And this is why I keep calling your ilk "autists".
>>
>>109394600
yes it will good observation that's why i suggested it
>>
>>109394719
if nums_vec is a std::vector and not constexpr it shouldn't unless it's some kind of GCC extension
>>
>>109394800
Yeah, because type checking is the true fucking bottleneck.
>holy autism
>>
>>109394815
Nobody is talking about performance schizo
>>
>Nobody is talking about performance
And that's the very problem, cow feed.
>>
(\n = @(\n r = | n > 1 : @self n - 1 r * n | _ : println r) n 1)
>>
>>109394855
nta but i can talk about performance
also
>what are you working on
having a hard evaluation of my life choices

the real will know what is happening here at a glance
the real real will know that im really fucking fed up with it too
>>
>>109394928
>free(name)
I have already seen enough.
>>
>>109394964
yeah, fucking kill me
why did i ever thought im gonna make a thin interface over opencl which at the same time encompasses the huge variety of tasks the framework is supposed to deal with, and still be light enough not to become "opencl, but i an alternative notation"
dis sucks
and the worst part is that im 95% of the way through
with, as expected, the last 5% taking as long as the whole rest

the worst part is that ive been here.
oh, so many times...
>>
I don't like Haskell being slow and using up ram. I'm going to make a fast Haskell.
>>
>>109394779
lets be honest
users kinda deserve it desu
>>
/g/ shills C because they want faster gaymes.
>>
>>109395019
You wanna know the worst part?

I'm hilariously drunk on vodka right now.
>>
>>109395035
Nah, I've given up on modern games ever since CrossCode.
God, what a shitshow of an ARPG.
>>
>>109394719
vla's are an extension and it existed on C++11 compilers.
none of the C++ versions mandate vla support.
you can use -Wvla if you need warnings if you want your code to be compatible with msvc.
also warnings are supposed to have low overhead on build times, if you want aggressive warnings you should use clang-tidy or /analyze on msvc.
but note that the only static analysis tool that actually catches bugs, is pvs-studio. Unfortunately they removed the free license (which requires you to add a 2 line comment at the top of every source file). Probably because it was too easy to circumvent it. You can still try it out on godbolt.
It runs locally on your PC so I bet there are cracks for it.
>>
>>109395041
in a crazy world
radical solutions suddenly seem ordinary

im alcholized too btw
porto. the og. cocktail.
thats my feminine side and i dont hide it.
.
>>
>>109395072
*also I am not sure but -Wpedantic is usually the flag that gives you warnings when using extensions / portability stuff, but I don't think it applies to VLA's.
>>
>>109395083
Dude.
It's not like vodka is hard to drink. Get some sugar-free soda along with the vodka; fill your mouth with the vodka without swallowing, then put the soda bottle at your mouth. Swallow the vodka without breathing, then quickly flush your mouth with the soda - and don't just swallow it, but wash it out.

Bourbon's got NOTHING on this mfker.
>>
>>109394855
I bet when your wife asks you why you finished in 3s you tell her you'll try and cum more quickly next time
>>
>>109395106
>vodka and zapoika
dw, i straight up drink warm vodka
bc i actually like the taste
i dont want to get too smashed today, though
i still lie to myself ill be working later on

its just that i like porto, man
i also like to listen to pj harvey from time to time
and i have long hair, but thats because an old boss of mine said that if i trim my hair to 5mm like i usually did whenever the haircut started looking goofy, hes gonna fire me
so i said "ok, i wont cut, just to make you shamed of me"
that was 10 years ago. didnt cut my hair once since then
>>
>>109395106
also: bourbon
what about scotch
the real shit like glenn fiddish? none of the fukken johnny walker or chivas shit

you like hard liquor? you absolutely *need* to drink real scotch at least once in your life
you'll forget all about zapoika

im not a conoisseur by any means
but the real thing is an actual experience
>>
(\n = @(\n f = @f n 1 f) n (\n r f = | n > 1 : @f n - 1 r * n f | _ : println r))
>>
>>109395140
>he has issues distinguishing between pleasurable and non-pleasurable activities
There's a reason ADHDs hate autists, and this is it.

>>109395151
>bc i actually like the taste
OK, then you're more hardcore than I am.
I know they call it "gutrot", but for someone who's got a sweet tooth like me, flushing it down with soda is about the only way I can digest vodka.

Again, hilariously drunk. In fact it's a little bit of a miracle my spelling is just that good.
>because like it or not
>I'm not even a native English speaker
>Look on my works, ye Mighty, and despair!
>>
>>109395184
>what about scotch
Ehhhh.
I've tried Single Malt, and I'm not a fan. Not just even because of the taste (in fact I'd consider it quite sweet) - it's just that you cannot beat vodka + soda in terms of price and effect.
>>
>>109395190
Based
>>
>>109393811
Hopefully something that doesn't run on MacOS.
>>
>>109395191
>>I'm not even a native English speaker
yeah, the zapoika gave it up 100%
i bet youre either slavic, balt or at least have slav/balt friends

i dont want to make an alcoholic out of you
but look for filtered vodka specifically
and if you want the premium experience of drinking vodka-
buy a bottle of smirnoff, put it in your freeezer, not even fridge
the freezer, its crusial, it needs to be ~ -15° when you drink it
and pour yourself a shot. a classical, bar-sized shot, 5cl.
thats near the optimal vodka experience

not to make an alcoholic out of you
but hard liquor can be enjoyable, and become a refined experience
you deserve it. not everyone can read c, you gotta treat yourself sometimes
>>
>>109395191
>I don't enjoy running programs
Odd thing to bring up anon
>>
>>109395235
>i bet youre either slavic, balt or at least have slav/balt friends
Lol
Lmao
I kinda hate slavs. Way too entitled.

>i dont want to make an alcoholic out of you
Oh, don'tcha worry none, because I already am.

>but look for filtered vodka specifically
Ehhhhh again.
I'm OK with the 3-times distilled kind. Oh, sure, it's lower proof, but it just makes up for it by being cheaper.
>>
>>109395251
I enjoy running *efficient* programs.
Again, ADHD.
>>
>>109395264
slavs? entitled?
it must be the jewcrainians bc poles usually are under-demanding
jewcrainians though... yeah, even today i had to remind one of them that he has to actually follow the products hes buying once he placed em on the rolling belt. he even tried to look at me tough-wise, but nigga, ive fought 5 men at once (didnt win but didnt lose either. fren got punked, went to sleep, the mission was to attract attention long enough for cops to come. 5 men. they didnt manage me for ~5-10 minutes), you aint gonna impress me, especially once i gave him a slight push bc he didnt even hear me, his body was a mass of soft, it hard to describe how much his blubber gave way to my forearm. i was shocked, but yeah. outwardly, he looked decent, but inside he was made of feathers made of jelly, idk
it truly was shocking. like he entirely and completely lacked abdominal muscle structure

but yeah
jewcrainians. they come from ancestral khazaria, what else to expect?
>>
File: 1619007706826.png (37 KB, 800x600)
37 KB PNG
>>109395355
>slavs? entitled?
Yes. Oh yes.
>>
>>109395190
Chatgpt understands this.
>>
>>109395277
>Not realising the obvious problem with your reply
You are the fakest autist and greatest pseud of all time
>>
>fakest autist
Good. I wouldn't claim your ilk for all the money in the world.
>>
>>109395369
dats not being entitled doe
thats just being a servile bitch for foreign interests

when did a polish man come to you for gibbes?
they can come to you for work, which hapenned to me
but theyre not fucking shitskins who fight you because you decline giving them money.
which also hapenned to me

nah, poles are ok
but ukroniggers are something else
fucking niggers of europe

did you know that poles got genocided by ukroniggers?
and in rewsponse they just removed them from their territories?
and now the ukrotrash calls it genocide and says bc of that they are even?

niggers, but painted white.
>>
>>109395460
>when did a polish man come to you for gibbes?
Guess.
>>
Do shitjeets cope with the fast meme since they can’t write Pythonic readable beautiful code?
>>
File: 1687617155437980.jpg (115 KB, 1239x1120)
115 KB JPG
>>109395471
>literally implying jeets are capable of feeling shame
>>
>>109395468
its a hard guess- in the country i live in they dont get any gibbes
but they run half of all construction companies.
the one time i came to contact with a homeless pole, we drank, sure
but he nagged me for work and said hes disgusted of himself for living in the streets

and happy ending for him. i found him a job with a friend.
hes their champion now. the guy works 2x harder bc hes grateful, even now, fkn, 13 years later

i aint got anything bad to say about poles
they drink, theyre sometimes raucuous, but theyre nowhere near the non-europeans. it is what it is. different cultures.
>>
You're all drunks and should feel shame.
>>
>/g/ is mostly jeets.
>/g/ shills C.
Seriously explain. I thought C was the electrical engineer language.
>>
>>109395492
Why do you assume their migrants represent the majority of their population?

>>109395512
Jokes on you, alcohol used to be humanities best friend for a good fucking reason.
Just look up what sailors used to get off of during the Middle Ages and the Renaissance.
>>
,[.]
>>
>>109395527
It's not even a C thing. It's LITERALLY all about interfaces.

It just so happens that C's got the best interfaces, and by Golly is that supposed to be an insult.
>>
>>109395527
C is everything language. Kernels, embedded, user-mode software, libraries, daemons, everything.
C.
>>
>>109395569
>everything
Where is the category theory bullshit
>>
>>109395580
Right up your ass, and don't you forget it, you literal fuckboi
>>
>>109395569
Half of that is EE.
>>
>>109395611
>non-answer
>>
>>109395619
And proudly so. It's literally all that you deserve.
>>
>>109395549
>Why do you assume their migrants represent the majority of their population?
because culture is an epidemiological vector for ideas.
>why do you assume all shitskins are terrorists
bc theyre shitskins. but also sociology as outlined above

even more:
>culture is a set of constraints that lead to normalization (mathematical-wise)
>>
>>109395664
Holy leftist meme.
>>
>>109395637
AI chatbots make for better conversation
>>
>>109395675
yeh, idc about the left/right thing
irl, its either "that works", or "it fukken doesnt"
*insert directionbrain meme here*
>>
>>109395690
So much C code is shit and uses _ prefixes which makes the code broken by design. They should be cast into Rust.
>>
>>109395688
The fact that you even *dared* to post that answer tells me everything I need to know.

>>109395690
It's not about left/right, it's about walls of test.
>>
File: IMG_9602.jpg (29 KB, 472x475)
29 KB JPG
I can't do it.
>>
>>109395735
i... honestly dont know
i odnt use other's libs
i use c sopecifically bc... well, honestly, i can do whatever i want with it
but also bc otntologically (??? all the question marks, i program, i dont philsiphize)
c is all about letting the user create their own interfaces
bc each interface has a discrete calling cost (which can also be 0- like with force inlines)

>>109395742
tests say ideas propagate within social groups
im hardly discovering anything here...
what are these tests? manifest reality?
then the axiom is that no ideology survives because for an ideology to be one, it needs to pervert the reading of reality
otherwise, said "ideology" would have been the "common sense" following a platonic "perfect decision"

its hard logic. ideology can ONLY be irrational
>>
Can she do it?
>>
ChatGPT said to use @ for function application. Is this a bad idea?
>>
>>109396016
We don't care, enjoy your slop.
>>
>>109395845
>iCan't
iToddlers BTFO
>>
oh no I'm bug infested
>>
>>109396325
sepples is the bug chaser of the programming world.
im drunk, but also open to challenge on this
>>
>>109396325
>>109396390
really
sepples is c with none of its advantages deriving from a limitaed feature-set
but with all the disadvantages, because you need to undertstand all of the abstractions

bjarne is a niggerfaggot and deserves to get elbowed in the mouth bc he allows the concept of hostile design while working at the level of c.
it is what it is; bring him unto me so that i may render judgement.
>>
>>109396390
bro that's C# go to sleep
>>
In ARM64 is b faster than bl?
>>
>>109396471
no.
>>
The C equivalent of this program was 2.5 times slower even with -O2. Compilers really are stupid.
.global _main
.align 2

#define BASEREG x17

.data
chars:
.quad 4
.quad 'A'
.quad 'B'
.quad 'C'
.quad 'D'

.text

_main:
// Standard macOS ARM64 stack frame
stp x29, x30, [sp, #-16]!
mov x29, sp

mov BASEREG, x29

// print_char('A')
;mov x0, #'A'
;bl _print_char
b print_arr

// Return 0
mov w0, #0

// Restore frame
ldp x29, x30, [sp], #16
ret

print_arr:
adrp x1, chars@PAGE

ldr x0, [x1, 8]
bl _print_char

adrp x1, chars@PAGE
ldr x0, [x1, 8]
sub sp, sp, #64
mov x0, x1
mov x1, sp
bl cpy_arr

b exit_syscall

cpy_arr:
// Create stack frame
stp x29, x30, [sp, #-16]!
mov x29, sp

;mov x0, #'A'
;bl _print_char


ldr x2, [x0]
1:
ldr x3, [x0, x2]
str x3, [x1, x2]
sub x2, x2, #1
cmp x2, 0
b.gt 1b

ldr x0, [x1, #8]
bl _print_char

// Restore frame
ldp x29, x30, [sp], #16
ret

ret
>>
/dpt/ is dead again.
>>
>>109396838
Better dead than some of the shit we have to put up with.
>>
Do unconditional jumps mess with the branch predictor?
>>
rn testing out rlsw.h to draw something else than my clock on my clock
https://github.com/raysan5/raylib/blob/master/src/external/rlsw.h

First trying to building a little abstraction to test on desktop and real hardware.
desktop with sdl2, hardware is just pure uio mmap
>>
>>109396465
iunno, man
ive messed around with see- sharp
and it basically paiton

i do opencl shit
im not an ultrapro in it, but i manage
but sepples, man
that thing legit scares me
i mean not in the flight or fight sense
but when you think about it, its kinda fuck in the ass
and the libs guys seem to agree
everything including cuda is has c handles, primitively
*as far as i know*

opencl, certainly, but that is gradually becoming a dream
and it makes me sad...
one language...
one framework...
for all ones heterogenous comuting needs...

that idea legit drove a tear to my eye
a good for nothing like myself can program everything from a smartphone, to a gpu, or a regular cpu even, to a supercomputer
and people dont understand the beauty of the freedom it provides

im drunk, so im in emotive-bitch-mode
but still
opencl is dying
the real know, and keep it alive
but it is...
and that makes me fucking sad

were living the end of an era, truly
on many levels, including the technological one
-the era when there were promises for a better future
and now, the incoming era of broken promises

ill manage, bc i always do
but this hurts like a potential the majority wont even know existed

sycl still exists though
i guess thats the nest frontier, and afterwards, we'll imrpovise

opencl was easy though
i easy, but its dying. slowly, but it is.

shits fucked, mate, why cant we have nice things? ffs
>>
>inb4
>nuh opencl namedrop
you fukken niggers
now? in the age of llms when they can walk you through any installation problem you might have?
and thats the hardest part, because otherwise yorue writing c

srsly
in ad 2026
opencl is no longer a namedrop
its a fuckign filter bw true fucking illiterate retards
and only the slightly retarded

its legit c
the difficult part is that instead of having a for loop
you have a kernel, and the value of i in the for loop
you retrieve it with get_global_id(0)
its dead easy
complexity arises only when you want stuff to interact with eachother but you can get the superpower of using a gpu, writing fukken c

come the fuck on
2026
opencl, still a namedrop?
when its the easy mode
a hook for fuken c holy shit
>>
>>109396907
No.
>>
File: IMG_9310.jpg (143 KB, 1920x1080)
143 KB JPG
My Assembly is very based.
>>
>>109397046
on what?
>>
>>109397057
Success and performance.
>>
Everything relevant was made by people smarter than me
>>
>>109397104
nta but that sounded based indeed
>>
>>109397104
iata and that sounds cringe
>>
I like >>109397326 better than >>109397359
>>
File: 1785247824875.jpg (66 KB, 1113x361)
66 KB JPG
>>
Daily reminder this is the saddest thread on the board
Lots of delusion in here
>>
File: coolio.jpg (986 KB, 2560x1440)
986 KB JPG
>>109396921
it werks
>>
>>109397385
>Hey bros, I just found out that I am autistic
>>
>>109397385
Gfy, what did this comment add??
>>
>>109397385
No, that would be /vcg/
>>
C now has auto. Suck it, tradfags.
>>
>>109397484
it actually always had it
auto is implicit, or used to be
and used to denote the type of storage
as in auto/register/static/extern

what, youre saying that it means something else now?
>>
>>109397638
Yes, it works like sepples auto now.
>>
>>109397651
ok, i guess
it was never used anyways, it was pointless
must be because of some obscure legacyshit from before c was even standardized
ill still never use it bc then legibility takes a hit
KISS and such. plus im very sensitive to mental friction/cognitive overhead, but thats me
>>
>>109397651
>>109397688
cont
id much rather see them standardize force inlines for fucks sake
these invalidate 3/4 of the usecases of macros, and are already a fait accompli in gcc
fuck the inline being a hint- shits' already inlined with -O3
i want hard guarantees to compose functions, basically
thats the true zero cost abstraction- force inline
or macro but macros are a pain to work with
force inlines delegate them to being only syntactical tools, as opposed to code inline mechanism
>>
>>109397732
They won't because of recursive inlining.
>>
I fucking found it.
https://youtu.be/Q-ATtrImCx4

In 2010 everyone was raving about this voxel engine saying it was going to revolutionist 3D games but it ultimately failed due to catastrophic resource usage.
This is AI today, you may as well be trying to brute force the solution which is horribly inefficient and when AI needs to start cashing the cheques it's been writing we're in for one hell of a show.
>>
>>109397811
thats fucking gay
its already solved, no?
its just a mater of formalizing the thing
>>
>>109397853
Please watch the video he's saying the exact shit these AI grifters are saying, "all we need is more compute power"
>>
How do I learn to build a OS on my own from scratch for fucks sake
>>
>>109397922
i saw a couple yewtubes that pertained to os-craft and other bare-metal-programmery
also llms are pretty decent to use as search engines

but im sure some anons will know better sources
short of that, but a laptop, then just fukken hack at it until you figure shit out
its the usual MO
>>
>>109397961
>but
*buy
>>
>>109397922
and by "buy a laptop" i mean some old pos you get for 50 bucks or something
or maybe an old tower, might be easier with the uefi and stuff
laptop may have more systems than expected

an old tower might be a better thing
obv you dont wanna do that on your main computer in case you brick it or something
plus yeah, you can look up shit and program when your current computer is out of order so best to have a sacrificial machine anyways
this i can say for sure
>>
What is the advantage to forcing functions to have type definitions?
>>
>>109397999
Those are some nice nines.
>>
>>109397999
It makes them less exciting
>>
>>109398025
How so?
>>
I answer the online interview test coding questions correctly and even get the correct printed output for all the examples but yet I fail these interviews. Am I doing something wrong or do the tech gods just hate me?
>>
The godbolt code looks so much better. How come my naive Assembly is still faster?
>>
>>109398206
The HR roastie did not want to fuck you, that's what it all comes down to these days.
>>
>>109398306
>>109396803
>>
>>109398318
Women are whores. If they don't want to fuck you you've REALLY fucking messed up.
>>
>>109396803
the C runtime has to do a bunch of stuff on startup like prepare allocators and construct and pass command line arguments to main

you need to actually profile the functions in question to get a usable result, and even then correctly profiling can be tricky
>>
>>109398704
The Assembly uses _main and compiles with Clang. I assume Assembly then has to go through the same startup.
>>
main = print "NIGGER"
>>
>>109398764
does it? can you access argv from _main? also when you return does it go through exit()?
>>
>>109398828
God said sports are homo. Tackle a horse
>>
Erlang looks like hell.
>>
>>109398828
What language is this in?
>>
>>109399065
Haskell
>>
How do I become as based as him?
https://mastodon.social/@mitchellh@hachyderm.io/116993012792773112

You can come with your racism and muh onions or something else around the corner now, but he is based as hell
>>
>>109399183
https://mastodon.social/@mitchellh@hachyderm.io/116993735544834134
>>
factorial n = consider n > 1 therefore n * factorial (n - 1) otherwise 1
>>
>>109399183
Two paragraphs in, and I have no fucking clue what he's talking about other than
>muh memory usage
And the fact he's talking about
>muh memory usage
, and not about cache utilization, tells me every I need to know about both him and (you).
>>
I USED THE AUTO IN THE C
>>
>>109399236
His bank account has 3 commas. So what's your point?
>>
>>109399256
>His bank account has 3 commas
So he's taking propaganda money, got it.
>>
File: IMG_3088.jpg (34 KB, 450x602)
34 KB JPG
My Python program wasn't vibecoded.
>>
File: doubt.jpg (18 KB, 600x341)
18 KB JPG
>>109399283
>>
>>109399296
It wasn't. The Go and Lua programs were.
>>
>>109399303
>>109399296
>>
>>109399320
Nigger.
>>
>>109399365
>>109399296
>>
File: IMG_1203.jpg (68 KB, 890x839)
68 KB JPG
The original C didn't even have structs.
>>
TCC isn't available for Mac.
>>
>>109399397
The original C had a heap parameter for malloc, and worthless, sabotaging autists got rid of it.

If anyone ever needed any evidence that autists are the enemy of humanity, this is it.
>>
>>109399413
The autists keep the dangerous toys away from you.
>>
>>109399183
Usecase over xfce4-terminal?
>>
>>109399480
No, all the autists have been doing is to prevent intelligent people from doing intelligent things.

Because autists aren't just autistic - they're fucking retarded. RETARDED. And I'm tired of pretending otherwise.
>>
>>109399484
Usecase is the same, but you can say your terminal is fast.
For normal people that makes no differences. If you want to run onions terminal apps you have a little less flicker
>>
>>109393385
Why is Satania running a general thread?
>>
>>109399617
To btfo you.
>>
File: swingingpenis.webm (305 KB, 720x405)
305 KB
305 KB WEBM
Ok got raylib up and running.
The poor risc-v quad core is a bit slow as it seems, but the problem could also be just the drawing routine taking up WAY too much time. Gotta move that to a DMA and also improve the double buffering a bit
>>
>>109399711
desktop comparison
>>
>>109395735
_lowercase is fine, but yea
>>
>>109399769
No because the internals use _underscoreprefix
>>
>>109399617
Autists have issues expressing emotions, so they just use reaction images instead.

>>109399711
Agreed, that should be WAY much faster.
>>
>>109399842
Autist
>>
Haha no.
>>
>>109399853
Haha yes.
>>
>>109399853
>>
>>109399842
>Agreed, that should be WAY much faster.
turns out it doesnt.
Made a quick measurement and calculating the double pendulum example took abotu 13ms, drawing took 24ms and shoving it all over APB only took 4ms.
So I'll just leave the hardware as is and write a flappy birb now??
>>
>>109399904
>drawing took 24ms
Dude.

Like, duuuuude.
>>
>>109399912
Processor
1x 64-bit RV64IMAC monitor/boot core
4x 64-bit RV64GC Application cores
Fmax of 667 MHz (–40 °C to 100 °C Tj),
3.125 CoreMarks/MHz, 1.714 DMIPS/MHz

https://www.microchip.com/en-us/product/MPFS095T
>>
>>109399904
You have a maximum of 16.6667ms to complete a frame or your product is DoA.
>>
>>109399912
plus this: >>109396921
>https://github.com/raysan5/raylib/blob/master/src/external/rlsw.h

== slow af (based)
>>
>>109399944
>99944▶
good numbers.
Yes, double pendulum is just a lot of calculation and there is probably something I can tweak about the drawing
>>
>>109399953
>probably
More like "definitively".
>>
>>109399944
Motherfucking this, and honestly, it should be more like 6 ms.
>>
Ok, I am now finished COMPLETELY reinventing the wheel. I now have a thread safe heap allocator that does the absolute bare minimum work. It doesn't do any coalescing. It doesn't even synchronize freelist pools between threads so technically threads can yeet away free references from other threads, but I don't consider that a leak because it still exists in a freelist somewhere, just for the incorrect thread. The point is it is fast. Very fast. Threads allocate heap chunks in 8MB segments using an atomic bump allocator. They have almost 0 interaction with eachother ever.

I have NO dependencies from libc besides stddef, stdint, stdalign and stdatomic. I am finally free.
>>
>>109399956
AI just fucking trolled me and didn't tell me that raylibs EndDrawing() does some busy waiting to match the FPS (i thought it comes later)
Fuck AI man. It can't even catch the most obvious human errors. So how should it replace me? I try again and again, but it doesn't stop me from being stupid.

https://github.com/raysan5/raylib/blob/63f82f0ca873f762ffea0c83ed14e461a905b7fc/src/rcore.c#L895
    // Frame time control system
CORE.Time.current = GetTime();
CORE.Time.draw = CORE.Time.current - CORE.Time.previous;
CORE.Time.previous = CORE.Time.current;

CORE.Time.frame = CORE.Time.update + CORE.Time.draw;

// Wait for some milliseconds...
if (CORE.Time.frame < CORE.Time.target)
{
WaitTime(CORE.Time.target - CORE.Time.frame);

CORE.Time.current = GetTime();
double waitTime = CORE.Time.current - CORE.Time.previous;
CORE.Time.previous = CORE.Time.current;

CORE.Time.frame += waitTime; // Total frame time: update + draw + wait
}


If I measure in between BeginDrawing() and EndDrawing() it is obviously much much faster
>>
>>109400364
>So how should it replace me?
software quality will suffer but it doesn't matter because it will be just maintainable enough to replace white people with indians
>>
>You are right to call that out!
>Good observation!
>This is a valid concern!
I feel like a real programmer.
>>
>>109400374
>it will be just maintainable enough
no it won't.
They will just generate new slop if the old has an unwanted bug
>>
File: yepdb6byuub81.png (655 KB, 750x666)
655 KB PNG
Do you ever write programs or think about programs in your dreams?
>>
>>109400476
yes

I feel like I solve problems in my sleep on a subconscious level after being stuck and then when I go to do them they become trivial.
>>
>>109400418
Honestly, at this point we deserve complete civilizational collapse, famines, civil wars, and more. The more violence the better.
>>
>>109400624
Lets hope for a strong enough solar storm. Literally everything should be wiped out so we have to start from scratch
>>
>>109400364
SetTargetFPS(60);

stop.



[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.