[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: 330
Thread images: 48

File: 1502220484046.png (48KB, 1400x900px) Image search: [Google]
1502220484046.png
48KB, 1400x900px
Previous thread: >>62318054

What are you working on, /g/?
>>
good pic, cobber
>>
File: bjarnestroustrup.jpg (27KB, 500x349px) Image search: [Google]
bjarnestroustrup.jpg
27KB, 500x349px
First for the Danish gnome
>>
holy shit

did you know this

did they even show it to you in school

https://www.youtube.com/watch?v=B-Xo2SHJiYE
>>
Make a good thread. Ditch the stupid frog poster
>>
>>62324509
THANK YOU, BASED EGYPTIANS
>>
File: stroustrup.jpg (366KB, 2048x1536px) Image search: [Google]
stroustrup.jpg
366KB, 2048x1536px
Sixth for Stroustrup is probably NTRing that hapa lanklet with his BPGF (buxom programmer girlfriend)
>>
Is it bad practice to implement message passing over DB?
>>
Is it actually possible to split a string based off multiple repeating delimiters using only a fucking string method?
>>
>>62324605
>multiple repeating delimiters
what
>>
>>62324509
No they didn't show this.
The reason we do long division and carrying etc is because its consistent into the fractions.
You could of course do this, get your remainder and then do the normal way.

Most of the world tends to gather around single generic solutions though. And as you'll notice this method has you remember more numbers than the normal system. Even if they're trivially deducible.

Also what's this with killing millions in the name of the Gregorian calendar?
Never heard of it. Sounds like typical American sensationalism.
>>
>>62324620
Imagine a user entered paragraph that has a repeating delimiter beginning at every sentence. So something like a blank space after a period to indicate the beginning of sentences and a period to end the sentence.
>>
>>62324489
dumb frogposter
>>
>>62324620
>>62324666
and I would need to save each sentence into a variable
i.e
This is the first sentence. This is the second sentence.
String sent1 = This is the first sentence. ;
String sent 2 = This is the second sentence. ;
etc...
>>
>>62324641
long division can go fuck itself
>>
working on a shmup using c++ and SDL2
>>
File: 1504536699686.jpg (83KB, 640x625px) Image search: [Google]
1504536699686.jpg
83KB, 640x625px
Why do we have frogposters in this thread?
>>
>>62324761
dumb anime poster
>>
I wanna try PyTorch but I'm a wincuck. What do?
I can switch but I need to migrate all my torrents
>>
File: 1501893588100.png (761KB, 1067x757px) Image search: [Google]
1501893588100.png
761KB, 1067x757px
>>62324777
>>
File: dasdas.jpg (115KB, 640x400px) Image search: [Google]
dasdas.jpg
115KB, 640x400px
Why is Python so comfy, /g/?

>don't have to worry about data types

>no ceremony cluttering up development

>interpreter lets you test out experiments worry-free

>makes you employable anywhere

>inspires the languages of game engines like Godot

>source code actually readable

>can import literally anything

>you can learn it in a week

Why do you hate Python, /g/?
>>
>>62324805
god bless you loliposter.
>>
>>62324785
>What do?
IDK, but what are you seeding that's so important?
>>
>>62324812
>r*ddit spacing
b2r*ddit
>>
>>62324805
please no loliposting

keep it to safe and sane like >>62324761
>>
>>62324785
enable Hyper-V and make an Ubango VM
>>
>>62324605
regexes bruh
>>
Static typing is outdated and there's literally no reason to choose it over dynamic typing.

The only reason it's still in use is because petty neckbeards and academics want to make programming more confusing and inaccessible and make themselves look smarter.

I'm currently writing an introductory programming book on Python where I dispel all the disinfo I've encountered in my time as a professional programmer. I'll post Amazon links in /dpt/ when I'm done. I've published other books on Amazon before; my name is D. Weber, in case you've read any of them.
>>
>>62324805
Please stop posting this questionable content in /dpt/. I'm requesting this earnestly.
>>
oh man i wanna gorge myself on food like a lardass
>>
>>62324689
strtok
>>
File: 1504823357323.jpg (597KB, 595x842px) Image search: [Google]
1504823357323.jpg
597KB, 595x842px
>>62324841
I'm on a couple of private trackers

>>62324861
Damn, I didn't know you could use CUDA through a VM like that. Thanks anon. I hope the overhead isn't too bad

>>62324878
I must always loli-post
>>
>>62324866
what the fuck is dynamic typing? like you have type information but don't use it?
>>
File: hiss.jpg (216KB, 960x1440px) Image search: [Google]
hiss.jpg
216KB, 960x1440px
>>62324850
B-but anon, I'm posting using Syntactic Sugar® that makes my code super-easy to read!
>>
>>62324689
Make a linked list and use strtok like the white man you are
http://www.cplusplus.com/reference/cstring/strtok/
>>
Why is there no language inbetween C and assembly? With the syntax of assembly, where calling a function works something like this:
>set up all your arguments somewhere
>get a pointer to the head of where you put them
>call the function
>the function is in charge ot getting the arguments, no types or shit to worry about
Top comfy
>>
File: 1ad.png (63KB, 361x333px) Image search: [Google]
1ad.png
63KB, 361x333px
>>62324903
Are you Aussie by any chance, mate?
>>
>>62324920
Thank god no!
>>
>>62324905
all types are handled for you and types are easily cast behind the scenes or with little work.
>>
>>62324915
The most Aryan method
>>
>>62324919
Write it if you think it's a good idea. You could be the next Bjarne Stroustrup! Call it C--.
>>
>>62324903
>defragment
>shrink windows partition
>create new partition
>move all the torrents there
>remove windows
>install linux
>mount torrents partition at /torrents or something
>>
>>62324920
>Are you Aussie
they literally can't even watch legal DFC.
>>
>>62324934
>all types are handled for you
I don't know what that means. types are for programmer convenience, they allow you to easily prove things about a program to yourself.
>>
File: 17796448.jpg (24KB, 460x458px) Image search: [Google]
17796448.jpg
24KB, 460x458px
>>62324952
>tfw auscuck
>>
>>62324947
C-- already exists. Hmm, it seems really interesting. I'll give it a try, thanks.
>>
>>62324964
Are you being passive-aggressive or genuinely don't know what that means? Types are very important.
>>
>>62324902
>>62324915
>>62324942
That would seem to work out normally however I have to take in input from users and I don't really know what the string they input is going to be, only the delimiter
>>
>>62324964
Thanks for reminding me of another myth I need to dispel in my book, asshole!
>>
File: 1490745544746.jpg (125KB, 800x720px) Image search: [Google]
1490745544746.jpg
125KB, 800x720px
>>62324948
I have around 1000 torrents though, and the file path won't be the same between linux and windows right? I don't want to add them one by one and point them to the directory and recheck each one
>>
>>62324984
How about --C? Good luck, seriously. If you keep it up, please post about it in /dpt/.
>>
>>62324994
A real white straight male sees no problem
http://www.cplusplus.com/articles/LACRko23/
>>
>>62324997
your book is gonna suck, faggot
>>
Is JavaScript the perfect language?
>can write variables however you want, if it's a number it's a number and you can do number things with it
>don't have to worry about syntax, most stuff is valid anyway
>blazingly fast thanks to V8
>easily get a job, JS programmers are high in demand thanks to web development
>can run it everywhere: on the server (node), desktop (electron), mobile (react), and browser (jquery)
>don't even have to learn it, trial and error, an up-to-date API reference and a few hours is enough
Does it have a single flaw?
>>
>>62325025
>Touhou
shit
Shipfags master race
>>
>>62325006
Can't you select all -> move torrent and then choose a new directory?
>>
File: 981.jpg (148KB, 850x638px) Image search: [Google]
981.jpg
148KB, 850x638px
>Forgot my image

You must now post your favourite Touhou and your favourite language.
>C++

>>62325034
Sorry for breaking your link, here's a (You).
>>
>>62325047
good 2hu taste
bad language taste
>>
>>62324866
You can't compile dynamically typed garbage without bolting on shit that should never have existed
>>
>>62325047
I want to get smashed by that toohoo
>>
File: 1490543991329.png (1MB, 800x1128px) Image search: [Google]
1490543991329.png
1MB, 800x1128px
>>62325047
Protip: All 2hus are lolis
Please fix your image
>>
>>62324812
>don't have to worry about data types
No actually YOU have to worry about data types. Unlike statically typed languages where you wouldn't have to worry about it. You leave that to the compiler.
>no ceremony cluttering up development
You have that in python projects too. Its just more overt. Which doesn't mean automatic mind you.
>interpreter lets you test out experiments worry-free
As do compilers?
>makes you employable anywhere
Not really
>inspires the languages of game engines like Godot
They made their own language. Horrible idea. Even worse to base their language in python.
>source code actually readable
You can't read?
>can import literally anything
And it'll mostly be poor solutions for your problem at hand
>you can learn it in a week
Same goes for any simple language. Python certainly isn't one.
>Why do you hate Python, /g/?
For all the reasons I haven't mentioned here.
>>
>>62325064
Not an argument. Here's a little joke I like to make when arguing with programmer buddies:
>If what you were saying were an expression, it would have a value of NaA (Not an Argument)!
I actually wanted to fit this joke into my book somewhere, and your stupidity may have provided the necessary context. Thanks!
>>
File: 1504873475472s.jpg (226KB, 1000x677px) Image search: [Google]
1504873475472s.jpg
226KB, 1000x677px
>>62325025
Rust :^)
>>
>David Mark Weber (born October 24, 1952) is an American science fiction and fantasy author
>>
>>62325096
>>you can learn it in a week
>Same goes for any simple language. Python certainly isn't one.
Congratulations, you just contradicted yourself.
>>
>>62325096
Why are you responding to obvious bait lad?
>>
Someone please explain "dynamic decoupling" (DD) to me in as few words as possible. I don't care if your explanation isn't 100% correct, as long as I can get the gist.

