[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: 342
Thread images: 46

File: Kildall.png (226KB, 600x538px) Image search: [Google]
Kildall.png
226KB, 600x538px
What are you working on, /g/?

Previous Thread: >>62066877
>>
Recommended /dpt/ viewing material:

https://www.youtube.com/watch?v=3U3lV5VPmOU

https://www.youtube.com/watch?v=d1uraoHM8Gg

https://www.youtube.com/watch?v=hIZxTQP1ifo
>>
File: happiness_loli.jpg (111KB, 516x729px) Image search: [Google]
happiness_loli.jpg
111KB, 516x729px
>>62073328
First for C. Working on a C project with search algorithms.
>>
File: lmao.jpg (38KB, 282x225px) Image search: [Google]
lmao.jpg
38KB, 282x225px
>>62073322
>being poor
>>
File: 1503076072553.gif (469KB, 512x807px) Image search: [Google]
1503076072553.gif
469KB, 512x807px
Haha i don't know what the fuck people need so that I can make it and feel like i'm worth something. Haha i might want to die no lie
>>
>>62073338
he has the virgin face
>>
>>62073338
>[YouTube] The Rust Programming Language (embed)

Rust is and never will be a /dpt/ language, fuck off.
>>
>>62073328
Your finger was on the trigger 50 posts back, wasn't it?
>>
>>62073390
what is making it pop up so much? I tried it last night and it was just _fucky_
>>
>>62073402
paid SJWs to shill it to the internet.
>>
>>62073358
why would you even make your programming language closed source? What do you stand to gain? What company will legitimately look at your language, the license fee, and say "By golly, fuck the >50 different open-sourced language I could use to complete the exact same task anyway, lets use this one!"?
>>
>>62073402
Rust literally just have an aggressive shilling campaign. They dont shill off merit though, just the same 2-3 buzzwords. The language is bad , the community is bad, mozilla are bad. Don't support either.
>>
>>62073433
What's the alternative? Agda? Coq?
>>
>>62073414
>>62073433
[citation needed]
>>
>>62073443
Modern C++ or D.
>>
>>62073449
>who is steve 'skrillex' klabnik.
>>
>>62073449
We got a live one, folks
>>
>>62073453
They're not safe enough. Rust's main selling point is safety.
>>
Any good videos for OOP programming? I already know how to code, but I'd like to know the good practices and such.
>>
>>62073468
You want managed code then.
>>
>>62073449
Anything in Rust has extra steps due to the BC.
Valid things like ternaries were removed but they keep shitty things like nested comments.
The community entertain bike-shedding """issues""" because theyre PC related.
The language itself is very slow.
And finally Mozilla have sold out to higher powers.
>>
>>62073328
It sucks how he ended. He was really a smart guy.
>>
>>62073468
>Not safe enough
That's a funny way to say 'not idiot proof'
>>
>>62073480
Watch Yegor's videos: https://youtube.com/user/technoparkcorp/videos

Also listen to the se-radio podcasts: http://www.se-radio.net/
>>
File: 1493151375730.jpg (23KB, 300x301px) Image search: [Google]
1493151375730.jpg
23KB, 300x301px
i am so dump can somebody explain to me this things:

What is the abstract class, what does it do and what is it used for?

What is the interface, what does it do and what is it used for?

What is singleton design pattern, what does it do, how to use it?
>>
>>62073468
You want safe? Try Ada.
>>
File: SpaceCadet2.jpg (94KB, 1023x527px) Image search: [Google]
SpaceCadet2.jpg
94KB, 1023x527px
Recommended /dpt/ viewing material:

https://www.youtube.com/watch?v=DmT80OseAGs

https://www.youtube.com/watch?v=DsZdfnlh_d0

https://www.youtube.com/watch?v=a9xAKttWgP4
>>
>>62073481

Why, if you can prove there aren't any of the kinds of violations managed languages take care of without any runtime overhead?
>>
>>62073519
>le runtime overhead meme
Nigga, Java is faster than C at this point. Move on from the muh runtime overhead myth.
>>
>>62073443
>using a language that has the extension .lagda
>>
>>62073506
sounds like homework
>>
MapVAAdvisory[msg_] :=

Module[{observationString, observation, observationLayers, polys,
date},

observationString = StringCases[msg,
"OBS VA CLD: " ~~ Shortest[x__] ~~
Alternatives["FCST VA CLD", EndOfString] :> x];
If[observationString === {}, Return[Null]];

observation = StringReplace[observationString[[1]], "\n" -> " "];
If[StringCases[observation,
RegularExpression["[NESW][0-9]{4} [NESW][0-9]{5} "]] === {},
Return[Null]];

observationLayers =
StringSplit[
observation, {"SFC/FL" ~~ DigitCharacter .. ~~ Whitespace,
"FL" ~~ DigitCharacter .. ~~ "/" ~~ DigitCharacter .. ~~
Whitespace}];

polys = (GeoPosition@FromDMS[StringJoin[
StringTake[#, 3], "d", StringTake[#, {4, 5}], "m",
StringTake[#, {6, 10}], "d", StringTake[#, {11, 12}],
"m"]] & /@
StringSplit[#, " - "]) & /@ observationLayers;

date =
StringCases[msg,
"DTG: " ~~ Shortest[x__] ~~ Alternatives[Whitespace, "\n"] :>
x][[1]];

GeoGraphics[{
GeoStyling[Opacity[.5]],
MapIndexed[With[{color = {Yellow, Red, Orange}[[#2[[1]]]]},
{EdgeForm[color], FaceForm[color], Polygon[#1]}] &, polys]
}, PlotLabel -> "Volcanic Ash Cloud Over Europe\n" <> date]
];
>>
>>62073506

do your own fucking homework jesus christ
>>
>>62073535

Java's VM is indeed pretty good, but in my testing it's still behind GCC and MSVC.
>>
>>62073535
>Java is faster than C at this point
False
https://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=java
>>
>>62073535
this is the "Nigga, RAM is cheap, so who cares if the average browser takes up 2GiB of memory for 3 tabs" argument adapted to programming. If you don't need troubleshooting, you don't need a runtime.
>>
>>62073561
wat is this cancer?
>>
>>62073550
>>62073566

It is not a homework and i don't know how can i prove it. Fuck ;_;
>>
>>62073589
Its not like Rust the pinnacle of lightweight though.
And the fact that its as bad as JS with extended functionality through 3rd parties instead of a solid STD.
>>
>>62073607
the only other thing it could be is interview prep, and if you dont know the answer to those questions just fuck off and go get a job at a grocery store.
>>
>>62073596
Not something a brainlet like yourself needs to concern himself with.
>>
File: 1495359317161.png (2MB, 1214x1109px) Image search: [Google]
1495359317161.png
2MB, 1214x1109px
Employed Haskell programmer reporting in
>>
>>62073607
I guess you'll have to just research for yourself. Like everyone else did.
>>
>>62073622
does your boss know you're writing in haskell on the clock?
>>
>>62073620
t. pahjeet
>>
>>62073622
do you still flip burgers? or have you moved back to mowing lawns?
>>
File: 1503622847579fdg.png (513KB, 1214x1109px) Image search: [Google]
1503622847579fdg.png
513KB, 1214x1109px
>>62073622
>1.65 MB

top kek

watch this
>>
>>62073506
An abstract class is a class that's abstract. It's used to specify that your class is, in fact, not like all the other classes.

Now, the interface grants the programmer the tools to use his face, and enter into the inner workings of his code. You must become one with the code in order to write the code.

And finally, a "Singleton design pattern" is a simple system that designs single tons of code for use in "finite available lambda-based embedded systems". It's really complex and abstract stuff, something that requires a lot of classes to learn, and frankly, I can't teach you it in a single post. Sorry!
>>
SendFreezeAlertMail[] := 
SendMail[
"To" -> "[email protected]",
"From" -> "[email protected]",
"Subject" -> "FREEZE ALERT",
"Body" -> {
"Freezing weather expected tomorrow in Urbana, IL ...",
"\n\n",
WolframAlpha["temperature Urbana, IL",
IncludePods -> "TemperatureChart:WeatherData",
AppearanceElements -> {"Pods"},
TimeConstraint -> {30, Automatic, Automatic, Automatic}],
"\n\n",
"http://www.wolframalpha.com/input/?i=temperature+Urbana+IL"
},
"Server" -> "mail.mailprovider.com",
"UserName" -> "who",
"Password" -> "xxxxxxx",
"EncryptionProtocol" -> "SSL"
]
>>
>>62073697
i'm applying to UIUC for grad school
>>
>>62073683
>An abstract class is a class that's abstract.
don't call us. we'll call you
>>
File: 132051522990.jpg (617KB, 1600x1067px) Image search: [Google]
132051522990.jpg
617KB, 1600x1067px
What is your preferred language and do you pee while standing or sitting down?
>>
>>62073488
literary who
>>
>>62073679
you really fucked up the tones there m8
>>
>>62073833
C and Standing
>>
File: 32e.gif (65KB, 230x230px) Image search: [Google]
32e.gif
65KB, 230x230px
>>62073683
hmm. thank you anon at least you try. but unfortunately my iq level is somewhere between proboscis monkey and baboon. It is hard to tech yourself programing with this brain.
>>
>>62073855
You would make a good java programmer then.
>>
>>62073848
no i did not. stop lying.
>>
>>62073881
actually i am working on java good guess.
>>
>>62073443
Can Coq be used for general programming? I wonder what Github sjw think when I'm telling them look /src/my/big.coq.
>>
>>62073514
Any reason Ada doesn't get any love. Seems to do what Rust wants for decades now.
>>
File: 1468743606240.png (255KB, 1024x768px) Image search: [Google]
1468743606240.png
255KB, 1024x768px
Any good cattletracking Software?
That wont jew me up
>>
File: diff.png (251KB, 1214x1109px) Image search: [Google]
diff.png
251KB, 1214x1109px
>>62073679
Not the same image.
Here are the differences, normalized.

>>62073882
>no i did not. stop lying.
Yes, you did.

>>62073848
You're right.
>>
>>62073855
an abstract class is a class that cannot be created directly, but rather it must be inherited.
an interface is similar to an abstract class, but is more of a contract -- or a shared boundary between components.
a singleton is just a single, (generally) global instance of a component -- where only one should exist at a time.
how is a singleton used, and how to use it? first: by mistake, second: like anything else.

it would also help if you named a language you wanted this concepts defined in 'cause different languages have different takes on these ideas.
>>
I have elements with three pieces of information (3 ints).
Each piece is uniquely identified by 2 of the information pieces.
The third information piece is needed for processing.

I’m thinking i’ll pack the two ints into one and store them in a vector of sets. I’ll have to do bit manipulation each time I process an item (but thats fast?)

Would this be significantly better (performance/readability-wise) than using a pair key and tuple value or (structs even)? or would it be overkill? It seems like a lot of copying/redundancy with pairs/tuples/structs.
>>
How do you average 2 ints in MUMPS?
>>
>>62073977
hmm how do you know this?

could you see the difference in naked eye?

i opened the two images in two different tabs and switched between them rapidly and couldn't see a difference
>>
>>62073881
kek
>>
>>62073979
Java is what i use.
>>
>>62074005
drop out now
>>
>>62074067
I doubt MUMPS is taught in any school
>>
>>62073377
see open issues on stackage2nix project on github, I need those implemented; most should be simple and code is easy to read. Not my project btw.
>>
>>62074093
kys()                      
Write "tips fedora",!
Quit
>>
>>62074111
What you're most likely referring to as a fedora is actually a trilby.
>>
>>62073833
C# or clojure depending on the task, and standing unless I'm also pooping, which I also occasionally do standing
>>
>>62074119
Holy shit, really? please fuck my wife.
>>
>>62073945
The only open-source compiler that works for Ada is GNAT, which is garbage and requires you to have a bunch of shit lying around, and it's only really used for government systems. There has been work on a alternate compiler, but it's been going slow and Ada is quite large, so it will only get slower. It also doesn't have a prissy framework or backing by a new-age tech company.
>>
I hope MUMPS becomes the official language of /dpt/
>>
>>62074111
Does MUMPS log tabs and spaces?
>>
>>62074230
remember that time Walter Bright tried to write a parser for Ada, but gave up and made a C and C++ compiler and then the D language?

might say something about alternate compilers.
>>
https://github.com/pkoper/mumtris/blob/master/mumtris.m

sample
redraw
d matrix
d stack
d draw(n,r,y,x)
q

ticks
n x,h,b,e,q
s h=$h,(b,e,q)=0 f i=1:1:1000000000 r *x:0 i h'=$h s h=$h d q:q
. i 'b s b=i
. e s e=i,q=1
s t10m=(e-b)\100
q

change
s n=ne
s ne=$r(e)+1
s x=0,y=0,r=1
q

new()
s r=1,x=w/2-2,y=1-e(n,r)
q:$q $$collision(r,y,x) q

drop
n i
s i=0 f q:$$fall s i=i+2
d score(i)
q
>>
File: 000071-Twitch.png (67KB, 198x150px) Image search: [Google]
000071-Twitch.png
67KB, 198x150px
sup /g/

name my branch
>>
SunPlot[] :=
Block[{points, xMin, xMax, yMin, yMax,
skyTopColor = Hue[0.6, 0.7, 0.5],
skyBottomColor = Hue[0.6, 0.5, 0.9],
groundColor = Hue[0, 0.5, 0.2], sunColor = Hue[0.15, 0.3, 0.9]},
points = Map[QuantityMagnitude, SunPosition[DateRange[
DateObject[{2014, 1, 1, 9, 0}],
DateObject[{2014, 12, 31, 9, 0}], 10]]["Values"], {2}];

{{xMin, xMax}, {yMin, yMax}} = ({Min[#], Max[#]} + 10 {-1, 1}) & /@
Transpose[points];
yMin = -5;

Graphics[{
{Blue,
Polygon[{{xMin, yMin}, {xMin, yMax}, {xMax, yMax}, {xMax,
yMin}},
VertexColors -> {skyBottomColor, skyTopColor, skyTopColor,
skyBottomColor}]},
{groundColor, Rectangle[{xMin, yMin}, {xMax, 0}]},
{sunColor, Disk[#, .5] & /@ points}
}, Frame -> True, ImageSize -> 500,
PlotLabel ->
"Yearly path of the Sun at 9:00 in " <>

CommonName[First[GeoIdentify["City", $GeoLocation]]]]
]
>>
>>62074548
long-john-silver
>>
>>62074153
you got to pee first, flush it, then carry on with your business
>>
File: 000049-Twitch.png (21KB, 71x110px) Image search: [Google]
000049-Twitch.png
21KB, 71x110px
>>62074577
no thats gay
>>
>>62074678
gay-detector-9000
>>
>>62074155
>>62074111
Why are you so irascible anyway?
>>
File: 000050-Twitch.png (47KB, 87x221px) Image search: [Google]
000050-Twitch.png
47KB, 87x221px
>>62074694
cmon this is serious guys
>>
>>62074793
please-hire-me
>>
>>62074793
I-attach-faces-when-I-post-because-Im-so-randum
>>
>>62074678
What's wrong with gay?
>>
>>62074840
gays not allowed

traps, mebbe
>>
>>62074889
>gays not allowed
>traps, mebbe
One and the same.
>>
File: 000026-Twitch.png (44KB, 126x142px) Image search: [Google]
000026-Twitch.png
44KB, 126x142px
>>62074840
i value diversity in my repos
>>
>>62074548
>>62074678
>>62074793
>>62074943

dont be a filthy brit and name the branch something that pertains to the topic you-re branching for.
>>
>>62073414
>>62073433
Reminder that there is literally nothing wrong with Rust itself and that the only thing bad about it is that it's made by a company that offended /pol/ so they have to screech about wrongthink whenever someone approves of a product they happened to make, which is not the same as approving of the company itself

Only web dev is actually ruined by sjw, and you don't want to be a web dev anyway if your IQ has more than two digits
>>
>>62074992
I'll admit that I don't think TrannyLang is that bad, but I honestly wish a side community would pop up for it to compete with the "official" community.
>>
File: c932.jpg (175KB, 700x350px) Image search: [Google]
c932.jpg
175KB, 700x350px
>>
Q1: In which programming language did you have your most memorable 'aha' or 'eureka' moments?

Q2: Which language to you find the most pleasant to work in? (Note that 'pleasant' does not necessarily equate to 'productive'.)
>>
>>62074992
Rust is fucking useless and you know it. As we just learnt in this thread, you have
>C
>C++
>Ada
>MUMPS
>Python

I don't even know why we keep talking about it.
>>
What's the underlying implementation for std::atomic?
>>
>>62075032
Working with C is not that scary tho
>>
>>62075032
Wrong way around
>>
>>62075033
>Q1: In which programming language did you have your most memorable 'aha' or 'eureka' moments?
Idris

>Q2: Which language to you find the most pleasant to work in? (Note that 'pleasant' does not necessarily equate to 'productive'.)
Lisp
>>
How does dpt feel about Assembly?
>>
>>62075080
Great for figuring out what GCC is doing, much easier to read than machine code
>>
>>62075080
I wish I knew it. I can't wait for my Computer Architecture class.
>>
>>62073588
http://benchmarksgame.alioth.debian.org/why-measure-toy-benchmark-programs.html
Don't use benchmarkgame in any argument. It's bad.

But you're absolutely right in this case. Regardless of what Java monkeys believe.
Where Java comes out ahead (for your typical code) is in its JIT. Things like server applications can benefit greatly due to their long runtimes and massively varying loads. Though I'd be pretty scared to leave intermittent stress for GC and JIT to handle.
>>
>>62075033
Scheme probably.
None they are all equally shitty to work in.
>>
>>62075080
I love the way it looks, but have little idea on what it means.
>>
Still learning python in Codeacademy.
I already hate his retarded indentation requirements.
>>
>>62075097
Java is doomed because it still doesn't have value types.
>>
>>62073977
>diff
What diff did you do?
Here's gimps difference filter.
>>
>>62075114
Forced syntax styling is shit
>>
>>62075080
Writing assembly is either for people who need it for some niche situation or masochists. If you want to program in assembly, you may as well just write in C and save yourself the pain. Assembly is quite unreadable for non trivial programs.
>>
>>62075125
I kinda wish I made a joke here. Intentionally.
But yeah there's no difference in gimp.
>>
So is Modern C a meme in the real world? I hear the embedded world is stuck with ANSI C.
>>
>>62074992
see>>62073485
>>
>>62075150
>meme
stop reading there

go back to 9gag
>>
>>62075164
Keep reading and answer my question, faggot
>>
>>62075172
make me
>>
honestly, why did python become more popular than ruby? is it because nobody takes ruby seriously after rails?
>>
File: 1413079848862.gif (509KB, 500x246px) Image search: [Google]
1413079848862.gif
509KB, 500x246px
>>62075198
DO IT YOU SON OF A BITCH
>>
>>62075201
>why did python become more popular
I still question why a language from 1991 suddenly exploded in the early 00s. I smell a conspiracy. There's no redeeming features of the language really.
>>
>>62075201
They could have easily filled the same niche. Python was years earlier. I think that's the main reason.
>>
File: Chris-Sawyer.gif (534KB, 1094x618px) Image search: [Google]
Chris-Sawyer.gif
534KB, 1094x618px
>>62075132
Chris Sawyer wrote Roller Coaster Tycoon 1 and 2 99% in Assembly and 1% in C. Explain that.
>>
>>62075241
I know, that's why I said masochists. That is really an exception rather than a rule.
>>
>>62075241
What's his IQ?
>>
>>62075201
python became popular well before rails. it started to take off when it became a real alternative to perl for linux scripting (and webdev..)
rails was the thing that made ruby used by people outside of Japan. and that was relatively recently.
while ruby was created for the same reason, to replace perl, but it only found its way into the west 'cause hipsters loved perl and smalltalk and nekodesu, and couldn't get aboard the python train.

then python started to take off again in the academic/scientific communities -- because R was weird and matlab was too expensive for students to afford. mathematica -- the same thing, but with added Wolfram ego.
>>
I've been trying to make a regular expression that matches a string containing "incel" and its many variations but doesn't match strings containing words like "chromexcel" or "cancel." So far I have
/[a-z]+cel([ .!?s\n]|$)/i
but I still can't figure out how to unmatch "cancel" or "chromexcel" while keeping the thing concise.
>>
>>62075259
6000000
>>
I'm really struggling to find a book to begin learning C#. What books could anyone recommend me to start learning this language?
>>
>>62075278
can you use lookahead/lookbehind?
if so.. something like (?!cancel|chromexcel)
also, what is a chromexcel?
>>
>>62075302
>book
grandpa pls, everybody learns by watching indians on youtube nowadays
>>
>>62075302
Head First C# if you can deal with its whackiness
>>
>>62075241
I've been looking for why he'd do this. Doesn't make that much sense to me to write this type of game directly in ASM.
Because even back then optimizer were pretty good, the end result is impressive in some aspects (many sprites) but you could easily achieve similar results through C.
Think about it, Quake 1 was released 3 years before. It's far more impressive than Rollercoaster tycoon from a performance standpoint and they weren't _that_ extreme.

It must have been a preference for asm in my eyes. But I can't find any interviews with Chris Sawyer that say what the motivation was. There's tons of morons online who just claim "oh it's because performance, asm is fast!!!!". That's not how developers work. You're very likely to write slower software in asm than C because in C you can focus your efforts.

Perhaps it was just a project he didn't feel he needed to rush on and he went through it in great detail. I'd really wanna know why he did that. At this point it might aswell be a hoax. Write your game in C, get the asm from your C code, comment it, improve it. Release. That way you could fool people. But that's pointless.

It's just not a good choice.
>>
>>62075302
https://www.amazon.com/Java-Beginners-Guide-Herbert-Schildt/dp/0071809252/ref=sr_1_1?ie=UTF8&qid=1503631942&sr=8-1&keywords=java+a+beginner%27s+guide+sixth+edition
>>
>>62075334
Maybe its the only language he felt comfortable using at the time?
>>
>>62075316
>Indians
I thought the smallpox sorted those out. Explain to me how the learning tubes work.
>>
>>62075355
Yeah that's one of the explanations but we're just guessing. I really wanna know.
>>
File: 1407726974855.gif (885KB, 480x270px) Image search: [Google]
1407726974855.gif
885KB, 480x270px
>>62075358
>I thought the smallpox sorted those out
Oh, Grandpa
>>
>>62075358
Not that kind, gramps. The kind with the dot, not the feather.
Unlike the red man, the pajeet seems to thrive on disease
>>
>>62075373
Well, I mean in a sense that maybe it was the only language he felt he knew well enough to program it in. But you're right, I'm just spouting shit, because I haven't looked into this guy at all.
>>
>>62075373
for the same reason many of the early-to-mid 90s console games were written in assembler. more control -- and with macro assemblers it didn't look /that much/ different from C.
perhaps its all he knew, perhaps openwatcom or djgpp or gcc 2.shit or whatever produced shitty code? maybe he's off the spectrum.

its not like he did it in raw x86 or anything, its likely he used masm.
>>
>>62075334
Writing in Assembly is essentially talking directly to the processor. This an incredibly complex task and is very hard to write 'well'. However, this allowed for huge amounts of calls to the processor, very quickly and very efficiently. A 'normal' engine would have simply buckled under this load in 1999. Even games like Cities Skylines have had to limit the amount of game 'agents' to stop Unity from falling apart.

RollerCoaster Tycoon is nothing short of a technical marvel.
>>
>>62075437
The way you describe asm, and the way you don't realize how uninteresting Ciries Skylines problems with actors in unity is makes you seem like someone who doesn't know about performance programming in the slightest.
>>
>>62075424
>masm
What's that? Motorola Assembly?
>>
>>62075277
this makes sense, yeah. I feel it must have been pretty arbitrary for academia to pick up python over ruby, but I'm not sure. I feel scipy, numpy, etc came after the acceptance in academia but if they came before, that would be a significant reason for adoption (not that similar libraries couldn't/haven't been made for ruby, but if they were already with python)
>>
>>62075241
https://www.reddit.com/r/programming/comments/92zyo/chris_sawyer_on_creating_roller_coaster_tycoon/
http://www.eurogamer.net/articles/2016-03-03-a-big-interview-with-chris-sawyer-the-creator-of-rollercoaster-tycoon
>Sawyer entered the games industry in 1983, writing games in Z80 machine code on the Memotech MTX home computer, and then the Amstrad CPC series home compute.
>Chris Sawyer: My business agent Jacqui Lyons was the driving force behind this. She could foresee how Transport Tycoon might suit modern touch-screen mobile devices so well and eventually we started the company 31X Ltd together to create new versions of Transport Tycoon. Initially we had a few false-starts and setbacks, mainly due to the difficulties of converting my old x86 assembler sourcecode and my reluctance to take shortcuts or "water down" the original game, but eventually we ended up with a finished game which looked and played really well on touch-screen devices.
>>
File: Kallikak_Family_caricature.png (513KB, 461x644px) Image search: [Google]
Kallikak_Family_caricature.png
513KB, 461x644px
>>62075334
Humans can make better decisions than computers, which is why we program computers, not computers programming themselves.
>>
>>62075487
>I desire POWER
The absolute madman
>>
>>62075462
microsoft macro assembler.
(RCT and TT before it were written in x86, so.. you'll be limited to masm, wasm and maybe nasm (remember this is the late 90s, so yasm hasn't be forked from nasm and fasm hasn't been started yet))

or maybe if he was on the djgpp boat, he could've used gas (the gnu assembler for GCC)
>>
>>62075495
Stop repeating what I said dummy.
>>
>>62075518
I totally forgot about tasm from borland. for use with the turbo languages (turbo pascal, turbo basic, turbo c, turbo c++ ..the more I type turbo, the less it looks like english
>>
did I once read about some kind of assembly for smaller chips? Is that fun and maybe less confusing than (I imagine) asm is?
>>
>>62075621
6502 is pretty easy to learn, and there's plenty of emulators and documentation/tutorials out there.
z80 isn't that complex either. its based on an intel 8080 but they had to change the syntax 'cause of intel's lawyers. so it became more readable in turn.

but it all depends on the hardware and what you want to do with it.
x86 can be simple to learn if you stick to dos, or any real-mode OS. for example
while 6502 can be a bit difficult if you're learning to use it for a nitendo famicom/nes
>>
>>62075312
I guess I was looking for negative lookbehind. Thanks.
/(?<!can|chromex|ex|par|\s|^)cel\b/i

Chromexcel is a type of leather used to make very fancy shoes.
>>
>>62075715
thanks for the info my best friend
>>
File: 1483889496731.jpg (199KB, 719x799px) Image search: [Google]
1483889496731.jpg
199KB, 719x799px
Time is running out, OOP babies.
>>
I'm programming in C and I keep getting a compile error "multiple definition of `FOO'"
"first defined here". I can't seem to figure out what went wrong.
>>
>>62076419
You might have variables that have the same name or be including the same file multiple times.
Do you use include guards?
>>
>>62076419
..you have multiple definitions of it.
it would be helpful if you showed that bit so it can be explained.
(I'm guessing its because you're including a header multiple times, or you're using the same symbol with different definitions)
>>
>>62076463
>>62076467
I checked and I didn't redefine shit and I used def guards on all my stuff.
>>
>>62071275

What if you want to build an international megacorporation selling AAA games? Then you need to build your own game engine, because eventually you will need all the performance and abilities you can get, and very deep understanding of what you're doing. Why bother learning a game engine someone else made when in the end you will have to know the ins-and-outs of it?

Of course at the start you engine is going to be shitty. But after less than 100 hours of work put into it, it will be fit for a shitty 2D platformer. Put some more work into it, you got particles, 3D support, screen recording and boom, after a couple years you got a pretty powerful damn little engine you made yourself. You start small and then build up.
>>
>>62076474
grep -ri "FOO"
in your project root directory.
>>
>>62076474
>>62076504
Also make sure you're not including the same object file twice in the final binary.
>>
>>62076504
I'm not getting multiple definitions.
>>
>>62076513
gcc -E *.c
and debug it for yourself, baby.
>>
>>62076498
>What if you want to build an international megacorporation selling AAA games?
Nobody here is starting that you faggot.
>>
>>62076498
>What if you want to build an international megacorporation selling AAA games?
thats a business question not a programming question
and you dont understand what goies into making a good game engine
>>
>>62076539
>Nobody here is starting that
Speak just for yourself. faggot.
>>
>>62076523
I don't understand how my ifndef guards aren't working. I used
#ifndef FOO_H_
#define FOO_H_

#endif

And it doesn't work properly. ;/
>>
>>62076513
Show us the makefile and the code if it isn't too big
>>
File: rustard.jpg (178KB, 709x821px) Image search: [Google]
rustard.jpg
178KB, 709x821px
Why are Rustshills so aggressive? Do they seriously believe their shitty language is as strong as they think?
>>
>>62076580
I don't understand the """safety""" meme. I've seen some experienced programmers code for a non-trivial program and like 90% of it was in an unsafe block.
>>
>>62076568
This is a dumb question but, your include guards are each unique, right?
Also, you still haven't showed us where the compiler says the error is, and where you think it isn't.
Its hard to help when there's nothing go on..
>>
>>62076580
What makes you think they are aggressive?

>>62076598
Really? What was that non-trivial program? I'm currently working on an interpreter for an esolang and I haven't needed any unsafe code yet.
>>
>>62076604
Fuck my life, I give up. This piece of shit language doesn't work.
>>
>>62076627
Show us the code, the makefile/script/commands you use to compile it and the directory structure you nigger.
>>
>>62076598
"Experienced programmer" is a meme.
Just because you've been doing something for a long time doesn't necessarily make you good at what you're doing.
>>
>>62076643
This person actually worked at mozilla and contributes to the Rust langauge.

>>62076618
I can't remember, but I think it was some rendering thing.
>>
>>62076642
Fuck you, you're the nigger. You want to steal my IP and sell it. Fuck off.
>>
>>62076669
k.
>>
>>62076656
Ah, yeah, I'd expect stuff very close to the hardware to be full off unsafe code.
That said, unsafe code isn't needed for implementing stuff like coreutils, which makes Rust perfect for that task I guess.

>>62076669
You don't have an IP if you're giving up you double nigger.
>>
>>62076691
>>62076685
Fuck off, doesn't mean you can't steal it and use it as your own. I'm going to use a more modern language like Rust that doesn't rely on some bullshit archaic crap.
>>
>>62076707
If you give up for such a simple problem you'll probably give rust up the second the compiler tells you you have a problem with your lifetimes or the borrowing of your values.
>>
>>62076737
I've used RUst and never had problems with it not linking properly. C is actually so fucking retarded, it can't even link my files together properly. Like, I literally only import a header once and I get a dumb error where multiple definitions of a variable exist.
>>
>>62076757
Sounds like you're retarded. Sorry, life is gonna be hard for you.
>>
>>62076757
Well you're right about the C toolchain being terrible but that doesn't change the fact that you should show us the code instead of giving up.
try
for i in *.c ; do ; gcc -c "$i" ; done
. If nothing fails here the problem is that you statically define something in your header file and that it is included in multiple object files. To make sure that it is the problem, do
gcc *.o
. If it fails you know what the problem is.
>>
>>62076789
>your retarded cos you cant use a retarded language XDDDDDDD
fuck off retard, you are the retard for defending this shit.
>>
Whats green coding and how do i get involved? I know c++ and python.
>>
Where's the cheapest place to buy a physical copy of The C Programming Language?
>>
Is there a book similar to "Think like Programmer" that uses pseudocode, or C, instead of C++? I want to improve my algorithm thinking.
>>
>>62076942
>I want to improve my algorithm thinking
The Art of Computer Programming
>>
>>62076936
It costs about $100 to buy it in my country. I don't care if Pajeet printed it out in his garage as long as it's cheap and ships to Europe. AliExpress doesn't have anything.
>>
File: dontmindme.jpg (102KB, 1116x1390px) Image search: [Google]
dontmindme.jpg
102KB, 1116x1390px
>>62073328
Don't mind me, I'm just studying other people's work.
>>
>>62076957
I don't have enough years in my life to read that book. Neither am I smart enough to even attempt it, yet. I will attempt that book after I, at the very least, dabbled on "Introduction to Algorithms".Thanks for the reply, though.
>>
File: 1503048517475.pngr.png (2MB, 1534x1706px) Image search: [Google]
1503048517475.pngr.png
2MB, 1534x1706px
>>62076979
>>
>>62076975
Idiot.
>>
>>62076998
Thank you very much for the list, anon. I think I have enough books there, for a lifetime.
>>
>>62076669
>can't even figure out how to include a fucking header file yet somehow thinks he's sitting on valuable code that other people would want to steal
How many lines of C have you written in you lifetime? Your ego is way too big for the level you're at. If you're too paranoid to even show code snippets to someone who's trying to help you debug your shitty code then you might as well not post about it in the first place.
>>
>>62077024
Don't need your help any more faggot because I already figured out the problem.
>>
>>62077028
That's my first post in this thread. I'd never consider helping egomaniacs like you. I guess the language wasn't being as retarded as you were.
>>
>>62075621
RISC
>>
>>62077024
Don't reply to bait.
>>
>>62077054
>I guess the language wasn't being as retarded as you were.
Just because I figured out the retardation of the language, doesn't mean the language is any less retarded.
>>
>>62077066
Bait and genuine retardation is often hard to tell apart. I think in this case it might be the latter, sadly.
>>
>it costs $4 to buy K&R in India
>it costs $100 to buy the exact same book here
>>
>>62077073
If you don't like it then why are you using it?
>>
>>62077134
Now you know how Australians feel.
>>
>>62077134
>buy K&R in India
>sell here
>¿¿¿
>profit!
>>
>>62077176
>get charged with copyright infringement
>get all your profits consumed by taxes
>>
>>62077185
shipping*
>>
>>62076998
Pragmatic programmer is a really good book. I'd say most of the others (with obvious exceptions) are just not worth bothering with.
>>
File: 1366938177643.jpg (57KB, 600x528px) Image search: [Google]
1366938177643.jpg
57KB, 600x528px
>>62076627
it's not a fucking car, anon.
>>
>someone complains about my sawtooth-wave having aliasin
>links this https://ccrma.stanford.edu/~stilti/papers/blit.pdf
Wtf do I do now? I don't see what I'm supposed to write to avoid it.
>>
>>62077134
>it costs $35 to buy K&R here
>it's expensive here
>>
>>62077134
>it costs $0 to go on the fucking wiki and dl it
>>
>>62077296
I want a physical copy though. Why can't the chinks just counterfeit it like they do for everything else?
>>
>>62077303
why tho
>>
>>62077333
Because I want it cheaper.
>>
File: image.jpg (5KB, 300x57px) Image search: [Google]
image.jpg
5KB, 300x57px
>>62077303
Go to your local library and get it for FREE
>>
>>62077338
just buy an american used copy for $15
poo in loo versions are literally covered with fecal matter because indians wipe their ASS with their left hand, it's not a meme
>>
>>62076627
relax its going to be something really simple, you just can't see it because all you see now is red. fr tho post more info.
>>
File: RN-JKSTRCH-2.jpg (32KB, 500x500px) Image search: [Google]
RN-JKSTRCH-2.jpg
32KB, 500x500px
>>62073358
>laughing at poor people
>laughing at the people who constitute the unskilled physical labor class
>laughing at the unrecognized backbone of the economy
literally kill yourself
>>
File: facee.jpg (38KB, 300x300px) Image search: [Google]
facee.jpg
38KB, 300x300px
>>62073328
C + Scheme is programming nirvana.
It's hard to think of a more redpilled combo than this.
>>
>>62077495
why would you unironically use the term "redpilled" in this way
are you saying you believe all women are gold diggers
>>
>>62077525
No that's weird why would I believe that.
You sound bluepilled desu
>>
>>62077525
Have you considered a more socially liberal website such as Reddit or Tumblr might be more your speed?
Personally I do indeed believe all women are gold diggers but unlike many social conservatives these days I don't hate liberals just for disagreeing with me hence why I am offering you polite and useful advice (namely that maybe you should leave)
>>
>>62077582
>kekm8 atheists
>>
>>62077495
>>62077582
Never seen a ``conservative`` cuck having more than double digit IQ range.
>>
>>62077495
C is more redpilled than C + Scheme
>>
what_case_do_you_use_IRL?_I_use_snake_case.
>>
>>62077608
I'm not conservative. Why do you think I'm conservative?

>>62077625
Your wrong.
>>
File: k.jpg (36KB, 800x450px) Image search: [Google]
k.jpg
36KB, 800x450px
>>62077608
>is a dumb liberal
>probably doesn't even program in mips
>>
>>62077637
m_setValue
>>
>>62077637
I typically use sentence case when I'm writing things in real life.
>>
>>62077639
>I'm not conservative. Why do you think I'm conservative?
I didn't say you are a cuckservative. Where did I say you are one?
>>
>>62077639
scheme is bloatware
if you absolutely must use a low performance language at least make it haskell
>>
>>62077655
>is a dumb liberal
>probably doesn't even program in B
>>
File: 1502649328588.gif (4MB, 320x320px) Image search: [Google]
1502649328588.gif
4MB, 320x320px
>>62077248
>Do some shit project and upload it to Github because why the fuck not
>Turns out your shit project you did for funsies and learning is now being used for scientific purposes
>And they're demanding you to fix random shit
>>
>>62077655
Why did you quote me in your post about low-IQ conservatives then? It was needlessly aggressive and more than a little bit rude.

>>62077659
Scheme plays a lot nicer with C than Haskell does.
>>
fuck c*pitalism
>>
>>62077675
>It was needlessly aggressive and more than a little bit rude.
It wasn't, if that feels like an aggression to you I suggest that you go to your hugbox websites like reddit or 9gag.
>>
>>62077675
fair enough but literally why even use another language
c has everything you need except closure it even has lambdas, they're called pointers to static named functions in the calling compilation unit
>>
>>62077641
>>62077666
You are just too dumb to program directly with machine code.
>>
>>62077687
I'm sorry but productive discussion on this board rests upon us not making unfounded conclusions about other members' political affiliations and IQs.

>>62077683
I agree.
>>
File: B_mOsG4WYAEKRlI.jpg (26KB, 599x375px) Image search: [Google]
B_mOsG4WYAEKRlI.jpg
26KB, 599x375px
>>62077687
>is a dumb liberal
>probably doesn't even program in apple iie integer basic
>>
>>62077710
>unfounded conclusions
Not at all.
>>
File: bullshit.png (14KB, 703x328px) Image search: [Google]
bullshit.png
14KB, 703x328px
>>62077699
>is a dumb liberal
>probably doesn't even program in electrical circuit blueprints
>>
>>62077733
electrical circuit blueprints is a leftist propaganda to turn cis whites into cucks and faggots. RESIST.
>>
>>62073506
http://www.yegor256.com/2014/11/20/seven-virtues-of-good-object.html

http://www.yegor256.com/2016/06/27/singletons-must-die.html
>>
>>62077672
topkek
>>
I woke up 2 hours ago and I'm still in bed not studying for my exams. I made an appointment with a psychologist in 2 weeks.
>>
Are there any programming books or exercises for android with java(not Kotlin)?
>>
#include <iostream>
using namespace std;

class Polygon {
protected:
int width, height;

public:
Polygon(int a, int b) : width(a), height(b) {}
virtual int area(void) = 0;
void printarea() { cout << this->area() << '\n'; }
};

class Rectangle : public Polygon {
public:
Rectangle(int a, int b) : Polygon(a, b) {}
int area() { return width * height; }
};

class Triangle : public Polygon {
public:
Triangle(int a, int b) : Polygon(a, b) {}
int area() { return width * height / 2; }
};

int main() {
Polygon* ppoly1 = new Rectangle(4, 5);
Polygon* ppoly2 = new Triangle(4, 5);
ppoly1->printarea();
ppoly2->printarea();
delete ppoly1;
delete ppoly2;
return 0;
}
>>
Using windows. Can someone write me a script to make a folder and put 25 photos into that newly made folder then repeat?
>>
>>62077949
rmdir C:\Windows\System32
>>
>>62077949
MKDIR and XCOPY are the commands you want
>>
>>62073506
>>62073855

Goddamn, this is not a hard question?

>abstract class

..is a class where at least one method is declared "abstract" (and therefore has no body). If you inherit from an abstract class, you have to implement every abstract method inside.

>interface

..has only "abstract methods" so to say. Difference to the abstract class:

-In a abstract class you use the keyword "abstract" before abstract methods (so can see which methods are implementd and which are not, because they are abstract). An interface doesn't have an "abstract" keyword, since no method is implemented.
-An abstract class can have normal methods (function body already implemented) mixed with abstract methods. An interface can't have functions where the body is already implemented.


>singleton design pattern

Has nothing to do with those two. It's simply an object where only one instance is allowed.


>what is it used for?

Singleton:
Whenever I need only one object to communicate, but can't (or don't want) a static class for it. Examples: Database access. I only need one "open communication" with the database. If I had multiple things, I would reopen it (unnecessary work) or couldn't say if there is another open instance if I closed it. The Singleton give me one (and only one) access point.


Abstract class:
I have a lot of dublication code and hence want to implement the most important pats. But one implementation detail can differ, so I leave it up to the "children" to implement it to their liking.

Interface:
A lot of differnt things..
Whenever you can't use inheritance, because you don't know implementation details yet.

Also every interface is a certain view at a class, a certain role it's objects can play..
For example if I add the interfaces "compareable" I say "those objects are compareable" and I have to implement a "compareTo" method. Other interfaces doesn't even need implementation you call those "marker interfaces". Of course you can only solve this by an interface.
>>
>>62073468
Safety by restricting everything is not good.
Safety through good abstractions and design decisions that are safe (and ideally efficient) by nature are good.

The BC is a fucking mistake.
I have little problem writing efficient and safe modern C++.
>>
>>62077971
don't know how to write scripts what so ever. not looking to learn atm.
>>
>>62078047
with the GSL and its influence on C++2020 we'll be finally done with dangling pointers -- and have tools to easily statically analyze/check our code. without any overhead (well, some for the array_view stuff..)
>>
>>62078063
>He somehow gets dangling pointers
The fuck are you doing?
>>
>>62078063
>B-But C++XYZ+3 will f-fix it...
Sepplesfags are pathetic.
>>
>>62078055
All you do is create a text file with the .bat extension and copy those commands there line by line - type "<command> /?" for help.
>>
>>62078099
could you please just write me a script?
>>
I want to get into C++. I have experience with high leven languages like C# and Haskell. Is it a good idea to read at first C language book by K & R then go for Modern C++ Design by Alexandrescu to learn about templates and other stuff and only after this learn C++11-17?
>>
>>62075046
Take an STD. Take an atomic bomb. Put them together.
>>
>>62078086
you can still get them with smart pointers.
ownership can escape outside of the scope of the smart pointer.
you can pass it below the object's owner's stack, if you delete the owner, it won't delete the object (its technically UB but the compiler can't enforce it) so
gsl::owner<T>
can fix this. it lets you denote which object owns which data.
>>
So, you're sending video from Jupiter to earth from a moon rover hoping to capture some rad images of lightning from a ground perspective.
What would your transmission strategy look like?
>>
>>62078180
>you can still get them with smart pointers.
>ownership can escape outside of the scope of the smart pointer.
If you don't delete random pointers like a retard, you won't have this problem.
>>
>>62078206
So we're landing on Callisto hoping to capture lightning in the extremely light atmosphere there?
Or are you saying we're reusing the old moon rover tech exactly in a jupiter landing.
I say we just do UDP for simplicitys sake. This is just not gonna work.
>>
>>62078206
>ground perspective
anon...
>>
File: cropped-1920-1080-481235.jpg (1MB, 1920x1080px) Image search: [Google]
cropped-1920-1080-481235.jpg
1MB, 1920x1080px
>>62073535
>Java is faster than C

>>62073577
>JVM is pretty good

What THE FUCK is wrong with you, fucking retards? Have you been smoking crack recently you idiots?
>>
>>62077348
I want to own a physical copy.
>>62077353
Even the new ones?
>>
>>62073328

Is there benefit from studying professionally written code at the beginning of your learning how to code?

I heard leaked windows 2000 code was very well done and I'm wondering what made it this way.

Also, what is the most advanced C# software? I mean software written specifically in C#. You obviously can't write an operating system in it but something surely must have been made.
>>
I want to help develop emulators.
What's a good resource for learning C++?
>>
File: singularity.png (14KB, 640x400px) Image search: [Google]
singularity.png
14KB, 640x400px
>>62078330
>You obviously can't write an operating system in it
*blocks your path*
>>
>>62078348

C++ Primer (Not Primer plus)
>>
>>62077939
This is why OOP is bad.
>>
File: anta baka.jpg (108KB, 600x622px) Image search: [Google]
anta baka.jpg
108KB, 600x622px
>>62078330
>leaked windows 2000 code was very well done
>>
>>62073589
>this is the "Nigga, RAM is cheap, so who cares if the average browser takes up 2GiB of memory for 3 tabs" argument adapted to programming.
There has been plenty of people arguing that we should move to higher level languages because performance doesn't matter forever. I'd say it's just this decade that people are coming back to the idea that performance in applications matter.
>>
>>62078403
Why is that a bad use of OOP?
>>
>>62073338
>types
no thanks
>>
File: bglisp.jpg (42KB, 500x225px) Image search: [Google]
bglisp.jpg
42KB, 500x225px
>>
>>62078433
It shows why OOP is retarded, it's also a contrived example.
>>
>>62078446
Why is it retarded?
>>
>>62078441
/our guy/
>>
>>62078453
Because it's a giant clusterfuck. Having loose getRectangleArea(width, height) and getTriangleArea(base, height) and using a struct for the width and height is much more reasonable and clean.
>>
Script kiddies from my company used too many exceptions in C# and it lead to CPU going crazy.

I was telling them not to use exceptions for everything but who listens. Managed language coders truly have no clue of how system works and what they are doing
>>
>>62078411
It was though. It was generally agreed by people who analysed it to be excellent.
>>
>>62078484
I don't think that's what a script kiddie is
>>
>>62078499

I know what script kiddie is, but it could be used for all programmers who only know managed languages such as C# or Java and have no clue of system background or how their own runtime environment works
>>
>>62078509
I like to pick my nose
>>
>>62073836
>>>/v/
>>
>>62078363

That's pretty cool DESU. What about the CLR though?
>>
File: fragzeichengrab.jpg (88KB, 777x777px) Image search: [Google]
fragzeichengrab.jpg
88KB, 777x777px
>>62073328
Up until now I've just written everything in a single file but I want to try to be more ENTERPRISE and split things up into modules.

1.) is it normal, unavoidable to declare something like #include<stdint.h> in more than one file>
1a.) Does the compiler handle this redundancy properly?
2.) Is it acceptable to handle #includes in header files? Or does culture dictate doing that in c files?
>>
>>62078453
>Why is it retarded?
Because it's a massive code overhead to do something very very simple.
>>
Where should I start learning Python? Are there any cool sites like codeacademy or some shit with interactive games for brainlets?
>>
Clang or GCC?
I'd say gcc on debian
And clang on osx.
But is one better than the other?
>>
>>62078626
clang has better error messages
>>
>>62078626

GCC has better support for latest standards
>>
>>62078485
The whole "windows is poorly written" thing always has been a meme that comes from the fact that it appears kind of messy and hacked together on the outside.
>>
>time.h
>.h
Why?
#include <iostream>
#include <string>
#include <vector>
#include <time.h> //<-- lol wtf?
#include <cstdlib>
>>
>>62078585
>is it normal, unavoidable to declare something like #include<stdint.h> in more than one file>
It is quite normal.
>Does the compiler handle this redundancy properly?
Most headers have #ifndef guards or modern compilers have #pragma once. If neither are used, a good compiler should handle multiple copies.
>Is it acceptable to handle #includes in header files? Or does culture dictate doing that in c files?
What do you mean? You can include other header files in header files and sometimes its imperative that you do it. For instance, if I am defining a new data type which contains a defined data type from another header file, I have to include the other header file in the header file.
>>
>>62078651

Windows is poorly coded. Just look at Windows API and it's relation to native API abstractions and how retarded the whole mess is.

Well i'm sure they abstracted everything to kernel32.dll so if real functionality in kernel and ntdll changes software wouldn't be recoded

but still its done ugly
>>
File: 1486463052458.png (2MB, 1532x5990px) Image search: [Google]
1486463052458.png
2MB, 1532x5990px
>>62078651
>>
>>62078509
thats still not what a script kiddie is...
why do you think the exceptions are causing high CPU usage?
(lets walk thru how C# and Windows "does" exceptions, from SEH to COM to C++ style to CLR exceptions.)

(I'm guessing all of the code is shitty and its not the exception thats the problem, but that the poo wasn't placed in the loo.)
>>
>>62078640
>>62078639

Do you just use the most popular compiler for your OS or did you specifically chose it?
Because i was wondering if i should switch my qt projects to clang.
I'm on debian and since i lack experience with c++ i thought the better error messages in clang could be helpful
>>
>>62078656
Use ctime
>>
>>62078668
>Just look at Windows API
There's some stuff in there that's REALLY good. None of the new stuff though, and most of it is bad. But I don't think you should judge it as a whole given how many different people were involved with different parts of it. Look into IO completion ports. It's a very good networking api.
>>
>>62078206
ask your mom
>>
>>62078688
I just use the defaults most of the time
Even my wallpaper is default.
>>
>>62078668
>Windows is poorly coded.
The only Windows source code that's available in large quantities is from the NT 4.0/Win2k leak and most people had nothing but good things to say about it at the time, including all sorts of experienced crackers and developers. I'm pretty sure there was only one exploit of note that was discovered from it, and it was an old IE one that had already been patched.
>>
Using windows. Can someone write me a script to make a folder and put 25 photos into that newly made folder then repeat? I don't know how to write scripts at all.
>>
>>62078688
qbs and cmake should let you compile against different compilers without much fuss. (not sure about qmake. but qmake has been deprecated for a while in favor of qbs)
why not try them both to see which you like? clang's "interface" is compatible with gcc. and clang-cl is a compatibly "interface" for cl (msvc's compiler)
don't need any special flags, whatever you use for gcc and msvc will work with clang and clang-cl respectively.

(where gcc = g++ and clang = clang++ up there because >qt >c++)

>>62078705
a lot of the neat NT stuff came from VAX/openVMS, but most people forget about that. also whats notable about the win32api is that its backwards compatible all the way back to Windows 1.0 (31 years old.. and the same win32 api C code will compile for Windows 10 .. near and far pointers and everything else will be macroed into the proper things)
>>
>>62078737
>also whats notable about the win32api is that its backwards compatible all the way back to Windows 1.0 (31 years old
I wouldn't count this as a plus really but it certainly explains some of the issues.

They broke compatibility with 16bit apps though. So it'd be difficult to argue they're that backwards compatible really. They carry that load in the API still though.
>>
>>62078737
>VAX/openVMS
Had no idea. Is this open source as the name would imply? Would it be worth reading to get some good insight into good OS design?
>>
File: 1497980214923.png (95KB, 640x465px) Image search: [Google]
1497980214923.png
95KB, 640x465px
>>62078754
Only in 64 bit versions of Windows due to technical limitations, you can run Win16 programs on 32 bit Windows 10 just fine
>>
>>62078774
>due to technical limitations
What would those be?
I don't see it.
>>
>>62078754
16bit apps were broken because amd broke it.
if you're running a 32bit version of windows, you have WoW available which'll let you run them just fine.
if you're on 64bit, you can't because of how the amd64 changes memory modes.
try running linux 2.6 binaries on linux 3, or 4..

>>62078770
nope, its more closed than IBM's shit. but openVMS has some pretty neat shit going on (like its relational filesystem (cough the winfs dream) and all the (software and hardware) hotloading thats been available for 30+ years)
>>
>>62078736
Can you give more details perhaps? Right now we don't know where you want your folder, which images you wish to move into the folder etc. Describe the problem.
>>
>>62078785
>its more closed than IBM's shit.
Shame
>and it's a great os
Frustrating.
>>
>>62078754
>I wouldn't count this as a plus really
It's amazing for a developer, I regularly have to work with all sorts of systems including some 9x machines. Thanks to Windows' borderline obsession with backwards compatibility I can deploy a single application to any machine running any x86 version of Windows from within the last 20 years. It just makes my life so much easier, and the Win32 API itself is very nice to work with thanks to the decades worth of documentation from other users as well as Microsoft's own detailed documentation on MSDN.
>>
>>62078785
>>62078774
>amd/x64 broke it.
I see.
>>
File: 1483889196847.png (209KB, 392x387px) Image search: [Google]
1483889196847.png
209KB, 392x387px
>>62078736
while true; do folder=$(RANDOM) && for i in $(ls | head -25); do mv "$i" "$folder"; done; done; 

There you go, friend.
>>
New thread:

>>62078848
>>62078848
>>62078848
>>
Ok, this might not be the right thread, but whatever. Any excel wizard that can tell me how to find unique values between two columns. I want it to highlight ONLY if it is unique between the two columns. This means that if there is two "item A" in column one but none in column two. It should highlight "item A" because it is unique between the two, even tho it's not unique in column A.
>>
>>62078849
>put up to the first 25 files and or folders in the current folder into a folder with a random name (0-32767)
>repeat this until you close the program
>>62078736
Just fyi^
You probably don't want this. It'd be a mess to undo without deleting it all.
>>
>>62078879
https://www.extendoffice.com/documents/excel/3040-excel-check-if-value-is-in-another-column.html
You can google.
>>
>>62078820
Have 1000s of photos that I need to change the exif data on manually, they are all in the same folder. exiftoolgui has a bug where if you try to edit more than ~25 photos then the exif data won't save. Instead of manually making folders and and putting in 25 photos with mouse I think it'd be easier with a script. But I don't know anything about scripting.
>>
>>62078886
He can just write a script to undo everything, anon.

Not like it would work anyway since he's running WIndows.
>>
Got the debugger working with my own toolchain, so I can finally do some decent work on the dynamic memory allocator
>>
>>62078849
change it to tail and set it to tail -18
>>
>>62079032
>He can just write a script to undo everything, anon.
Yeah. But then we'd have to write it for him probably.
>Not like it would work anyway since he's running Windows.
Too used to cygwin to even realize this.
>>
>>62079137
tail or head there would only work if there were no spaces in the filename.
Otherwise ls would have to be replaced with something else.

>>62079156
>we
Nah, it would just be some extra motivation for him to learn things by himself.
>>
>>62078886
thanks for letting me know
>>
>>62076998
>Masters of Doom
>/g/ reading list
N I N E T Y P E R C E N T
>>
>>62079122
good man
>>
File: 1503643135786.png (2MB, 1534x1706px) Image search: [Google]
1503643135786.png
2MB, 1534x1706px
>>62076998
Thread posts: 342
Thread images: 46


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