Javascript is not superior to C. Period.
>>59377395
Ok first of all:
/* str_concat.c */
#include <stddef.h>
#include <stdlib.h>
char* str_concat(char const* s1, char const* s2, char* dest) {
size_t tot_size = 0;
char* siter;
for (siter = s1; *siter; siter++) tot_size++;
for (siter = s2; *siter; siter++) tot_size++;
dest = realloc(dest, tot_size + 1);
tot_size = 0;
for (siter = s1; dest[tot_size] = *siter; siter++) tot_size++;
for (siter = s2; dest[tot_size] = *siter; siter++) tot_size++;
return dest;
}
/* your_program.c */
#include <stdio.h>
#include <stdlib.h>
#include "str_concat.h"
int main() {
char const* h = "Hello ";
char const* w = "world";
char* r = malloc(0); /* this is allowed */
printf(str_concat(h, w, r));
free(r);
return 0;
}
Was that so hard?
Second of all, if you think javascript is doing anything less under the hood, you're wrong.
Thirdly, string concatenation is unnecessary. If you want concatenated output, just use printf with %s. If you want strings concatenated for any other purpose, just use fprintf with %s and direct it to the relevant stream pointer for your purpose.
Fourthly, please, like string concatenation is any easier in raw electrical engineering, as you seem to suggest it is.
Fifthly, engineering is a bad programming language either way, else programming languages would not have been invented.
Sixthly, if your obsession with transistors is meant as a rhetorical device for comparison with the perceived fallacy of saying we should still program in C when javascript is available -- as I suspect it is -- then that's a false analogy. Javascript is useful for cross platform GUI software. C is a better choice for:
>writing platforms themselves
>cross platform CLI software
>native GUI software from cross platform source code
Hard-wiring computational procedures is a better choice for:
>programming embedded machines that won't be programmable after manufacturing, e.g. toy car brains, non-algebraic calculators
>building processors
>>59380512
Sure, ECMAScript7 is shit.
>>59380512
kys javascript are better
>>59380512
>tot_size
>dest
>sites
>single letter variables
Ishygiddy
What LED strips would you guys recommend for lighting inside a tower?
>>59380485
are you 14?
why would you want to light up your tower
>>59380485
None
>>59380498
if you arent b8ing, get some 5v led strips and hook to 5v connector on the psu
add a circuit breaker somewhere if you want to control it manually
Their motto is: "Don't be evil" and people seemed to believe them for quite some time.
Now, a lot of people scream that they are evil.
What changed?
>>59380329
Power corrupts.
>>59380329
you have nothing to worry if you have nothing to hide. you aren't a pedophile or pirate, are you?
they make assassin robots for the military now
Fuck you Ubuntu.
You fucking trigger me.
REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
At least arch is 3rd, right?
>>59380327
*buntu is best. Live with that
why isnt gentoo on the list?
>AMDfags actually giving death threats to reviewers
Holy sperglords!
>>59380290
False flag
>>59380305
>implying
>>59380339
>implying that's not either a) Inteltards falseflagging or b) a complete hoax
In /csg/, we discuss the cheap shit you see on Gearbest, Taobao, AliExpress, Banggood, eBay and similar sites.
>IRC channel
https://qchat.rizon.net/?channels=/csg/
#/csg/ on rizon
>Discord link
https://discord.gg/zP789wR
>Chink Shit Randomiser
http://chinkshit.xyz/random/
>Chink Shit Wiki
https://wiki.installgentoo.com/index.php/Chink_shit_general
>Chink Shit Infographic v1.4
https://my.mixtape.moe/aijpuk.jpg
>Chink Shit Infographic v2.0 "Still Unfinished Edition"
http://chinkshit.xyz/infographic.pdf
* Anons hydrobeads arrived >>59367533
* Anon links a new clive video >>59370218
* Anon is not amused by Gearbest charging for shipping >>59372658
* Anons MP3 player arrved and is very pleased with the product >>59377157
* Anon gets calls and texts from an Ali seller in the middle of the night >>59377950 >>59378036
* Anons Jinhao x750 pen arrived >>59378320 >>59378328
* Anon shills an 8$ bluetooth controller >>59379324
Previous thread >>59367297
Fat sow
Will ebay get pissy if I request too many refunds from chinks? I've had some stuff not arrive and even chinks playing dumb to get me to close disputes.
>>59380226
FUCK YOU LITHU
FUCK ZUK
Hey,
EDC thread.
desktop threads are not allowed
>>59380187
I just farted into my hands and then smelled my hands.
>3330
>Radiolinja
well that's something
>not using dtach
>not using dvtm
>not using vi
>not using gforth
>what is this world coming to where we allow ourselves to be such slaves?
>>59379947
>using garbage tools
>using the laughing man logo
>>59379947
>not using dtach
tmux is installed by base
>not using dvtm
same as above
>not using vi
use vim but switching to my own vi clone when ready
>not using gforth
>GPL
GForth sucks, just write your own.
Jonesforth and pforth are good places to start
>>59379947
>not using dtach
tmux
>not using dvtm
tmux
>not using vi
vim because my vi clone isn't ready
>not using gforth
write your own gforth sucks
I'm in a c++ intensive course and my jabba like teaching assistant alway yells, that it is importent to write const corret.
Is it really such a big deal when I don't make my functions const correct?
Yes. Const is very very important. You must get it correct.
>>59379816
Yes, in languages like C theyre extremely difficult to debug afterwards.
>>59379816
Nah, it's not important, is less readable and ruins your API when applied to functions.
Discuss
>>59379699
>e-celebs
>ever
>>59379699
fixd that for thou
>>59379699
oh you smart fucker.
you are rootkit studios.
>not using a buckling spring keyboard
>2017
But I am using a Spacesaver M
>>59379457
Unless you're an old tech collector/hobbyist on the side you're a retarded virtue signalling hipster if you have one of those things shitting up your bland little IKEA setup.
>>59379776
Not really, they're good keyboards
Is it possible to run Windows 7 (well) on a Kaby Lake laptop? I'm Getting conflicting information, some sources say it can't be done, others that it can but that it won't work well, others that it will work fine.
>>59379445
No. Microsoft products are malware which will send all your data the the NSA and the CIA.
It's not officially supported by M$, but there's nothing stopping you from doing it.
>>59379503
Ah, thank you. I like windows 7.
/g/ what the fuck
I can't even play emulators or anything because this shit keeps on popping up. Every 5 minutes the whole screen shuts off and if any of my games are running they fucking crash. I've looked all over google, downloaded a bunch of shit and cleaned out my graphics card.
Does anyone know some 560Ti drivers for windows 7 that actually work?
>>59379393
Your card is dead, stop being so fucking retarded.
>>59379492
fpbp
>>59379393
>using windows
>current year
the heck is wrong with you
Give me 3 good reasons why I shouldn't buy the new 4K Dell Xps 15 9560 right now
(Pro tip: ya can't)
>>59379274
its 15"
13" is much better
>>59379430
Ca n'a pas encore la même taille que les autres 15" laptops.
It's not a macbook pro with retina display.
This week on /g/:
>did the hype slow down or did I finally got the filters for CPU threads right?
>CIA leaks: are they big 4 u?
>It's really time to replace the toe cheese eater on the sticky with a rare Terry
>Jews and Pajeets: who do you hate more and why?
>>59379078
>gossip
>blogging
>barely relevant stuff, but presented in a way that's strongly biased towards your opinion
>more shitposting troll crap
Are you just trolling or are you genuinely self centered enough to think that this is a passable meta thread? This is just your personal shitpost if anything, if you're actually retarded look up what meta threads even are. I hope this crap gets deleted.
>>59379078
I hope you die in a fire.
Go back to r/eddit