I'm reading 'Java in 24 Hours' by Rogers Cadenhead and the author just brought up this concept out of nowhere, and I'm really struggling with it.
>>
>>62324984
>C-- already exists.
Link to docs other than wiki
>>
>>62325141
No its not a contradiction.
Its an observation of anons belief and a disagreement. Anon never stated that the language is simple. That's why this works.
>>62325151
I've interacted with a lot of python people. They would certainly throw themselves into whatever situation to praise python.
>>
>>62325151
Are you a fellow Brit awake at 3:30am or just stealing our lingo?
>>
>>62325179
Nah just a burger who's browsed /brit/ for too long.
>>
Reddit trolls harder than 4chen
>>
File: 1417824204063.gif (2MB, 200x174px) Image search: [Google]
1417824204063.gif
2MB, 200x174px
>>62324489
>tfw K&R, Expert C Programming, and The C Reference came in this week
>>
>>62325231
Should have gotten some good ASM books instead.
>>
File: .png (1MB, 1148x1080px) Image search: [Google]
.png
1MB, 1148x1080px
does anyone here have any experience using gtk_icon_view
>>
>>62325272
Not many UI devs lurk /dpt/
>>
>>62325281
dont people make guis for their own projects though
>>
>>62325259
I don't think a RISC-V ASM book has been made yet.
>>
File: 1428166758785.jpg (259KB, 1280x1810px) Image search: [Google]
1428166758785.jpg
259KB, 1280x1810px
So what's the best way to create a cross platform UI without having to resort to Electron. Is there only Qt?
>>
>>62325293
C++ fags prefer Qt, C kids usually use ncurses.
>>
>>62325302
IMGUI, WxWidgets, LibUI etc
>>
>>62325302

You can also use GTK+ or WxWidgets...
>>
>>62325311
Qt Quick 2 is the only reason why I am learning C++
>>
OKay boys I started reading learn you a haskell i'm not sleeping until I get to monads

let's learning
>>
>>62325311
i just like how GTK2 looks desu
>>
>>62325323
Let's go, boys
>>
>>62325157
>Java in 24 Hours
Seriously? I've never even heard of dynamic decoupling, btw. Has anyone else heard of this?
>>
>>62325315
>>62325312
What the best choice if I'm trying to balance easy to coding and performance? The UI isn't that critical to spend all my time on, but I do what it to be native.
>>
>>62325324
I'm just saying that's usually how it goes in /dpt/
>>
>>62325347
Libui
>>
>>62325352
>Last commit a year ago
I don't know
>>
>>62325107
You can't compile as efficiently without types.
>>
>>62325383
https://github.com/andlabs/libui/issues/274

