[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 331
Thread images: 36

What are you working on, /g/?

Old thread: >>59251070
>>
File: 1482459435387.jpg (567KB, 595x842px) Image search: [Google]
1482459435387.jpg
567KB, 595x842px
>>59254292
Thank you for using an anime image
>>
>>59254292
"The most powerful programming language is Lisp. If you don't know Lisp (or its variant, Scheme), you don't know what it means for a programming language to be powerful and elegant. Once you learn Lisp, you will see what is lacking in most other languages." -Richard Stallman
>>
>>59254292
Good thread
>>
>>59254336
>Richard Stallman
stopped reading right there.
>>
>>59254336
Idris > Lisp/Scheme
>>
Reminder to not use shared mutable state.
>>
File: miyako_code.png (2MB, 1280x720px) Image search: [Google]
miyako_code.png
2MB, 1280x720px
>>59254292
Thank god there's an actual thread
>>
>>59254355
Thanks for reading the whole paragraph, reddit
>>
>>59254359
Guess you'd better not use 4chan then, 4chan is shared mutable state.
>>
>>59254336
Can Lisp be OOFP?
>>
Real thread:

>>59254265
>>59254265
>>59254265
>>
>>59254375
>Thanks for reading the whole paragraph
"stopped reading at a certain point" already means I didn't read it.
>reddit
Who is that, your friend?
>>
give app idea please
>>
>>59254380
Yes.
>>
>>59254396
Nice denial, reddit. Now head back to >>>/r/ibbit
>>
>>59254405
Why it must an "app"?
>>
>>59254415
I want to see the reasoning why you're not from reddit, which you obviously are.
>>
>>59254415
Nothing Found
>>
File: m.gif (712KB, 500x341px) Image search: [Google]
m.gif
712KB, 500x341px
What are some projects that I could work on that would help me understand how hardware and software interact?

Also, what do I need to learn/read to write drivers for (GNU/)Linux?
>>
>>59254405
An app that synchronizes android notifications with your PC
>>
>>59254431
because scripting is garbage and I like AppKit/UIKit
>>
>>59254431
>must be
fixed
>>
>>59254438
I want to see the reasoning why you're not from reddit, which you obviously are.
>>
>>59254405
Lisp 1.5 interpreter
>>
>>59254453
4chan browser
>>
>>59254405
write an app where i can digitize my personality and embed it in a chatbot, so my grand-grandkids could talk to me after i die
>>
>>59254448
>GNU
>using literal garbage
>>>/r/abbit
>>
File: 1455760570589.jpg (50KB, 313x163px) Image search: [Google]
1455760570589.jpg
50KB, 313x163px
>>59254482
ecks DEE. Ebic post
>>
>>59254482
Nothing Found
>>
>>59254478
I wonder how would Anonymous look if we put all /g/ messages in bot
>>
I'm not posting in that dirty fucking frog thread

>>59254405
An app that analyses a sentence and recommends an app
>>
quality posts ITT
>>
>>59254478
jeez that made me sad
>>
>>59254496
Is this some new reddit meme? Fuck off.
>>
Why is java almost always the language of choice for Pajeets?
>>
>>59254523
What are you going to do about it, little faggot? Cry in the corner like you always do?
>>
>>59254478
Good app idea actually, emulating a 4chan-er should be insanely trivial to implement with a fairly limited vocabulary to boot ("fag", "plebbit" and a handful more)
>>
File: 1488243967666.jpg (27KB, 300x492px) Image search: [Google]
1488243967666.jpg
27KB, 300x492px
>>59254526
C is for pajeets.
>>
>>59254526
Because there are so many Java jobs, so companies are glad to hire unqualified third-world workers.
>>
>>59254526
return new StringBuilder.reverse("OOP");
>>
>>59254529
I don't want reddit stink nearby. Fuck off.
>>
>>59254518
fucking reddit scum. go back. you're not welcome here. this is our secret corner of the internet, us outcasts of society. here we use functional programming languages and FreeBSD
>>
>>59254526
it's literally the best and the most popular (not just among pajeets) programming language

inb4 (You)s
>>
>>59254553
in Haskell this is just

"POO"
>>
>>59254541
>void main()
>>
>>59254559
I don't want your NEET stink nearby. Neck yourself.
>>
File: r8plsdonth8.png (44KB, 1254x495px) Image search: [Google]
r8plsdonth8.png
44KB, 1254x495px
>>59254292
I'm a complete beginner to programming. I made this in Python last week after I got the idea in math class. It's used for adding the Sum of a Series.

Please rate.
>>
>>59254566
couldn't care less about that "language"
>>
>>59254569
>
More like

>C
>>
holy shit I just spent hours debugging this
asm volatile (
"mov %w0, ds;"
"mov %w0, es;"
"mov %w0, fs;"
"mov %w0, gs;"
: "=m" (ds)
, "=m" (es)
, "=m" (fs)
, "=m" (gs));

I am so retarded.
>>
poo poo poo pooppoopoppoopopopopooooooooooooooooooooooooooooooooooooooooooop
>>
>>59254570
I don't want reddit stink nearby. Fuck off already.
>>
Back to FP vs OOP&friends concerning parallel/concurrent: watch at least the first 10 minutes https://youtu.be/NWSZ4c9yqW8?t=321
>>
>>59254566
In C, this is just
Segmentation fault (core dumped)
>>
>>59254592
I don't want your NEET stink nearby. Neck yourself already
>>
>>59254575
>>
>>59254526
that's interesting, because I see more C++ Pajeets than I see Java Pajeets. It would be more appropriate to say "why are OOPLs almost always the languages of choice for Pajeets?" and the answer to that would be employability.
>>
>>59254603
Seriously: piss off. Your kind is not welcome here.
>>
>>59254575
>eval
You're living on the edge, son.
>>
>>59254603
>I don't want your NEET stink nearby
NEET website
>>
File: 1470973297480.png (77KB, 250x250px) Image search: [Google]
1470973297480.png
77KB, 250x250px
>>59254575
>eval
>>
File: 1455761170589.jpg (100KB, 960x960px) Image search: [Google]
1455761170589.jpg
100KB, 960x960px
>>59254575
Seriously: piss off. Your kind is not welcome here.
>>
>>59254575
>python
you're garbage. fuck off back to >>>/r/ibbit. you're not welcome here.
>>
File: notgr8m8.png (34KB, 663x663px) Image search: [Google]
notgr8m8.png
34KB, 663x663px
>>59254575
Also I wrote this a few minutes ago. It works but it's insanely hideous. I'm sure I could improve it and make it less lengthy, but i'm not sure how.
>>
>>59254618
Seriously: piss off. Your kind is not welcome here.
>>
File: 1466505272089.png (300KB, 469x540px) Image search: [Google]
1466505272089.png
300KB, 469x540px
>>59254634
>rebuild trash
>responding to p*thon posts
>>
File: 1488744374581.png (96KB, 850x683px) Image search: [Google]
1488744374581.png
96KB, 850x683px
>>59254608
your png is now optimized
>>
>>59254644
>>59254635
>>59254634
>>59254618
>>59254608
>>59254628
i guess i'll just kill myself
>>
>>59254655
>dumb weebshit
>responding to response to a python post
>>
>>59254655
>moe shit
>>
>>59254292
a note taking app for winpho aimed at photographers
>>
working on a number guessing game in js. I've got the generator in a form of a form, all I have to do now is get user input an do if else conditions.
>>
>>59254679
>WinPOO
I see
>>
>>59254675
>dumb weebshit
>responding to a response to a response to a python post
>>>/r/ibbit
@59254677
>"moe"
>>>/r/abbit
>>
>>59254611
This.

Java was almost always the language of choice for Americans, because a lot of US colleges used to teach Java.

These days Java is regarded as too difficult for college students, so they teach Python instead.
>>
>>59254674
Hint: all you need is a for loop.
>>
File: 1486592190854.gif (985KB, 500x291px) Image search: [Google]
1486592190854.gif
985KB, 500x291px
>>59254655
ok?
>>
>>59254575
actually pretty good for a complete beginner. it's a great idea for beginners to use a lot of math in their programs.
>>
>>59254702
So Americans are pretty much the same as pajeets these days? That's pretty sad to hear.
>>
>>59254702
I fail to see how Java and Python are harder than BASIC
>>
File: 1402352596474.png (720KB, 820x710px) Image search: [Google]
1402352596474.png
720KB, 820x710px
don't bully the pythonbros
>>
>>59254723
Wait, I meant Pascal, nobody learns BASIC in universities
>>
>>59254700
Oh no, ribbit is raiding us wat do?
>>
>>59254733
>python"""""bros"""""
how can someone from a different and inferior species be my brother?
>>
>>59254718
Hell, even MIT switched to Python.
>>
I miss /dpt/ before the solo 4chan-gatekeeper and the constant barrage of smug anime faces. Really gone downhill these last few months.
>>
When did Ruby die?
>>
File: 1487854246672.jpg (105KB, 821x820px) Image search: [Google]
1487854246672.jpg
105KB, 821x820px
>>59254751
>/dpt/ before smug anime faces
>>
>>59254718
American programmer and an indian programmer follow the exact same programming principles and procedures. No Joke. And both their codebase is utter garbage.

Ironic, isn't it? Americans have a secret fetish about indians.
>>
>>59254761
Ruby was never alive.

Just think, all that engineering effort that could have gone into a worthwhile language instead.
>>
>>59254761
After people stopped using Rails.
>>
I fucking hate all of you normies.
>>
>>59254785
Le norman roooo xDDDDDDDDDDD
>>
>>59254775
Whey did they stop using Rails?
I am trying to escape Python actually before it's too late.
>>
>>59254541
>getch() before main() terminates
because Microsoft® Windows® cmd window closes so fast!
>>
>>59254749
MIT is garbage.
>>
>>59254575
>>59254645
sorry dude. I would say don't post here if you are a beginner. You will be torn the fuck apart. I hate to say it, but /r/learnprogramming and /r/dailyprogrammer on ribbit are way more beginner friendly.
>>
File: images.jpg (3KB, 240x89px) Image search: [Google]
images.jpg
3KB, 240x89px
In theory, should i always use some void function(?) after int main() unless i need to return something?
>>
>>59254793
this

MIT is where achmed is going to learn to make better clocks
>>
>>59254811
>>59254796
>>
>>59254541
Where can I get a qt 3.14 like her
>>
>>59254811
>void function
Not a function.
>>
>>59254819
go outside
>>
>>59254796
Fuck off you fucking faggot
Beginner programmers are and will always be welcome in /dpt/, so long as they fit in on 4chan (i.e. so long as they like anime)
>>
>>59254819
India?
>>
>>59254718
my company builds menus for websites. we outsource much of the work to india and then fix it when it comes back. you have no idea some of the shit I've seen. I would take the shittiest american students any day over a typical pajeet.
>>
>>59254840
Don't bother it's that gate keeper kid
>>
File: 1471774902833.jpg (326KB, 636x900px) Image search: [Google]
1471774902833.jpg
326KB, 636x900px
>>59254840
>so long as they like anime
THIS
If you don't like this picture then you need to get out
>>
>>59254824
semantics. all methods/procedures/functions/subroutines are referred to as functions in C.
>>
>>59254817
This is rubbish, anon. I asked some things and anon adviced me a couple of things and books.
>>59254824
My bad, it's a procedure from what i've read. So, should i make it?
>>
>>59254885
What if you used to watch a lot of anime when you were a kid but not so much any more
>>
>>59254900
>C
Stopped reading right there
>>
What do you do when you're struggling to learn more? I'm half way through the book I'm using to learn Python and I feel like I've hit a brick wall. I'm having trouble doing the exercises at the ends of the chapters. I haven't even started learning OOP yet. I'm about to start learning classes bit I'm having trouble with what I've learned so far. I don't know what to do.
>>
>>59254840
jesus christ, Poe's law is in effect. I can't tell if it's gate-keeping kid for real, or an impersonator.
>>
File: 1484513582402-1.png (403KB, 450x630px) Image search: [Google]
1484513582402-1.png
403KB, 450x630px
>>59254911
Noone has time to watch anime anymore anon. It's just a matter of what this gazo does to your doki doki
>>
>>59254945
>I haven't even started learning OOP yet. I'm about to start learning classes bit I'm having trouble with what I've learned so far.
Good, don't.
>>
>>59254914
C haters are intelligent people. Don't group yourself with us.
>>
>>59254945
you push on. you know that feeling of inadequacy? that "I have no fucking clue" feeling? that's a good thing. you push through and persevere and you become a better programmer. it's like strength training. no pain = no gain.
>>
>>59254914
>he didn't read the period
.
>>
>>59254837
>/dpt/
>saved
>not irrepairable trash
hownu.ru
>>
>>59254958
It does nothing. It's a drawing of an anime character.
>>
>>59254866
>>59254952
As long as you behave as 4chan Anonymous, it's OK to post on 4chan.
>>
>>59255048
>4Chen
>anonymous
I giggled
>>
They say /dpt/ loved Python long ago.
When did it end?
>>
If 4chan and /dpt/ had been around 20 years ago, you motherfuckers would have loved Java. You would have been sucking that OOP dick.
>>
>>59255124
a vocal minority hates Java and OOP. The NEETs make the most noise against it
>>
>>59255095
A python lives above C level
>>
>>59255139
Kill yourself Javafag.
>>
>>59255139
I think they have some legitimate points, If I must admit it. however I don't think OOP is the worst thing to ever happen to software development.
>>
>>59255139
Java is a blessing in the sense that everyone can program and get a job, even you
>>
File: 1476986571563.jpg (84KB, 500x667px) Image search: [Google]
1476986571563.jpg
84KB, 500x667px
If C is so great, why don't you fags program in asm?
>>
>>59255184
if anyone could program, there'd be a fuck ton of a lot more programmers. even at shit universities, half of the students that take CS1 fail it. I don't get it, but that's the reality.
>>
>>59255190
>If apples are so great, why don't you eat tomatoes?
>>
>started learning C++ because anon recommended couple of days ago
>today anon says that a nigger should learn java
Life is hard
>>
>>59255190
>C is great
LMAO

C = C A N C E R
>>
>>59255219
Are you a nigger?
>>
>>59255208
its more disinterest than stupidity, as CS in general is idiot friendly
>>59255228
low quality bait
>>59255219
anon was trolling you, learn a high paying and useful language like Erlang or even Node instead
>>
>>59255240
>>59255228
>>59255219
When did TDPT become /b/ ?

I'm too old for this shit. Fuck you /g/.
>>
>>59255262
C is a cancer that plagues the software industry. C holds back our technology. C was build around 80's model of computing and has shitty async and concurrency.

Back in the 80's security was not a major concern, the concern was how CPU's have low processing power, how storage was low on capacity and how to tackle this restriction effectively.

Fast forward 40 years C(ancer) restricts us thinking we are still using a sngle core 800MHz processor with 128MiB memory and we are using floppy disks to store data.

C
is
Cancer
>>
>>59255334
You're entitled to your opinion man
>>
>>59255334
This is why people moved to C++
>>
>>59255334
Retard.
>>
>>59255355
There is close to 0 reason to use C anymore in the current century
>>
>>59255334
He has a point. Look at cloudbleed. How many buffer overflows do we need?
>>
>>59255378
Hipster
>>
>>59255334
>Fast forward 40 years C(ancer) restricts us thinking we are still using a sngle core 800MHz processor with 128MiB memory and we are using floppy disks to store data.

Friendly reminder that modern low-power microcontrollers operate at <200 MHz and have usually between 2KB and 128KB of memory.
>>
>>59255380
C is Cringe ``
>>
>>59255380
Name a better language.
>>
Okay so I've learned programming now how do I get a job.
>>
>>59255387
>program in C
>be called hipster
I would think "dinosaur" was a more appropriate term, if your argument is that C is outdated and old?
>>
>>59255398
Rust
>>
>>59255398
haskell
>>
>>59255391
Good for micro-controller and embedded kernels and for NOTHING else. Might as well be using VHDL
>>
>>59255398
Rust

>>59255408
Only hipster hold on to obsolete trash. Like 80's songs and C.
>>
File: 1482841160360.jpg (118KB, 768x1024px) Image search: [Google]
1482841160360.jpg
118KB, 768x1024px
>>59255404
Should have learned soft people skills. You know you can get a 150k+ job just using social skills, and then outsource all the programming work to fiver for ~50k, and then just enjoy doing nothing all day and making 6 figures
>>
>>59255404
learn how to do that

not a joke, it's a special skill you need to research and prepare for
>>
>>59255419
>Good for micro-controller and embedded kernels and for NOTHING else
Except it's also often used in critical sections of programs that gotta go fast or has to deal with low-level and platform specific features. Which is why everything from video players to browsers are often written in C and C++.
>>
>>59255426
>>59255409
>But RUST is SJW!
Quality of Community != Quality of language
>>
>>59255409
>>59255426
>Rust
Stale joke
>>
How often are algorithms and data structures questions asked in front-end web development interviews? I don't know anything about those, or design patterns (design patterns mostly seem to be related to OO-programming).
>>
>>59255451
C++, not C
>>
>>59255426
My father holds on to 70's and 80's songs, and he sure as hell isn't a hipster or even trying to be trendy.
>>
>>59254645
One suggestion would be to do as follows (pseudocode)

Have a method that, given a number of seconds, calculates the # weeks, #days, #hours, #minutes each

If the number returned by each function is zero, then don't append it to the list.


This is partially to remove the "magic numbers" in your code (Think of this, would someone looking at your code understand what "86400" is doing there? Maybe, but you might want to have a variable instead)
>>
>>59255451
Rust can do that too.
>>
>>59255455
>implying advanced devs will be developing libraries for those cunts

you as a simple user can ignore the "community" but they won't
>>
>>59255468
>Linus “BENEDICT” Torvalds aka FREAX
wut
>>
>>59255468
epic memes

>>59255480
That doesn't make him a hipster, because he's from the 70's.

YOU would be ha hipster if you were born in the late 80's or 90's and preached 70's music saying
"I wish more people from my generation appreciated this music. I'm born in the wrong generation" etc
>>
someone tell me if im correct. i have to convert .975 (floating point) into binary, then answer should be
111(1100) (1100 in parentheses means repeating)
>>
Besides "no HKTs" can /dpt/ come up with a genuine argument against Rust?
>SJW
>meme
Don't count.
>>
I've been using 4chan before Reddit even existed and wasn't on our radar. I was on 4chan when our adversary was Gaia.

I have to say that Reddit is better than /g/
>>
>>59255533
Insanely complex
>>
does gcc ever use the fs/gs registers? can I use them for my own things?
>>
>>59255478
ffmpeg is written in C. 80% of vlc is C. Firefox is something like 40% implemented C. Python is implemented in C (CPython). GHC is implemented in C.
>>
As someone who is completely clueless about the advantages of learning one language over another, I just notice this dance of irony going on around me, as wildly contradictory statements are thrown around, the lies inseparable from truth, the dogma parading as well-meaning advice, and all the layers of meta jokes wrapped around it like a veil.

This place is beyond my level.
>>
>>59255555
Firefox is moving to C/C++ to Rust/C++
>>
>>59255533
no HKTs
>>
>>59255520
What do you mean exactly by “convert to binary”? Is it IEEE 754? Or just base 2?
Also, do a simple web search, and you’ll find tools online to do that.
>>
>>59255095
we never did, it was mostly just the python troll

https://wiki.installgentoo.com/index.php/Daily_programming_thread#The_Python_troll
>>
>>59255533
No idea what a HTK is, but rustc generates incredibly bloated machine code - something like 80 instructions and 144 bytes of function-local stack space for a simple Hello World app. Most of the "safety" features could be implemented by providing an alternate standard library for C++, rather than writing a whole new language.
>>
>>59255518
I was born in 1977 and my first band literally covered 80's songs in the 80s (although poorly because we were fucking 12). But my point is, that doesn't make me a fucking hipster for liking 80s music.
>>
>>59255545
How?

>>59255579
>Most of the "safety" features could be implemented by providing an alternate standard library for C++
>C++ can get affine types and borrow checking through a standard library
>>
>>59255555
>ffmpeg is written in C
HA
https://it.slashdot.org/story/16/01/14/2214244/zero-day-vulnerability-discovered-in-ffmpeg-lets-attackers-steal-files-remotely

C has given us another security exploit YET AGAIN. Because that's the only thing left for C to give these days.
>>
>>59255592
>I was born in 1977
holy fuck you're old, grandpa
>>
>>59255275
just leave and focus on actual programming instead of participating in this stupid shitflinging.

see
>>59254265
>>59254299
>>
>>59255564
It's not. Stop lying on the internet. It's a fucking open software project, everyone can see the fucking code. Why would you lie about something so trivial to find out?
>>
>>59255579
>but rustc generates incredibly bloated machine code
Out of curiosity, how does Go compare *on just that specific one metric*, anyone know?
>>
>>59255514
Benedict is Linus Torvald's actual middle name, and Freax was the original proposed name for Linux (free + Unix).
>>
>>59255614
You do realize he's role-playing, right?
>>
>>59255597
I think hackers basically just look for complex programs written in C and just farm them for vulnerabilities because it's so easy. Like picking on the fat kid
>>
>>59255623
Wow, I actually didn’t know that.
>>
File: For-Loops-for-the-Soul.jpg (1MB, 1272x1080px) Image search: [Google]
For-Loops-for-the-Soul.jpg
1MB, 1272x1080px
>>59254292
Which makes more sense?
string[] arguments
string arguments[]

Other suggestions are wanted.
>>
>>59255579
fn main() {
println!("Hello, world!");
}

Generates 18 instructions.
>>
>>59255597
>https://it.slashdot.org/story/16/01/14/2214244/zero-day-vulnerability-discovered-in-ffmpeg-lets-attackers-steal-files-remotely

Well,
>Already patched in Arch Linux

So I guess the joke is on those that is calling Arch a timesink.
>>
Reminder that C is designed for white males. We need to start using other programming languages so women and people of color have a chance. If you still insist on using C in 2017 you are a misogynistic sexist.
>>
>>59255616
http://www.infoworld.com/article/3165424/web-browsers/mozilla-binds-firefoxs-fate-to-the-rust-language.html

>>59255627
Also because C lacks proper security concepts.
Another example of why C is retarded outside programming micro controllers.
>>
>>59255643
std::vector<std::string> arguments;
>>
>>59255643
Both, but depends on the language.
inb4
[]string arguments
>>
>>59255647
>Already patched
Are you pretending to be an idiot or what? Or are you trying to avoid the topic?
>>
>>59255643
[string] arguments
>>
>>59255654
C stands for Cucks and C is Communism Cancer.
>>
>>59255664
>http://www.infoworld.com/article/3165424/web-browsers/mozilla-binds-firefoxs-fate-to-the-rust-language.html
Funny, since
./configure --disable-rust
removes all parts written in rust and would you look at that, Firefox still fucking builds.
>>
>>59255643
string [arguments]
>>
>>59255643
arguments : Array String N
>>
>>59255704
>if I use disable rust flag compiler won't use rust
No shit, C babby
>>
>>59255686
Yes, the "holy shit C is soooo unsafe better use RUST you guise" is a real topic totally worth everyone's time and totally not just random shitposting.

Fuck you, I hope you die from bonemarrow cancer.
>>
File: 1483313177936.jpg (99KB, 676x1000px) Image search: [Google]
1483313177936.jpg
99KB, 676x1000px
>>59255664
/g/ likes to make fun of pajeets for making shitty code using java, but fact of the matter is, line of code for line of code, C produces more shitty vulnerable exploitable code. The world would be better if everyone was a pajeet coding in C rather then "software engineers" rewriting the wheel using C and adding more holes every time.
I guarantee you, pen testers looking to break into a system, always look for programs with the most lines of C code.
>>
>>59255643
first one is an array of strings
the second one is an array of the type arguments

idiot
>>
>>59255725
>reading comprehension
>>
>>59255645
Proof?
>>
Working on getting a linux build of my game up and running, and updating the mac build as well
>>
>>59255725
>rust is used for non-essential components
>"SEE MOZILLA IS MOVING AWAY FROM C AND TOWARDS RUST LOOK THEY'VE REWRITTEN MOST OF THE CORE ALREADY"

Pick one.
>>
File: 1481136514136.png (205KB, 1021x680px) Image search: [Google]
1481136514136.png
205KB, 1021x680px
>>59255615
It physically pains me that some people do this
>>
>>59255730
yes. C has no security concepts and garbage tier exception handling
>>
>>59255737
I'm making my own language, and I'm wondering which syntax people like more?
>>
>>59255744
https://play.rust-lang.org/?code=fn%20main()%20%7B%0A%20%20%20%20println!(%22Hello%2C%20world!%22)%3B%0A%7D&version=stable&backtrace=0
Release, ASM
18 instructions, the rest is statics
>>
>>59255643
char *arguments[]; /* the C way is the only way */
>>
>>59255758
They are moving away though. Real challenge for Mozilla is to replace C++ with Rust, not C.
C is useless for them.
>>
Why are high-schoolers shilling rust even though they don't know the hard work involved to have a safe program?
>>
>>59255664
>http://www.infoworld.com/article/3165424/web-browsers/mozilla-binds-firefoxs-fate-to-the-rust-language.html

Does this mean that Rust's fate is now also bound to firefox? When firefox finishes failing, does that mean Rust also fails as well?

I think it might. The optics of seeing a big company try to replace a big C product with Rust and having that product fail wouldn't look good in any manager's eyes, especially if that manager hasn't programmed in, or managed a product/project programmed in Rust before.
>>
>>59255794
You sounded exactly like an Archfag
>>
>>59255550
https://software.intel.com/sites/default/files/article/402129/mpx-linux64-abi.pdf

>%fs
>Reserved for system(as thread specific data register)
>Preserved across function calls: no
>>
>>59255794
What?
>>
>>59255803
At least you finished reading the headline.
>>
>>59255736
>The world would be better if everyone was a pajeet coding in C
Based on your first sentence, I think you meant to say “if everyone was a Pajeet coding in Java”; and I disagree with you.
>>
>>59255794
>Muh hard work :D
So pretentious

I bet you use $cat to program your daily fizzbuzz challenges
>>
File: file.png (5KB, 272x70px) Image search: [Google]
file.png
5KB, 272x70px
What the fuck?
>>
>>59255560
install gentoo
>>
>>59255832
>uses a toddler IDE
>literally saying what's wrong
>even links "more"
>posts in /g/
Wincucks GTFO
>>
>>59255788
>They are moving away though.
Sure, I'll trust some random anon on 4chan and some Rust shilling in the bugtracker rather than the commit logs and actual source code.

How delusional are you? As I said, everyone can fucking see the code themselves:

https://archive.mozilla.org/pub/firefox/releases/51.0/source/

Please tell me more about the vast amounts of Rust code there. I'm waiting.
>>
>rust still being astroturfed this hard
I can't wait until it's dead. If you faggots spent half the time as you spend shilling this soon to be dead language on writing libraries it might be able to do more than bash
>>
>>59255832
If this is not C I can't help you, but you may have forgotten to include header files for the math library.
>>
>>59255854
There are rust codes in there, more than v49, for sure
>>
>>59255805
>>59255815
>>59255830
Stay inept memesters, /g/
>>
>>59255560
When you ascend you'll realize all languages have their place. Except for PHP fuck that shit and anyone who uses it should be impaled with dildos
>>
>>59255877
Sorry I'm not a hardcore turbo (((expert))) C hacker master security specialist, anon.

Post your sophisticated fizzbuzz in ANSII C right now
>>
>>59255897
Why are you projecting about C?
>>
>>59255855
>boohoo i can't "import program;" and not do any work waahahahaaaaaaa!!!!
>>
>>59255911
That's not a valid C code, even "rust idiots" can tell.
>>
File: 013.png (158KB, 715x1013px) Image search: [Google]
013.png
158KB, 715x1013px
>>59255911
>>59255911
>>
my bud told me that he threw sh in the trash and writes D programs with dmd as "scripts". gonna try that
>>
>>59255810
hey thanks. but what if I'm not on linux and the system is single-threaded?
>>
>>59255880
Yeah, fuck PHP!
Anyone here retarded enough to defend PHP?
>>
>ITT: hurr durr
>>
>>59255936
dmd is closed sourced
>>
>>59255928
Why'd you bring up C? I sure didn't.
>>
>>59255816
Huh, went back and read the article again. Didn't see an answer to my question.

Doesn't seem like there's any discussion on the fact that this is the first big project that people will see moving to Rust and if the project fails (because not enough platforms can build it, or Firefox just becomes fucking shit), might disillusion enough managers on Rust to make Rust fail.

But I guess you have your (you) for being a snippy, non-contributing drain on society.
>>
>>59255947
wait, what?

https://github.com/dlang/dmd
>>
>>59255940
Yes, here!
It's pretty easy to quickly cook something up in PHP
>>
>>59255846
>>59255832
Is that Code::Blocks?
>>
>>59255940
PHP is utter shite and the overhaul it got in version 5 (or was it 6?) was too little too late.

Facebook's work on HHC and HHVM in the later years is legitimately interesting though.
>>
>>59255936
why do that when you could use GHCI?
>>
>>59255973
>easy
it's contradictory as fuck, anon
>>
>>59254292
test
>>
>>59255971
The backend is closed source
>>
>>59255961
Brain-scanning studies show that schadenfreude is correlated with envy in subjects. Strong feelings of envy activated physical pain nodes in the brain's dorsal anterior cingulate cortex; the brain's reward centers, such as the ventral striatum, were activated by news that other people envied had suffered misfortune. The magnitude of the brain's schadenfreude response could even be predicted from the strength of the previous envy response.
>>
File: FP.png (190KB, 2440x1228px) Image search: [Google]
FP.png
190KB, 2440x1228px
>>59255982
>interpreted haskell
Oh God, what horror is this?

Enjoy 1 gb of garbage collected data and 99 layers of zygohistomorphic prepromorphisms.
>>
>>59256001
Nice ban evasion
>>
>>59256001
FINALLY I CAN SHITPOST AGAIN
>>
>>59256009
>autism
>>
>>59255971
http://www.digitalmars.com/d/archives/digitalmars/D/35708.html
use ldc or gdc instead
>>
File: 1487346739061.png (500KB, 897x897px) Image search: [Google]
1487346739061.png
500KB, 897x897px
>>59256010
Nice try, but I made that image ironically, as a joke
>>
>>59255982
Why do that when you could use Lisp?
>>
What are some obscure but fun languages to fuck around with? Prolog seems nice.
>>
>tfw Java is my main language and I actually enjoy programming in it
>>
>>59256052
Forth
>>
I just discovered the real magic of Java.

Had a 100 line LISP program.
Ported it to Java.
It's now 1500 lines proper with design patterns, FutureTasks, Runnables, Exceptions, Builder pattern etc...

Enterprise
Professional
Expensive

Yet it doesn't take more brain power at all.

This is why you should actually write Java.
>>
>>59255938
Then refer to the abi for that system. Doubt the value will guaranteed to be preserved across function calls. Which means you have to save/restore it every time you call a function.

That's according to the abi, in practice it might never be touched on your system so you may be able to get away with it.
>>
>>59256060
Try Kotlin
>>
File: lens.png (836KB, 790x1200px) Image search: [Google]
lens.png
836KB, 790x1200px
>>59256010
You should add this to the image
>>
>>59256052
Prolog, Haskell, D
>>
>>59256052
Use my language. It has OOP, but it actively punishes you by adding in bugs if you use it.
>>
>>59256048
>implying I'm 100% sincere and not only repeating hyperboles to have a laugh
I honestly think Haskell is a cool language. I just think language wars are retarded.
>>
>>59256079
>Setter s t a b
>Traversal s t a b
>Lens s t a b
>Prism s t a b
>Iso s t a b
so this is what happens to ""seasoned"" ""haskell"" ""developers""""
>>
>>59256091
Learning curve
>>
What if you could post in /dpt/ only after completing ever exercise from sicp
>>
>>59256099
Edward Kmett is a special case.
>>
>>59255976
It's an eclipse-like handholding IDE for Go. I'm using it to get used to Go before I set up go-mode in Emacs.
>>
>>59256082
>D
>POO garbage
No.
>>
>>59256052
https://esolangs.org/wiki/Prelude
https://esolangs.org/wiki/Fugue
>>
>>59256079
That is some RemoteAbstractBeanBuilderFactoryInterceptorServantManager layers of abstraction right there.
>>
>>59255764
>tfw this is me
>>
>>59256125
Go is nice and simple
>>
>>59256052
>Prolog
Wasn't that made by a fucking racist?
>>
>>59256102
Computer science is a scam.
>>
What's the best IDE for C/C++? (Not Vim or Emacs, please).
>>
>>59256152
Go is very kawaii
>>
>>59256169
t. "self-taught" webshit
>>
>>59256177
visual studio
>>
>>59256177
Either Vim or Emacs
>>
>>59256102
how can I use sicp to solve my waifu problems
>>
>>59256162
JavaScript was made by a trans-hating homophobe, and every SJW and femnazi-loving "kode with karlie" fucking code artisan are using it.
>>
>>59256177
Vim
>>
>>59256177
gentoo
>>
>>59256180
It also makes you work hard
>>
>>59256177
vs and netbeans
>>
>>59256180
Only if kawaii means shit.
>>
>>59256134
>https://esolangs.org/wiki/Fugue
t. Ferneyhugh
>>
>>59256186
Fuck off, NSA
>>
>tfw all the programming jobs are all java or web dev stuff
>tfw there is no escape from this insanity
>>
Does anyone have the SICP UC berkley video link?
>>
>>59256187
>>59256191
I specefically asked for something other than Vim/Emacs; also, they're not IDE's, they're technically text editors.

>>59256202
Gentoo is an OS, if you didn't know. You should give it a try someday.
>>
>>59256221
Good thing programming is not my profession.

I can choose any meme lang I fee like and I don't give a shit.
>>
>>59256239
Vim is scalable to an IDE
>>
>>59256125
>It's an eclipse-like handholding IDE for Go.
name of that thing?
>>
>>59256261
Goclipse
>>
>>59256221
Fuck the jobs, just make something good, and make it free software, and live on the donations. That'll inspire you to write good software.
Or have another job, one that doesn't take too much of your time, and write software on your own time.
>>
>>59256190
So is there a pro-LGBT general purpose programming language that's actually usable (i.e. not Rust)?
>>
>>59256248
what is your profession?
>>
>>59256261
JetBrain
>>
>>59256183
>implying you need to learn programming from middle men when documentation is free
>>
>>59256239
>they're not IDE's
What constitutes a an IDE?

Integrated code completion and navigation
One-step build process (with LINTing, static code analysis and automatic jump to compilation error)
Front-end for GDB allowing you to inspect code lines while debugging

Because all of these are possible with both Emacs and vim.
>>
>>59256282
I'm a teacher
>>
New thread:

>>59256297
>>59256297
>>59256297
>>
new thread
>>59256305
>>
>>59256275
all the money is in web business applications it is way too difficult to write really good software and get donations for it etc
>>
>>59256186
>>59256211
Visual Studio doesn't even support C. I was shocked when I first installed it; it doesn't even acknowledge C as a programming language. Sad!
>>
>>59256309
>>59256313
Nicely done
>>
>>59256309
use this one

>>59256313
don't post in this one, so i can delete it
>>
>>59256324
We made the threads at the exact same time, what are you bitching about?

Fuck you, you cunt
>>
>>59256277
Yes, they're called C and C++.

No, I'm not joking. At least in the world of open source and free software, there are more LGBT people contributing to C and C++ projects than projects in any other languages.

Just look at Debian contributors and Gnome contributors. There's a bunch of trans people contributing to both C and C++ projects. openbox, one of the most popular stand-alone window managers for X is written by a trans person. Mozilla has a higher percentage of LBGT developers than any other company, and they all work on C++ code.
>>
>>59254541
>void main()
>getch()

microshit pajeet found
>>
>>59256360
kek
>>
>>59254541
>corruption free india

>mfw double free or corruption detected
huehue
>>
>>59256360
>trans
>people
Anon...
>>
>>59254375
11/10 bait
>>
>>59256441
>pretending to be edgy on a forum for discussing mongolean cave paintings made 25 years ago by a 14 year old weeaboo
>>
>>59256531
Why the hell do you think this is "edgy" and why do you think I'm pretending?
>>
Thinking about creating an app that lets you edit photos of cute animals with Nazi stuff. Cute?
>>
>>59256557
Because I know you are
>>
>>59258000
How? Prove it.
Thread posts: 331
Thread images: 36


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.