Sounds the creator is getting bored of the project.
>>
>>62325413
>Always remember, with OSS you don't owe anyone anything.
No wonder year of linux is never. Fucking losers
>>
>>62325347
wxWidgets is just a wrapper so it's always native, might be worth keeping in mind.
>writing a gui
>not just writing a cli interface and then bolting together something in visual studio that interacts with it
>>
File: Screenshot_20170909-045919~01.png (74KB, 1054x294px) Image search: [Google]
Screenshot_20170909-045919~01.png
74KB, 1054x294px
>>62325413
Daww, what a sweet guy.
>>
>>62325403
Then why is C so much faster to compile than Idris?
>>
>>62325434
Without revealing too much about my project, a blueprint drag and drop system for reusable components. So a complicated snappy UI is actually pretty essential
>>
File: 1418322355836.gif (87KB, 990x540px) Image search: [Google]
1418322355836.gif
87KB, 990x540px
>>62325459
>>62325347
I drank some nyquil to help me sleep and I realize I'm starting to sound like a pajeet. Good night anons
>>
>>62325337
I know these "24 hours" books are mostly bad, but I'm in a pinch.
>Go to university to study CS
>Don't attend lectures or exams because of depression and social anxiety
>Get kicked out
>Don't tell my mom about this
>She's been giving me an allowance; after I get kicked out, I manage to convince her to give me half of her wage as an allowance
>After 4 years, I'm supposed to graduate and find a job
>Tell her I really don't want to go to the graduation ceremony, she's disappointed but I get away with it
>I move to SoCal and tell her I need her to keep giving me an allowance while I find a job
>Ever since I was kicked out of uni, I was planning to learn how to program and to get a programming job
>I read the first couple of chapters of K&R, Learn You a Haskell, SICP, etc. but never finished the books due to depression; I spent most of my time on 4chan and watching anime
>I graduated and moved to SoCal about 3 months ago
>5 days ago, I get a phonecall from the hospital saying that my mom has fallen down the stairs and broken her leg
>She lost her job and has no savings
>I have no savings and need to get a job ASAP or we're both fucked
>I apply for an entry level job as a Java programmer
>The interview's in a week's time and I've never programmed in Java before
Hence why I need to read a "24 hours" book. I bought a nice suit with my allowance a year ago because I was really into 'American Psycho', so I'm hoping I can learn the basics of Java in a week and BS the interview. Everything was going smoothly until I reached this 'dynamic decoupling' part.
>>
>>62325457
Because C forgoes safety for speed.
>>
>>62324489

how the fuck do you set up a smtp on a custom wordpress theme? spoonfeed me please, I just want to learn. Even pointing me to the right resource is good enough. Fucking friday site launches reeee
>>
File: 1415635071367-0.gif (347KB, 255x255px) Image search: [Google]
1415635071367-0.gif
347KB, 255x255px
>>62325476
>scrolling while that's playing makes the gif flash red
>>
>>62325457
C has types.
>>
File: ~2016-02-07-808469 (1).jpg (1MB, 2507x1689px) Image search: [Google]
~2016-02-07-808469 (1).jpg
1MB, 2507x1689px
>>62325503
Good loli post anon
>>
>>62325503
it doesn't
your computer is haunted
>>
File: 1407091597166.jpg (18KB, 360x296px) Image search: [Google]
1407091597166.jpg
18KB, 360x296px
>>62325519
please don't say that
>>
>>62325503
Get an IPS screen
>>
>>62325478
https://stackoverflow.com/questions/35276941/how-does-the-command-pattern-decouple-the-sender-from-the-receiver
This might help. But I think that's pretty high level stuff.
>>
>>62325545
>>62325478
Post the passage? Now I'm curios what the context is
>>
>>62325478
holy shit bro, I hope you pull through, but damn, I'm glad I'm not as much of a piece of shit as you.
>>
>>62324866
>The only reason it's still in use is because petty neckbeards and academics want to make programming more confusing and inaccessible and make themselves look smarter.
Obfuscation is better for job security though.
>>
>>62325557
static typing is far simpler that dynamic typing. and I'm unemployed (^;
>>
>>62325478
>I was kicked out of Uni
>I graduated and moved to SoCal about 3 months ago

Wait, I'm confused, did you get kicked out of your old Uni and secretly signed up for another or something?
>>
File: 1494593059767.jpg (47KB, 640x480px) Image search: [Google]
1494593059767.jpg
47KB, 640x480px
>tfw starting to get the hang of x64dbg
>>
>>62325516
just barely
>>
>>62325599
Enjoy it while you can. When RUST takes over no programs will ever have to be debugged again because everything will be written in a safe language
>>
>>62325607
>unsafe
>>
>>62325599
Why not just get the free version of IDA
>>
>>62325545
I'm not really sure this is what the book is talking about. It does seem a bit advanced.

>>62325554
Wait a minute, I'll try to find my phone and take a photo of the page.

>>62325590
By "graduated", I mean I told my mom I had graduated. My bad.
>>
>>62325534
we conjure the spirits of the computer with our spells
>>
>>62325601
It has int, char, bool, and then subsets of those.
That's more than enough, C-- has the right idea:
>In C-- a value stored in a register or memory may have only one type: bit vector. However, bit vector is a polymorphic type and may come in several widths, e.g., bits8, bits32, or bits64. In addition to the bit-vector type C-- also provides a Boolean type bool, which can be computed by expressions and used for control flow but cannot be stored in a register or in memory. As in an assembly language, any higher type discipline, such as distinctions between signed, unsigned, float, and pointer, is imposed by the C-- operators or other syntactic constructs in the language.
>>
>>62325607
Reverse engineering
>>62325623
x64dbg was supposedly easier to use
>>62325634
>the page
If you're tight on money, you can download most english books from libgen.io.
>>
>Be given 2 weeks for operating systems assignment
>Start on it early because it's sort of fun
>The not so fun part involves working with the professor's existing codebase which is buggy and requires some patching on top of our normal assignment requirements (the professor, of course, will deny that there is anything wrong with his code)
>Mostly due to laziness and partially due to a few bugs of my own, I finish the assignment 2 days before the due date and submit it
>Come into research lab today 2 hours before class (assignment is supposedly due by the time class starts)
>One of the other students in the lab (who is also in the same class as me) was just starting the assignment
>He doesn't manage to even get halfway through the assignment before class starts
>He's working on it after class. I think he either managed to get an extension from the professor, or the assignment is due at midnight or something
>Stuck on one part that is mostly just testing the qemu environment and copy pasting the professor's code
>Go through my commit log
>This was a bug caused by the professor's build script not actually linking everything properly (not a fault of my labmate/classmate)
>Tell him to swap around two .o files in the ld command, and it will work.
>It does, he's happy
>Ask him if he knows how to use GDB
>He doesn't
>The rest of the assignment will probably suck for him

Guys... don't procrastinate if you have a deadline. You may think you are a wizard hacker that can get anything done in a couple of hours, but if you have to work with someone else's codebase, anything can happen.

>>62325607

Not all bugs involve memory corruption. Sometimes a typo fucks everything up.
>>
>>62325637
How many bits are in a C int?
>>
>>62325654
Trust me, IDA's more powerful.
>>
>>62325678
Dependent on the system it's compiling on.
>>
>>62325678
sizeof(int)*(CHAR_BIT/sizeof(char))
>>
>>62325705
C has dependent types? That's awesome
>>
>>62325723
that's not what dependent types are, lad.
>>
>>62325661
>tfw I feel happy seeing my classmates fail exams and coursework
>tfw I realize I'm an asshole
>>
>>62325679
How? Can I load a DLL and call arbitrary exports? Is it harder to become familiar with?
>>
File: 1359680165842.jpg (87KB, 500x330px) Image search: [Google]
1359680165842.jpg
87KB, 500x330px
>>62325635
>>
>>62325732
But anon said the int type is dependent
>>
@62325753
If you want (You)s, you can just ask.
>>
>>62325765
I don't want (You)s, I want a dependently typed systems language.
>>
>>62325775
>systems
You probably arent doing any work on a specialized architecture so it doesnt matter.

https://en.wikipedia.org/wiki/Dependent_type#Comparison_of_languages_with_dependent_types
>>
>>62325786
Looks like F* is the best lang there
>>
>>62325807
It's pretty good and actually has funding by a corp so updates arent once a year.
>>
>>62325661
>operating systems assignment
What was it about?
>>
When writing critical software, you often need tests that have 100% branch coverage? So why isn't it more common to generate branchless code? You could even autogenerate it.
>>
>>62325737

If your course is graded on a curve, that kind of happiness can be justified, though just barely. When I was doing my undergraduate work, I took an advanced networking class that the professor had not fully thought through (hadn't taught it in 10 years), and changed a few assignments around over the course of the quarter. The final assignment in that class was a research assignment, where we look up some topic in networking (typically some protocol), write a 10 page paper on it, and do a presentation. A good portion of the class ended up not showing up for their presentations for some reason. Towards the end, the professor asked us how we think the assignments should be weighted. Knowing from previous classes with this professor that he likes to really curve his classes (in one class, he pretty much decided that the average grade would be a C, and he just applied a normal distribution with the class' grades), I convinced him to weight heaviest the assignment that half the class didn't do, and pulled an A in the class.

The class I'm in right now I don't think is curved, so honestly I pity my classmate, rather than rejoicing that his procrastination is beneficial to me in some way. He and the rest of the guys in the lab are pretty friendly and helpful, so I'm hoping they do okay in their classes.

>>62325827

First part is just getting our work environment set up (copy these example problems, make sure they all work)
Second part is modifying a video driver to display our own images and making a printf function that displays to video out.
Third part is defining a setjmp and longjmp function and making them work with some existing code.

It's pretty simple, but the biggest problem is that the codebase we are given to work with is broken in many ways, and also not very well maintained (professor does a lot of #include "blah.c").
>>
File: file.png (192KB, 1184x826px) Image search: [Google]
file.png
192KB, 1184x826px
baby's first fractal
>>
>>62325900
back2>>>/v/
>>
File: file.png (92KB, 462x498px) Image search: [Google]
file.png
92KB, 462x498px
>>62325917
its so pretty tho
>>
>>62325807
>best
>is impure
???

inb4 >muh effects
effects are garbage
>>
>>62324489
>>62324489
VERY basic program that's still confusing the fuck out of me. I have to build a program in C++ to sort change. Here's what I have so far:
//The purpose of this program is to sort change into different sized denominations

#include <iostream>
using namespace std;

int main()
{
int inputCurrency
int exitCondition
double inputTotal
double inputDollars
double inputQuarters
double inputDimes
double inputNickles
double inputPennies



cout<< "\nPlease input the amount of money you'd like sorted: \n";
cin>>

return 0;
}
>>
>>62325900
Did you know you can make this perfectly with pen, paper, a ruler, a set of simple, predefined rules, and 24 hours? It seems like it would produce a big blob of ink, but no, it comes out quite beautiful. :^)

Check out chaos theory.
>>
Any fun /g/-approved projects I can start working on? I do a lot of C/C++ and Java
>>
>>62325998
Wanna debug something?
>>
>>62325984
here>>62325998
>>
>>62325998
make my gui
>>
>>62325029
It has plenty of flaws

Electron sucks so it's shit-tier for desktop development. Also I'd say that being loosely typed is actually a negative, hence why a lot of people use Typescript
Also it's not real "software programming" language, since it's interpreted
>>
>>62325984
I computed the diagram with the chaos game described here, I presume that's what you mean?
https://en.wikipedia.org/wiki/Sierpinski_triangle#Chaos_game
>>
File: 1503084551838.jpg (92KB, 1000x1000px) Image search: [Google]
1503084551838.jpg
92KB, 1000x1000px
>>62325861
How do I get into operating systems programming, senpai?
>>
What are some real practical applications for Pairing Heap. When to use a Pairing Heap/when is it more advantageous?
>>
>>62326033
Yup, that's it. Fascinating stuff, man.
>>
>>62325835
because you can't make a program do any useful work without branching
>>
>>62326036

The OSDev wiki is a good start, desu.
>>
>>62326065
You can.
Psuedocode:
bool condition;
void* iftrue;
void* iffalse;
jmp &(iffalse + (int)condition*(iftrue-iffalse));

This is not a branch.
>>
>>62325861
>#include "blah.c"
Why is this bad?
>>62326113
Also this can be optimized to use xor and & instead
>>
>>62325835
>>62326113
the of tests you need to write for 100% coverage is equivalent, though
>>
File: 1503373050052.jpg (42KB, 306x344px) Image search: [Google]
1503373050052.jpg
42KB, 306x344px
>>62326097
Thank you. Do you watch anime?
>>
>>62326135
What does 100% coverage mean though? If you construct your code like this it shouldn't have any branches in the strict sense.
>>
>>62326142
if you want 100% test coverage, every statement must be exercised
>>
>>62326161
This is easily doable too.
sed -e 's/^/testCoverage ? {} : (/g' -e 's/$/)/g'
Then add something like this at the beginning of main():
testCoverage = (bool)(argv[1] == "test");
>>
>>62326127

1. It means that every time a change is made in one file, the entire program has to be recompiled.
2. Possibility for circular #include dependencies.

There's a reason why we separate C and C++ sources into headers (which declare, but do not define functions), and regular source files.

>>62326140

Sometimes. I'm currently watching Made in Abyss. Should probably read the manga. It's pretty enjoyable thus far, although right now the loli is bleeding out her eyes and begging her robot companion to chop off her arm, which is swolen and gross. The shit you do to survive...
>>
>>62326208
cute.
>>
Can someone link me to a decent explanation of bitwise operators?
>>
>>62326239
It fulfills the criteria of executing every statement, then just put in goto with !testCoverage ? {} : goto asdasd, go top to bottom a-z in all the source files and function and just paste it in. Could easily be automated too.
>>
>>62326230
>Made in Abyss
I forgot that got an anime adaptation. How many eps are out now?
>>
>>62326263

It's on the 10th right now.
>>
>>62326248
wikipedia
quick primer: AND and OR do what you expect (AND also is used to mask stuff), XOR flips all the bits that are set to 1, bit shift just moves them 1 to the "left" or "right", the rest are irrelevant
>>
>>62326291
>AND and OR do what you expect
I have no idea what to expect though, when it comes to bits.

And can't you do multiplication and division with the bit shifts? Left is multiplication and right is division, if I remember right?
>>
I'm taking a C++ class with an old ass Pajeet. Hes shit at teaching and there is no textbook for the class. What C++ book is good?
>>
>>62326291
pro tip:
you can use nand and nothing else to make every other operator
same thing for nor
>>
>>62326320
The old ass Pajeet is the teacher***
>>
>>62326311
>I have no idea what to expect though, when it comes to bits.
bits can only be two values, 0 or 1
0 means false 1 means true
you can figure it out from there I bet
>>
>>62326331
C++ Primer (Not Primer Plus) if you have some experience programming, Bjarne's Programming -- Principles and Practice Using C++ if you're totally new.
>>
>>62326338
Ah, okay. So if both bits in the same "column" are "on," the resulting bit is "on" for AND, and if either is "on," the resulting bit is "on" for OR, right?

Okay. I think I can see how you would use AND for checking to see if a number is even now.
>>
>>62326375
Yes.
>>62326311
You can, by two. Just like you can do the same thing in base 10 by adding or removing zeros:
>123123
>12312 - divide by 10
>1231230 - multiply by 10
And in binary:
>010101
>01010 - divide by 2
>0101010 - multiply by 2
>>
>>62326320
http://www.learncpp.com/
Objectively the best, up to date resource I could find, for a beginner
>>
>>62326328
>he didn't build logic gates with redstone
>>
>>62326589
>he build logic gates with dorfs
>>
>>62325231
I just got the Expert C Programming book last week. It's been excellent so far.
>>
>>62326622
Good to hear, I got the recommendation for the book from Fabien Sanglard's site. I'm hoping I can get his Game Engine Black Book sometime soon.
>>
File: math.png (544KB, 1097x169px) Image search: [Google]
math.png
544KB, 1097x169px
>>62324509
This is some shit you learn in primary school not some ancient Egyptian invention, they just used base 2.
>>
>>62326696
Is base 2 really taught in K-12 yuroland schools?
>>
>friend Fraction operator+(const Fraction&, int n);
>friend Fraction operator-(const Fraction&, int n);
>friend Fraction operator*(const Fraction&, int n);
>friend Fraction operator-(const Fraction&, int n);
>friend Fraction operator-(int n, const Fraction&);
>friend Fraction operator+(int n, const Fraction&);
>friend Fraction operator*(int n, const Fraction&);
>friend Fraction operator/(int n, const Fraction&);
>>
>>62325661
Just fuck off attention whoring namefag.
>>
>>62326711
It sure as fuck wasn't taught in burgerland K-12. I remember when my Chink professor was astounded we didn't know base 2 shit like the back of our hand already. "This is something you learn in third grade."
>>
>>62326764
sounds like a myth
did he expect you to know hexadecimal and octal too?
>>
>>62326764
>burgerland
found your problem
>>
>>62326764
No wonder americans are so uneducated
>>
>>62326718
hm
haven't used friend functions since college
is there an actual reason to use them in practice?
>>
>>62326711
We learned it in first year of high school (16 years old), but not fast counting rules (just what they were and how to convert), they might have been mentioned earlier though.
https://www.skolverket.se/polopoly_fs/1.174553!/Mathematics.pdf
>Properties of a range of whole numbers, different number bases, and the
concepts of prime numbers and
divisibility.
>>
>>62326832
That's pretty neat desu.
No child left behind really fucked up our """""""""education"""""""""
>>
>>62326830
Enjoy writing getThatMember(ThisClass) every time
>>
>>62326848
https://en.wikipedia.org/wiki/Programme_for_International_Student_Assessment#Sweden
>In mathematics, the nation had the sharpest fall in mathematic performance over 10 years among the countries that have participated in all tests, with a drop in score from 509 in 2003 to 478 in 2012. The score in reading showed a drop from 516 in 2000 to 483 in 2012. The country performed below the OECD average in all three subjects.
>>
>>62326830
What are you doing nigger
http://www.learncpp.com/cpp-tutorial/813-friend-functions-and-classes/
>>
>>62326789
No, but he did honestly expect us to already know the arithmetic series formula already. I'm talking, honestly surprised we didn't know.
>>
>>62326894
Which year?
>>
>>62326902
Of school we should've known it? Or which year did I take his class?
>>
>>62326894
>arithmetic series formula
I've never heard of this before and I already have my bachelors degree.
>>
>>62326917
Which year of school
>>
>>62326928
(n(n+1))/2? Surely, you learned that somewhere.

https://en.wikipedia.org/wiki/1_%2B_2_%2B_3_%2B_4_%2B_%E2%8B%AF
>>
>>62326873
>However, you may occasionally find situations where you will find you have classes and functions outside of those classes that need to work very closely together
so, it's for people who can't solve their coupling issues
yeah, I don't run into that problem
>>
>>62326931
If I remember right, he said it was around 3rd grade again. I know he made a comment that apparently some 6 year old came up with the formula or some shit.
>>
File: sierpinski.png (18KB, 800x800px) Image search: [Google]
sierpinski.png
18KB, 800x800px
#lang racket/gui

(define (sierpinski w h color [pad 4])
(define B (make-object bitmap% w w))
(define dc (new bitmap-dc% [bitmap B]))

(define (avg a b)
(/ (+ a b) 2))

(send dc set-pen color 1 'solid)
(let iter ([x1 (/ w 2)]
[y1 pad]
[x2 pad]
[y2 (- h pad)]
[x3 (- w pad)]
[y3 (- h pad)])
(when (> (- x3 x2) 3)
(send dc draw-line x1 y1 x2 y2)
(send dc draw-line x2 y2 x3 y3)
(send dc draw-line x3 y3 x1 y1)
(iter x1 y1
(avg x1 x2) (avg y1 y2)
(avg x1 x3) (avg y1 y3))
(iter (avg x1 x2) (avg y1 y2)
x2 y2
(avg x2 x3) (avg y2 y3))
(iter (avg x1 x3) (avg y1 y3)
(avg x2 x3) (avg y2 y3)
x3 y3)))
B)


(send (sierpinski 800 700 "blue")
save-file
"sierpinski.png" 'png)
>>
You guys ever get saved by your own actual crap methods? Just happened now I can literally sleep happy tonight. Hope all is well with everyone!
>>
>>62328209
not cross platform
>>
File: cloud.png (2KB, 238x128px) Image search: [Google]
cloud.png
2KB, 238x128px
Porting an old C program I wrote once to Javascript. It generates clouds.
>>
File: radio.mov.webm (2MB, 1280x720px) Image search: [Google]
radio.mov.webm
2MB, 1280x720px
>>62324489
>What are you working on, /g/?
Working a little on the display displaying current running internet radio on my pi. Works so far, just gotta play a little around how fast it refreshs, when to light up backlight and for how long.
But anyways it is quite comfy to just control it with those three buttons. Will add a remote control later on, just gotta get an IR sensor

Sadly the hd44780 can't scroll text on only one line, which would be cool when I got a pretty long title or some shit
>>
File: 100-100.jpg (49KB, 907x661px) Image search: [Google]
100-100.jpg
49KB, 907x661px
>>62328237
>Just happened now I can literally sleep happy tonight. Hope all is well with everyone!
>going to sleep at 11AM
TOP KIKE
>>
>>62328437
You do know there's more than 1 timezone?
>>
>>62328478
5am here and I plan on going to bed soon.
for real this time...
>>
>>62328478
No. GMT+1 is the only relevant timezone
>>
>>62328478

>Not using IST for everything
>>
Retarded C# question coming through!

namespace App
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter a number");
int number = int.Parse(Console.ReadLine());
Console.WriteLine("What do you want to do with this number?");
Console.WriteLine("1 - square");
Console.WriteLine("2 - square root");
int choice = int.Parse(Console.ReadLine());
switch (choice)
{
case 1:
{
Console.WriteLine("{0} squared is {1}", number, number * number);
break;
}

case 2:
{
Console.WriteLine("The square root of {0} is {1}", number, Math.Sqrt(number));
break;
}
}
Console.Read();
}
}


How do I make the program repeat the switch indefinitely?

How do I make the program go back to entering the number?
>>
>>62325678
on my machine an int has 4bytes so 32bit?
>>
File: tfw-this-shit-again.jpg (6KB, 139x150px) Image search: [Google]
tfw-this-shit-again.jpg
6KB, 139x150px
>>62328779
>what is a while loop
>>
Is this true, /dpt/?

>>>/v/389729207
>>
>>62328812

That's the only option? I know about while loops, I just thought there is some simpler command or something.
>>
>>62328827
Literally everything /v/ says about programming is wrong, you idiot.
>>
>>62328843
>board allegance on 4chan in 2017
I browse /g/ and /v/ you fucking retards
>>
>>62328779

You're not handling errors. What if I type
>penis
Into your Enter a number prompt.

While loop it infinitely, and if they don't enter a number break the loop and stop the program.
>>
>>62328835
>I just thought there is some simpler command or something.

You have a block of code you want to repeat. While and for both loop this block in one fucking word.

How much simpler command can you get?
>>
>>62328874

I'm only starting to learn C#, cut me some slack.
>>
>>62328827
If you want a non-meme answer, the only time data-orientated design is practically applicable is for things that are very performance sensitive, like a rendering or a physics engine. If you are a beginner programmer, which you are, this shit is completely irrelevant to you. Program a game efficiently and ignore people pushing an ideology
>>
>>62328884

I thought there may be something like 'StartOver' or something.
>>
>>62328908

You're looking for some sort of GOTO, which is a common rookie mistake. There is effectively no GOTO in any modern language worth using (like C#). You will learn to break that pattern of thinking. You're building units of code that you slot together or repeat like lego, not embedding go to this tag or line number.

I'm sure there is a go-to hidden in C# somewhere because its a really comprehensive language, you can even do raw pointers and unsafe code if you want, but no. I've never ever seen it used in my professional C# work and I've worked with some fucking awful C# spaghetti
>>
>>62328946
the one valid use for goto in modern languages is escaping from a nested loop
>>
>>62328946

That's actually very helpful. Thanks.
>>
File: 1491273133631.png (159KB, 500x500px) Image search: [Google]
1491273133631.png
159KB, 500x500px
>>62328827
Stop fucking posting this bullshit you faggot.
Nobody likes your constant fucking cross linking.
It isn't funny or interesting and only leads to shitposting.
>>
>>62328955
>the one valid use for goto in modern languages is escaping from a nested loop
There are many perfectly legitimate uses for goto. FSMs come to mind.
>>
>>62328955
Which could be made with tagged loops in some languages
like
loop 'main_loop {
loop 'secondary_loop {
break 'main_loop;
}

}
>>
>>62326718
why wouldn't you just have an implicit constructor for int to Fraction
>>
>>62329085
What a pointless feature. Goto is more generally useful.
>>
Hey, I am looking to improve the general quality of my code. Apart from all the other stuff I am doing or procrastinating on it is apparently useful to look at "good" / clean code from the best.
What do you consider the best resource for good java code?
>>
>>62329161
> while, for, switch
What pointless features, goto is more generally useful, could substitute all of them
>>
>>62329161
Big companies want at least some degree of protection from the idiocy of the code monkeys they hire, hence the popularity of languages that omit features that are easy to abuse and replace them with band-aids that cover only the most common "legitimate" use cases.
>>
>>62329213
Those are all "syntactic sugar" over the basic imperative constructs, but they actually make code nicer to write.
Your "tagged loops" or whatever isn't nicer to write at all. In fact, it's basically the same amount of code.
>>
>>62329213
correct, let's get rid of function calls too
>>
>>62329213
>while, for, switch
Higher level constructs.

>"tagged loops"
Literally a limited goto.
>>
Is this true?: >>>/v/389731019
>>
File: 1502056685492.jpg (93KB, 313x382px) Image search: [Google]
1502056685492.jpg
93KB, 313x382px
>>62329376
stop cross-linking that shit underaged board
>>
node.js collapsed under the weight of SJW. I cannot wait to see the same happen to Rust.
>>
Generating 100 numbers, sorting them, putting them in the table and making a search function that searches for the number and if found shows it's row and column place on the table.

How advanced is a program like that? If you can do that in C, for example, can you say that you know C?
>>
>>62329376
No. It's one of the most inaccurate descriptions of programming I've seen.
If your program compiles it means very little for correctness. Ignoring crazy cool languages like Idris. But even there you'll have logic errors. Programming is art in the same way crafts are art. You have performance guided results and vision guided quality.

But I'm fairly certain that's just bait. A gogem poster would do that.
>>
>>62329376
No, but it's a good indication why you shouldn't listen to /v/.
>>
>>62329238
You can't replace function calls without leaving it up to the compiler.

We might be able to soon actually. If parts of the C++ community moves on from C++ to just about any other language you'll see them have much more time to spend on optimizations. 'Outlining' is up there. If you can do it well you can do more aggressive inlining and have your outliner evaluate where you actually needed to have a call.

As it is now the Goldilocks problem in inlining is just deal with by having every inline show itself good by heuristic rather than ..
I'm rambling.
>>
File: rust_diversity.png (136KB, 1222x550px) Image search: [Google]
rust_diversity.png
136KB, 1222x550px
>>62329494
This meme again.
>>
>>62328288
looks comfy post some more
>>
>>62329654
If the Rust community isn't SJW, why would they ask such a ridiculous question? Why is it even relevant in the first place?
>>
>>62329512
I wouldn't say I know a language if the most I can do is that
>>
>>62329654
Pretty sure what anon here calls SJW doesn't correlate to minority groups well.
Also ~1/3 minority groups isn't exactly few even if that was relevant.
>woman or perceived as woman
>same as trans
I really distain this. Why are companies so bad at marketing this field?
>>
File: faggot.png (840KB, 1058x690px) Image search: [Google]
faggot.png
840KB, 1058x690px
>>62329654
>r-rust devs arent sjws!
>>
>>62329512
Don't worry about what you supposedly know and don't. Put it on your resume and have HR sort your out.

I say if you can do posix networking for a simple application (ssh client maybe) you can say you know C. You've touched most of what the language has to give you.

But your learning shouldn't be guided by what you must do to claim you know something. It doesn't help you as much as you'd think because anyone can say yes to a vague claim.
>>
>>62329683
Because this is expected from a company in 2017, and no one really cares so why not.
>>62329694
>Also ~1/3 minority groups isn't exactly few even if that was relevant.
It's actually ~1/5 (5,368 responses total), and most of them are "minority" only within the context, not in the sociological sense.
>>62329747
>being anti-fascist and anti-nazi is somehow bad now
This meme has gone too far.
>>
>>62329747
>not being nazi is the same as sjw

he might be cringey with the ancom and anti-imperialist shit, but otherwise

sorry man
>>
>>62329795
>Because this is expected from a company in 2017, and no one really cares so why not.
Who expects that?
>>
>>62329795
>minority only in context
I don't see it. But wouldn't having a survey like this kinda prove the point?
>anti-fascist
He's clearly American so it may be different there but here that's code for being a domestic terrorist with left-leanings.
You hear of them breaking into houses and assaulting/murdering people and being arsons. I've had conversations with a few and they have very twisted beliefs of what democracy is that they take to actionable extremes. Some of them are just revolutionary communists.
>anti-imperialist
Makes much more sense. That's only tangentially related with the aforementioned group.
>anti-nazi
Wasn't mentioned but here that means you go to legally approved peaceful demonstrations that anti-immigration parties hold (the background to them make it both more reasonable and less reasonable) and start throwing rocks and smoke grenades while wearing a mask.
>>
Some day I'm gonna tell hr to treat me like a minority because I am a slav and according to the party currently in the office (aka 4chan) slavs are not white. Therefore I am allowed to say nigger, prefer to be called white nigger and I don't have any white privilege whatsoever.
>>
how do I stop being a lazy fuck
>>
>>62329875
>being anti-fascist makes you a domestic terrorist
lol
>go to legally approved peaceful demonstrations that anti-immigration parties
a woman got killed and they generally advocate to have people killed/removed by force
>anti-immigration
no
it's anti-immigrant
at least be honest, you are anti-immigrant
>>62329898
>only north western europeans are white
slavs are white
strictly speaking iranians, north africans, arabs are white too
instead of going with slav, you should just go with muslim
>>
>>62329939
antifa are domestic terrorists. If you don't want to be associated with them, why would you share their title?
>>
>>62329914
Remove all distractions (block 4chan, remove videogames etc) and start every day sitting and staring at what you're supposed to be doing for an hour every day first thing you do after breakfast.
Don't set a timer.
>>
>>62329898
slavs are near Russia and Russia is bad so slavs are also bad. Basically you are at the same level of cis white males to the, for the rest of us normal people you are just white nigger.
>>
File: Projecting.jpg (29KB, 490x333px) Image search: [Google]
Projecting.jpg
29KB, 490x333px
>>62329820
The general public? Representativity has been a hot topic in the media in the recent years, so many companies like Google and MS focus on it, same goes for Mozilla.
>>62329875
Wew, you really want to make `anti-fascist`, `anti-imperialst` and `anti-nazi` sound like it's something bad, don't you? It's almost like you yourself have strong political beliefs you actively promote at every opportunity, something you're accusing the Rust developers of.
>>
>>62329955
>The general public? Representativity has been a hot topic in the media in the recent years, so many companies like Google and MS focus on it, same goes for Mozilla.
It's being forced on the general public with diversity programs. If you don't comply, they fire you.
Nobody asked for this in the first place.
>>
>>62329947
antifa is mostly an online meme
>>
>>62324489
I am making a pool balls image recognition with tensorflow and opencv in python
Planning to make a robot that plays pool
>>
>>62329955
>Wew, you really want to make `anti-fascist`, `anti-imperialst` and `anti-nazi` sound like it's something bad, don't you? It's almost like you yourself have strong political beliefs you actively promote at every opportunity, something you're accusing the Rust developers of.
How does `anti-communist` sound? Did I hurt your feelies now?
>>
>>62329939
>they
Anon you don't even know where I live first of all.
>anti immigrant
That's absolutely not how the party started up. They coopted the more radical elements for publicity and have been trying to cut it off since. They have very strict policy on that stuff.
>you're anti-immigrant
Preposterous. Just yesterday I was working with an investigative journalist who's dealing with issues in our immigration system, to the favor of immigrants (queues are ridiculous, if you turn 18 during the queue time you're set back, so wrong).
Its not just black and white anon. Some people don't hold the same values you do even if you care for the same things.
>anti-fascist
I'll inform you that the word fascist is the most misused word in politics. Now it has a very clear association here.
>>62329955
>you want to
This is incredible. Describing a situation you experience does NOT constitute a political stance.
>>
>>62330027
>Preposterous. Just yesterday I was working with an investigative journalist who's dealing with issues
who is this journalist
>>
>>62330043
You'd probably just harass her. But she's a prominent member of vistarinteut.
>>
Fucking rustfags ruining one more /dpt/ whit their constant non-programming bullshit.
>>
>>62330080
is where it started >>62329494
>>
>>62330089
And (((zhe))) pulled the nazi card.
>>
>>62330110
here's who pulled the nazi card first>>62329747

is it a zhe
>>
>>62330118
This anon >>62329747 never mentioned nazis. Your ideology considers everyone a nazi that opposes you.
>>
>>62330132
he did mention it, through the picture he posted

how can you be so wrong
>>
Ok, if Rust is the language of the leftleaning crowd
what is the language of righties
>>
>>62330150
Anon called him a SJW.
>>
>>62330157
sepple
>>
>>62330150
You're actually right. He mentioned nazis in a tweet. But that's actually him quoting someone else.
>>62330157
I doubt they have language.
>>
>>62330157
C/C++
>>
>>62324489
Is javascript a good place to start learning to program or nah?
What language is simple enough to learn, but teaches good habits.
I heard python is another good language to start with, but the one python poster in this thread seemed like a douchebag and I don't want to learn the language if that's what the community will be like.
>>
>>62329996
>Nobody asked for this in the first place.
I believe you didn't, but what about unrepresented people?
>>62330012
No, why should it? I'm not a fan of communism either, but if I started to insinuate that every self-described anti-communist is an aggressive nazi you would be correct to assume my political beliefs.
>>62330027
>Describing a situation you experience does NOT constitute a political stance.
You're either insincere or have been drinking on your own Kool-Aid too much, your posts reek of your political position.
>>
>>62330179
python doesn't exactly teach good habits

learn C I guess.
>>
File: vzbhayzhlk3z.jpg (42KB, 452x440px) Image search: [Google]
vzbhayzhlk3z.jpg
42KB, 452x440px
>>62330157
> what is the language of righties
Kekistani.
>>
>>62330187
>I believe you didn't, but what about unrepresented people?
The majority of SJWs are actually white. I cannot recall mass protests of Asians calling for equality.
>>
>>62330157
Hoon, the language written by mencius moldbug
>>
File: clouds.png (25KB, 512x512px) Image search: [Google]
clouds.png
25KB, 512x512px
>>62329662
>>
>>62330194
>C
Why not it's superset C++?
C seems like a cool guy, he's just getting on there in years, and has a hard time learning new things and adapting to changing times, but at least he's consistent.
>>
>>62330282
C++ will teach you bad habits because nobody knows what the good habits are for C++.
C is small and concise enough that people can generally agree on the "right" way to write it.
>>
>>62330282
>has a hard time learning new things and adapting to changing times,
If your langugage standards needs to be updated, it's shitty standard. You wouldn't trust that the same retards that made the first mess could make it better with updates. Real world examples is sepples where new standard versions are released to fix the fuck ups in the old ones.
>>
I thought about building my game's menu system in a DSL from lisp so I'm forced to have an actual parser and proper structure etc. Good idea? I've never used a lisp.
>>
File: fixad_1197417158_1610657.jpg (29KB, 400x323px) Image search: [Google]
fixad_1197417158_1610657.jpg
29KB, 400x323px
>>62330187
>you're insincere
Anon here's the deal. If you interpret the world one way. And I interpret the world another way, you take the difference between the two.
You can attribute that difference to many things. It can be me or you are simply misinformed. It can be me or you are simply lying (to further a cause). Or it can be that situations are different.

But I'll assure you. These people (probably not every antifa but as a group) do terrorism in the truest sense of the word. This is them posing, taking credit for a murder while warning others. "one fixed, now we take the rest- antifa Östergötland". I don't support political violence. I don't have this extreme lack of faith in democracy that these individuals demonstrate either. The view (that I got from conversation, you can find documentaries, they're open about this) is that you need to have political elements of society that need to be eliminated or suppressed by fear. This is in my view directly opposed democratic values. Hence my disgust with these people. But that doesn't make me sympathetic to nazis. Frankly with your accusations you sound just like them. They are also very keen on hunting anyone for 'misbehavior'. I wouldn't say the same things I say here simply out of self-preservation. Do you see how perhaps they're different from your idea of anti-fascists?

This doesn't belong on /dpt/ though.
>>
File: meson.png (48KB, 600x277px) Image search: [Google]
meson.png
48KB, 600x277px
http://www.vldb.org/pvldb/vol10/p1118-li.pdf
>We experimentally evaluate Mison using representative real-world JSON datasets and the TPC-H benchmark, and show that Mison produces significant performance benefits over the best
existing JSON parsers; in some cases, the performance improvement is over one order of magnitude.
T-thanks, MS.
>>
>>62330251
How are these generated?
>>
>>62330298
I heard C++ is a clusterfuck, but can't you just learn what you need, and drop the rest?
>>
>>62330299
yet they still can't fix the oldest C++ fundamentals that is C
C++ was a bad idea from the start
>>
File: perpetual-thinking.gif (617KB, 498x498px) Image search: [Google]
perpetual-thinking.gif
617KB, 498x498px
>>62330179
>Is javascript a good place to start learning to program or nah?
Too many bizarre quirks and gotchas due to poor language design. Also, I recommend avoiding the OOP mind-poison, and anything with manual memory management. Basically, you're all out of luck. There are no popular languages good for beginners.
>>
>>62330323
Is the source available?
>>
>>62330157
Righties aren't programmers
>>
>>62330336
Also isn't C and C++ similar enough in syntax that it should be like learning the same language?
>>
>>62330336
Everyone writes their own style of C++, so unless you're not planning on reading anyone else's code you're fukt.
>>
>>62330336
You can but that doesn't garauntee everyone you meet will do the same. And what's the good subset is also a very opinionated matter. And it's not like a feature can just be declared bad either. It's situation dependent.

It's especially problematic on teams.
>>
>>62330347
Why avoid OOP?
>>
File: 1503660471836.jpg (35KB, 599x351px) Image search: [Google]
1503660471836.jpg
35KB, 599x351px
>changed my IDE theme to black background to make it easier on the eyes
>can now constantly see my face in screen reflection while programming
>>
>>62330307
> This doesn't belong on /dpt/ though.
On this I agree, this is why /pol/-posting should be shamed out of the general.
>>
>>62330355
I couldn't find it in the paper, but there's a Rust implementation https://github.com/pikkr/pikkr .
>>
>>62330361
>>62330362
Damn, I just want a simple enough to learn language, batteries included, without picking up any bad habits.
>>
New thread:

>>62330399
>>62330399
>>62330399
>>
>>62330398
C is a simple enough language to learn, although it certainly isn't "batteries included".
>>
>>62330398
Python.
>bad habits
With python you pick up OK indentation understanding and high expectations on expressiveness and library support.
People overestimate the issues. I wouldn't like starting with a dynamically typed language generally but if you were me you'd already be half-way through a book on a language.
Wasting time pondering language decisions is bad.
C is another option as anon mentioned but I'm judging your character and I say you don't quite have it if you say 'batteries included' as a phrase. It probably doesn't have what you wanted.
>>
>>62330330
>How are these generated?
Like procedurally generating a tree using recursion, but the branching is different and you draw bumps on a heightmap instead of branches. You then blur the heightmap, apply some lighting and cell-shade the result.
>>
>>62330419
Are there any modern languages like C? I heard Go was made with one of the Co-creators of C
>>
>>62330444
I see. Cool.
>>62330448
D or Go. Just go learn right now though.
>>
>>62330448
Go is like C except safe and without manual memory management. It's a good brainlet language.
>>
>>62330468
>it's a good brainlet language
Sounds like what I'm looking for! :^)
But does it have static typing?
>>
>>62330501
Yes.
>>
File: deebly-goncerned.png (89KB, 600x500px) Image search: [Google]
deebly-goncerned.png
89KB, 600x500px
>>62330375
>Why avoid OOP?
At best, it distracts the newbie from the actual basics of programming (algorithms, data structures, how to break down a problem into meaningful sub-problems without following the OOP ideology). At worst, it instills the crippling mindset that everything should be an object.
>>
>>62330175
Hah, I am far liberal left and I like C++
>>
>>62330628
>I like C++
Nobody likes C++. Not even the people who use it.
>>
>>62330711
I like C++. Somewhat.
>>
What's the best method/library for doing a lot of reading from files in Java? Is there anything like C++'s thing of clearing the variable that tracks the current location in the file?
>>
>>62330721
>I like C++
Nobody likes C++.
en.wikipedia.org/wiki/Stockholm_syndrome
Thread posts: 330
Thread images: 48


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