[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: 315
Thread images: 36

File: 1485438720022.png (423KB, 720x720px) Image search: [Google]
1485438720022.png
423KB, 720x720px
Old thread: >>59294171

Please take your zealotry to another thread.
What are you working on, /g/?
>>
>>59295944
"The most powerful programming language is Lisp. If you don't know Lisp (or its variant, Scheme), you don't know what it means for a programming language to be powerful and elegant. Once you learn Lisp, you will see what is lacking in most other languages." -Richard Stallman
>>
First for D
>>
>>>59295968
If Rust is so great, why didn't Bill Gates use it when writing Windows?
>>
what is pascal?
>>
I CLAIM THE FIRST POST IN THIS THREAD FOR THE PROGRAMMING LANGUAGE COBOL WHICH IS STILL IN USE AND ARGUABLY THE FOUNDATION OF COMPUTING
END OF POST
>>
Attempting to wrap my head around openGL to make a simple game.

It ain't going to well.
>>
>>59295961
>Richard Stallman
Stopped reading right there.
>>
File: satania overload.png (666KB, 666x666px) Image search: [Google]
satania overload.png
666KB, 666x666px
>non-deterministic execution order
>>
>>59295944
>tfw wanna bully C coders, but /dpt/ is turning to shit
Truce
>>
spends 5 plus hours trying to write a js script with nothing to show for except files being deleted.
>>
>>59296009
My language will use an effect system so the compiler knows what statements it can reorder for optimization.
>>
>>59296007
>.
Stopped reading right there.
>>
File: 1453279748164.png (402KB, 598x1021px) Image search: [Google]
1453279748164.png
402KB, 598x1021px
>>59296028
My language already does use an effect system so the compiler knows what statements it can reorder for optimization.
>>
>>59295984
He's using it right now
>>
>>59296010
No truce with C tards
>>
>>59295989
An awkward, non-standard dialect of C using ALGOL syntax.

>>59296007
>stopped reading at end of post
>>
File: pl3L8e3.png (8KB, 1216x889px) Image search: [Google]
pl3L8e3.png
8KB, 1216x889px
>>59295995
Pic related, 300+ lines in and I have a cube.

And no idea what to do now
>>
Let's create a programming language, /dpt/.
First we need a logo.
>>
>>59296060
What makes you think I stopped reading at the end of the post?
>>
File: h a s k e l l.png (126KB, 400x400px) Image search: [Google]
h a s k e l l.png
126KB, 400x400px
>>59296083
How's this?
>>
>>59296100
>what makes you think I did what I said I did?
>>
File: 1464747355142.png (52KB, 285x302px) Image search: [Google]
1464747355142.png
52KB, 285x302px
>>59296083
The attached anime image shall be the logo.
>>
>>59296117
What if he reads right to left?
>>
>>59296116
Trash.
>>
>>59296117
Where did I say "stopped reading at the end of the post"?
>>
>>59296119
Pick a better girl for the logo
>>
>>59296116
Needs more colors.
>>59296119
Perfect!
>>
File: whatthefug.png (11KB, 211x246px) Image search: [Google]
whatthefug.png
11KB, 211x246px
>>59296007
Triggered
>>
>>59296010
>>59296054
Please go to >>59296145
>>
>>59296146
This image will have to do.
>>59296148
Now we just need the compiler.
>>
I need to fully understand a large C codebase.

What's the best way to start? Are there any tools that could help me? I'm just using a text editor right now.
>>
>>59296181
>Now we just need the compiler.
You'll have to come to stonehenge and defeat me in a duel to see it.
>>
>>59296181
I'll leave it to /g/, I'm more of an idea guy.
>>
>>59296200
Throw it away.
>>
>>59296215
Not an option, unfortunately
>>
>>59296200
Go line by line read the line and rewrite it to something else in a separate file.

By the time you end, you'll have understood the code.
>>
>>59296200
Go find main(), see where it goes from there.
>>
Working on stuff, it's tiring but it will happen.

You will all rue the day you conversed with me.
>>
>>59296274
And it goes straight to trash just like any other C programs
>>
>>59296137
In >>59296007
>>
>>59296215
>>59296294
See >>59296145
>>
>>59296275
rue?
>>
>>59296275
Whatever you are working on is garbage.
>>
>>59296300
I don't see the words "end of post" there.
>>
>>59296306
We pedo get away
>>
>>59296310
It's Australian.
>>
>>59296306
I don't use Rust. Rust is trash, too.
>>
>>59296310
Yes, rue. Live your life now before I complete my masterpiece.

>>59296319
No u
>>
>>59296353
>le ebin everything is trash memeboi
>>
File: 1487463346405.png (97KB, 1934x1069px) Image search: [Google]
1487463346405.png
97KB, 1934x1069px
>>59296353
Rust is better than C(ancer) any day
>>
>>59296237
>>59296274
>hundreds of source files
>tens of thousands of lines

Fuck, Java would've been so much easier to understand
>>
>>59296398
That's because C is trash
>>
>>59296398
Are you implying that Java isn't 100 times worse in that regard?
>>
What languages does /g/ have no opinion on?

Julia? Vala? Perl?
>>
>>59296063
Draw a spinning penis
>>
>>59296412
Vala is nice but it's kinda dead
>>
File: 1459115714670-0.jpg (913KB, 1080x1080px) Image search: [Google]
1459115714670-0.jpg
913KB, 1080x1080px
>people bully C coders without at least cuteposting
>>
>>59296412
>Julia
Shit
>Vala
Dead
>Perl
Shit and dead.
>>
>>59296409
But the verbosity of the code documents it. It is a pain to write sure, if your ide is shit, but is easy to read.
>>
>>59296423
>that whore
>cute
Anon... Don't be stupid!
>>
File: 1452824909620s[1].jpg (3KB, 125x71px) Image search: [Google]
1452824909620s[1].jpg
3KB, 125x71px
>VS2017
>integrated coding conventions
>integrated live unit tests
>categorized input suggestions
>exception helper actually shows you useful information
>no more digging through the exception stack
>non-shit tuple support in C# 7
I HAVE A MIGHTY NEED
>>
>>59296374
I don't use C either. C is garbage.
>>
>>59296409
Well I know Java much better than I know C, so yes
>>
File: checkem.gif (1MB, 160x192px) Image search: [Google]
checkem.gif
1MB, 160x192px
>>59296412
Julia is for patricians only

no rust fags
>>
>>59296433
>But the verbosity of the code documents it
No. Having all your your shit spread out into tiny methods in hundreds of classes spread over hundreds of files (because you have to) is not easier to understand.
In fact, it's much worse.
>>
>>59296445
Can I install it in Windows 7 or do I need the win10 crap
>>
>>59296412
/g/ isn't one person and I'm sure if you scour the deep depths of shitposting hell you'll find somebody who doesn't agree with you on any subject.
>>
>>59296463
With a good IDE it's effortless.
>>
>>59296459
Julia is shit
>>
Any ideas on how I can get started with writing a 3d modeling program? Any books or sites I should check out?
>>
NIM
>>
>>59296484
No. OOP is a poor and extremely unobvious way to structure your programs, that Java programmers and the like inflict upon them selves.
I don't understand why they do it. I think they must all be masochists.
>>
>>59296507
Deader than D
>>
>>59296507
>Compiles to C(ancer)
Nicely done
>>
>>59296502
Lisp.
>>
File: AAAAAAAAAAAAAAA.png (371KB, 832x868px) Image search: [Google]
AAAAAAAAAAAAAAA.png
371KB, 832x868px
>you're running C code on your computer RIGHT NOW
>>
>>59296521
Why should I write it in Lisp?
>>
>>59296552
NO!!!!!
>>
>>59296552
Move to Redox
>>
>>59296553
Because Lisp is trash and your kind should use only it.
>>
>>59296553
https://www.youtube.com/watch?v=-IRsYGfr4jo
>>
>>59296572
>the compiler is written in c++
There's no escape
>>
>>59296441
Sorry, let me try again

>people bully C coders without at least cuteposting
>>
>>59296572
I'm on Huskell OS myself.
>>
>>59296321
You specified that you stopped reading once you read "Richard Stallman", yet there was nothing in the post after that. So you stopped reading at the end of the post.
>>
>>59296592
Compiler is going to be written in ASM soon :)
>>
File: 1488763638990.jpg (54KB, 597x597px) Image search: [Google]
1488763638990.jpg
54KB, 597x597px
>>59296552
>>
>>59296596
Correct. Assuming I read that post from left to right.
>>
>>59296552
No I'm not. It's binary compiled from C
>>
>>59296592
C++ > pile of trash > C
>>
File: s-l500.jpg (51KB, 488x500px) Image search: [Google]
s-l500.jpg
51KB, 488x500px
>>59296083
>>
>>59296622
C++ = pile of trash < C

>>59296613
>worst dragon commits suicide
is it my birthday?
>>
>>59296622
pile of trash > C > POO garbage
>>
>>59296552
>You're running rust code on your comp-
Oh phew, it was all just a bad dream. That shit has never and will never happen.
>>
>>59296648
Anything > Pile of trash > C
>>
>>59296576
You are trash, friendo. :^)
>>
>>59296593
no anime is cute. grow up you manchild
>>
>>59296684
>:^)
I'm already better than you so I'm okay with it.
>>
Where do all these rust shills come from and how much is Mozilla paying them.
>>
File: 1487605442191.png (170KB, 431x539px) Image search: [Google]
1487605442191.png
170KB, 431x539px
>>59296687
Bugger off. I have an office job where I have to act like a normal human bean for 8 hours a day, if I wanna cute post I'll cute post
>>
>>59296712
NSA is paying C shills so people continue to write unsafe C programs to produce vulnerabilities and exploits

Win win for the NSA
>>
>>59296712
Nothing, Mozilla has no money left. They're shilling in hopes of a worldline where they get paid.
>>
>>59296423
>SJW glasses
She's ugly and disgusting
>>
File: 1466701321891.jpg (121KB, 1200x900px) Image search: [Google]
1466701321891.jpg
121KB, 1200x900px
>>59296715
>>
>>59296701
>he actually believes this
Keep deluding yourself. :^)
>>
File: 1486359357186.png (395KB, 960x955px) Image search: [Google]
1486359357186.png
395KB, 960x955px
>>59296715
And when are you going to start cute posting?
>>
>>59296752
They even convinced the CIA, all their programs are written in C for some reason.
>>
>>59296768
That's alright, dude. I didn't insult you or anything.
>>
>>59296785
wow you haxor you really hacked into their sources right?
>>
>>59296796
>backpedaling
:^)
>>
>>59296778
>>
URGENT REMINDER

C apologists are NSA shills plain and simple. Rust makes it harder to produce vulnerable programs as it actually implements safety precautions like Bounds checking, dangling pointer prevention, data race prevention, lifetimes etc. This is against the interest of the NSA and so they are shilling C so that people continue to produce exploit prone, unsafe and vulnerable programs.

Ignore the NSA/C shills. Programming in C should be banned and outlawed.
Say no to security exploits, say no to the NSA. Your data and your privacy is worth preserving.
>>
>>59296799
You sleeping all day?

https://wikileaks.org/ciav7p1/
>>
>>59296827
Lick my balls mozilla shill
>>
>>59296832
No where does it says all their programms are written in C(ancer)
>>
File: 1486711377270.jpg (131KB, 432x518px) Image search: [Google]
1486711377270.jpg
131KB, 432x518px
>>59296823
>>59296778
>>
>>59296687
>posts in /drt/
>calls anyone else a manchild
>>
>>59296821
Post a singular anime image and I shall judge it.
>>
>>59296843
Fuck off NSA
>>
>>59296471
Minimum requirement, Windows 7 SP1.
>>
>>59296827
> as it actually implements safety precautions like Bounds checking, dangling pointer prevention, data race prevention, lifetimes etc.
If you actually think you need any of those things, it's time to refactor your code.
>>
>>59296887
>I don't need safety
Sure you don't like them, NSA
>>
>>59296854
Maybe not all but everything I saw in there was C.

Point out the non-C parts, apart from terribly written install shell scripts
>>
>>59296866
Lick it nice and good, you shill piece of shit.
>>
>>59296865
Let there exist an anime image represented by a square matrix in which all elements of the matrix are the same.
>>
>>59296862
>>
name one thing wrong with OOP pro tip you can't
>>
>>59296423
>>59296441
>>59296593
Grow the fuck up and stop posting Japanese child cartoons you manchildren.
>>
>>59296900
Safety should come from program design. "I need the compiler to hold my hand" is just one step above security through obscurity.
>>
File: 1461349138810.jpg (45KB, 396x494px) Image search: [Google]
1461349138810.jpg
45KB, 396x494px
>>59296934
"Give me a boyfriend" - t. you (pic is proof)

>>59296945
it's shit
>>
>>59296952
Can I be your boyfriend little loli?
>>
>>59296945
It's bloated, creates unneccessary state, and is a leaky abstraction.
>>
>>59296950
Safety in Rust is built into the language design, compiler only implements some parts of it
>>
>>59296948
Which worldline do you think you're in?
>>
>>59296952
>>59296966
you guys still never give me a real reason to why OOP is bad and what is a better solution and why?
>>
>>59296976
most programming problems do not correspond to objects
>>
>>59296973
The same one I was in yesterday.
>>
/dpt/ sucks, it has degenerated into animeposters and "hurr ur language sucks"

I'm gonna go get a math degree instead
>>
>>59296971
Rust can't stop you from adding the wrong numbers together or writing to the wrong file. The obsession with "safety" is a red herring.
>>
>>59297004
>Obsession of safety is bad
Hello, NSA
>>
>>59296998
>I'm gonna go get a math degree instead
that's a smart decision
>>
File: solve (6).png (910KB, 1920x1080px) Image search: [Google]
solve (6).png
910KB, 1920x1080px
>>59296998
>he thinks he can escape from anime if he does math
>>
>>59296976
The way it's implemented in most languages (vtables) is extremely detrimental to performance

The most popular OOP languages also have unrestricted shared mutable state, which is a disaster
>>
Quit posting about Rust until you write an OS in it. Or at least port glibc to Rust. When you've done that, come back and shitpost in /dpt/ until then it's just a meme
>>
C as a language is trash, not just because it lacks safety. But it's trash in general.
>>
>>59297011
>everyone who disagrees with me is a shill!
Just stop already. You're embarassing yourself.
>>
>>59296984
From your perspective maybe, from my perspective this place has always been a place for anime and manchildren.

The cosmos is a large place but I truly hope you find your way back home. Don't give up.
>>
>>59297056
Anyone who things producing exploits open for the NSA and crackers is inherently a shill
>>
>>59296976
Burden of proof is on you to show that it's good.
>>
>>59296998
>I'm gonna go get a math degree instead
>$300k starting
>any anime i want
>>
>>59297033
What is wrong with a mutable state?
>>
>>59297115
Nothing on its own, it's when it's shared that it's bad.
>>
>>59297120
what is bad with a shared mutable state. Give an example
>>
I feel it coming
>>
>>59296610
>ASM
>memory safe
lol
>>
>>59297148
If you need something that lacks memory safety why not ASM instead of C
>>
>>59297069
>Anyone who things producing exploits open for the NSA and crackers is inherently a shill
r u ok?
>>
>>59297129
If you can't even answer that question yourself, you seriously have no business programming.
>>
>>59297129
It means you need to use synchronization logic in order to run things in parallel, which leads to blocking (and deadlock if not designed correctly), if you don't have shared mutable state you don't even need to think about that stuff.

It also makes it harder to write tests for your code, code with no shared mutable state is a lot easier to isolate and test.
>>
>>59297069
out in the open*
>>
>>59297129
Requires synchronization if shared across threads.
Inhibits optimizations.
Leads to temporal coupling.
>>
>>59297146
It's already come, it went everywhere. Now clean it up.
>>
>>59296945
>object-
dropped
>>
>>59297155
Because I like having variables with names and don't want to have to write 10 lines of code just to tell my functions how to access them.
>>
After using languages that have them, I have to ask, why don't Java and C# and C++ have continuations as a core language feature?
>>
>>59297204
Hm.... Idk? Maybe cause their garbage
>>
>>59297208
Do you mean continuations are garbage or Java/C#/C++ are garbage?
>>
How well does D support FP?
>>
>>59297260
D is dead
>>
>>59297229
Everything is garbage, programmers are just garbage men with fancy titles.
>>
>>59297260
It's part of the standard library.
https://dlang.org/phobos/std_functional.html
See? It's all right there.
>>
>>59297286
No. Garbage men get rid of garbage, programmers create it.
>>
>>59297229
Anything which has any support for OOP is by definition garbage.
>>
>tfw hop throug languages learning the basics
>know the bare basics of most commong languages
>still dont know which language to use and cant get myself to read enough so I skip to try another language and the cycle repeats.

Is it time for suicide?
>>
>>59297294
This is bait

>>59297260
It has lambdas, it has templates, but it does not have real polymorphism of any kind.
No pattern matching, no ADTs.
>>
>>59297286
how do I become this cynical?
>>
>>59297260
Does it even matter? It's OOP trash and should be ignored.
>>59297314
>No pattern matching, no ADTs.
lmao
It's truly garbage.
>>
>>59297299
Garbage men don't get rid of garbage, they just move it somewhere else.
>>
I'm learning fucking lolcode and I'm going to write something amazing in it.

Then I'm going to be the only mother fucker on the Earth that hires lolcode devs.

You better believe it's going on my resume too.
>>
>his language needs ADTs as a baked in feature
>his language needs pattern matching as a baked in feature
>>
>>59297337
In some countries they burn it and turn it into energy.

Either way, garbage men > programmers
>>
>>59297317
That's not cynicism, also just drink.
>>
>>59297357
>his language has no features and has to rely on macros that end up causing him to have to write more convoluted code
>so much for his language being "simple"
>>
>>59297373
Where did I say macros?
>>
>>59297357
>his language needs to be compiled or interpreted
lmao desu @ your life senpai
>>
>>59297385
>his language has no features and can't even emulate them
>>
>>59297385
how else would your inferior language achieve the ability to have basic features any non-garbage language should already have?
>>
File: img_026.png (160KB, 310x350px) Image search: [Google]
img_026.png
160KB, 310x350px
>>59297312
>learn basics of languages
>tell /dpt/ what language you're using for what task by disguising it as a "here's what I'm working on" post
>anons either reply with greentext ">running [task y] with [language x]" or they don't reply, which means that you're using the languages as they should
>if there are replies, ask why
>you either get a response explaining why you shouldn't use language x for task y or you get no response and you'd know that the anon is full of shit
>>
>>59297358
The person who burns the garbage has a different title.

"Lead arsonist" or some shit, he's not a garbage man.
>>
Hey /dpt/, if you're so smart then figure this code out:

/**
* @param n n
* @return d on success, -1 on failure
*/
int64_t f(uint8_t n)
{
if (n <= 1) return n;
/* if n is greater than 92, fail */
if (n > 92) return -1;
n -= 2;

uint64_t a = 1, b = 1, c = 0, d = 1, e = 1, f = 0;

while (n) {
uint64_t g, h;
if (n & 1) {
g = a * d + b * e;
h = b * d + c * e;
f = b * e + c * f;
d = g;
e = h;
}
g = a * b + b * c;
a = a * a + b * b;
c = b * b + c * c;
b = g;
n >>= 1;
}

/* return d */
return d;
}
>>
>>59297398
>>59297404
Bool : Type
Bool = (A : Type) => A => A => A

false : Bool
false A f t = f

true : Bool
true A f t = t
>>
>>59297408
>>learn basics of languages
Explain this

beginsWith = zipWith const >=> (==)


"asdf" `beginsWith` "as"
>True
>>
>>59297435
My language has that, it's called "if".
>>
>>59297162
>>59297167
if this is true then why are all large programs written this way in modern times in OOP?
>>
>>59297433
>* @param n n
>* @return d on success, -1 on failure
>/* if n is greater than 92, fail */
>/* return d */
You are truly the master of writing comments.
>>
>>59297446
Because they're heaving masses of technical debt?
>>
>>59297446
Java advertising campaign
>>
>>59297435
>=> A => A => A
disgusting.
>>
>>59297446
God knows, anon.
>>
>>59297433
Retarded fibonacci code.
>>
>>59297480
I prefer => to -> for the function type.
>>
>>59297445
>built-in
embarassing
>>
>>59297433
Don't even care what it does. WHY are we still alive? Why won't EVERYONE just DIE?
>>
>>59297506
>his type system is built-in
>he has no dependent types
>>
Daily /dpt/ programming challenge

Write a program that adds 2 numbers and subtracts 2 numbers


class Calculation {
int z;

public void addition(int x, int y) {
z = x + y;
System.out.println("The sum of the given numbers:"+z);
}

public void Subtraction(int x, int y) {
z = x - y;
System.out.println("The difference between the given numbers:"+z);
}
}

public class My_Calculation extends Calculation {
public void multiplication(int x, int y) {
z = x * y;
System.out.println("The product of the given numbers:"+z);
}

public static void main(String args[]) {
int a = 20, b = 10;
My_Calculation demo = new My_Calculation();
demo.addition(a, b);
demo.Subtraction(a, b);
demo.multiplication(a, b);
}
}

>>
>>59297527
That is fucking garbage.
>>
>>59297525
>his dependent types are built in
>>
>>59297025
literally how does this relate to real life

math people are so goddamn autistic, they hate applied math like engineering and software dev.
>>
>>59297540
But Anon... How else are you going to program in Java this is the proper way to program
>>
>>59297527
disp s f x y = unwords ["The", s, "of the given numbers:", show (f x y)]

main = do
disp "sum" (+) 20 10
disp "product" (*) 20 10
disp "difference" (-) 20 10
>>
>>59297571
Wait, I fucked up

disp = putStrLn $ unwords ["The", s, "of the given numbers:", show (f x y)]
>>
>>59297587
disp s f x y *
>>
File: confused_undines.jpg (77KB, 704x524px) Image search: [Google]
confused_undines.jpg
77KB, 704x524px
>>59297553
Why are you projecting so much anon? Which math major hurt you?
>>
>>59297500
Which is absolutely disgusting and doesn't even make sense. Why would "implies" mean "maps"?
>>
>>59297648
Curry-Howard principle.
>>
>>59297527
(format t "~@{The ~a of the given numbers: ~a~^~%~}" "sum" (+ 20 10) "product" (* 20 10) "difference" (- 20 10))
>>
>>59297652
Haskell Curry used arrows himself. Not your plebeian bullshit.
>>
>>59297708
Frankly, I don't care.
>>
Should I use the GPL license for my library?
>>
>>59297720
No, MIT.
>>
>>59297714
You should, you might learn a thing or two.
>>
>>59297720
If you are a subhuman, sure. Otherwise stick to MIT or anything BSD-like.
>>
>>59297730
Well, it's either => for function and -> for lambda or the other way around. I would rather use -> for lambda so that I can use <- for do notation. <= is already used for less than or equal to.
>>
>>59297433
What the fuck? I've seen binary files more readable than this.
>>
>>59297720
MIT if you want people to use it.
LGPL if you want to make sure no large corporation will ever touch it.
>>
>>59297742
Why would you want different syntax for named functions and lambdas?
>>
>>59297784
=> for function type*
>>
>>59297784
>>59297790
Though, now that I think about it, I might be able to reuse the symbol without parsing ambiguity. Until I know for sure I'm sticking with =>.
>>
>>59297727
>>59297739
>cuck license
>>
>>59297571
>>59297587
>>59297603
It's okay anon. Perhaps you'd have better luck with a language that doesn't fight you every step of the way?
>>
>>59297820
Yes, GPL is indeed a cuck license.
>>
>>59297814
>I might be able to reuse the symbol without parsing ambiguity
If other languages do it then you obviously can as well.
>>
>>59297822
the problem is I forgot to actually print
>>
>>59297827
>reading comprehension
>>
>>59297881
Whom are you quoting?
>>
>>59297881
I don't need reading comprehension to program it's all just about using libraries and rearranging variables
>>
File: 1426452432302.jpg (187KB, 613x872px) Image search: [Google]
1426452432302.jpg
187KB, 613x872px
ok guys listen up:
IMPORTANT question for /dpt/:

which anime babe would you pound?
>>
>>59297938
Wrong thread, wrong website, try the FBI website, look for the "anonymous tip" section
>>
>>59297938
The one with a penis, i.e. fellow /g/ anons.
>>
>>59297957
wow RUDE

>>59297966
good choice!
>>
>>59296445
>VS2017 Team Services lets you automatically set up a build service for literally every relevant project
MY FUCKING DICK
>>
>>59297527
CL-USER> (apply 'mapcar 'funcall '(+ * -) '((20 20 20) (10 10 10))) 
(30 200 10)
>>
File: 1457364933964.jpg (22KB, 377x299px) Image search: [Google]
1457364933964.jpg
22KB, 377x299px
>>59297938
>>
>>59297720
GPLv2, yes
GPLv3, fuck no
>>
>>59298083
>(((GPLv2))), fuck no
>(((GPLv3))), fuck no
fixed that for you.
>>
>>59297527
>>59298002
CL-USER> (mapcar (lambda (x) (funcall x 20 10)) '(+ * -))
(30 200 10)
>>
>>59298274
I translated my Lisp to Haskell:
Prelude> map (\x -> ($) x 20 10) [(+), (*), (-)]
[30,200,10]
>>
>>59298414 works, but I didn't need $.
map (\x -> x 20 10) [(+), (*), (-)]
>>
is there any good reason to use the assert construct in Java if you already are using unit testing? I guess if you wanted to terminate the program for invalid input to a function, but then it's probably better to just throw an exception.
>>
>>59298460
>Java
Fuck off, plebbitor.
>>
>>59298460
You should just do all your computation at compile-time.
>>
>>59298487
That's actually a good idea. I've recently started doing that a lot.
>>
>>59298487
hmm but isn't the power in assertions that you can check the live state of the program?
>>
>>59298546
Java is shit itself. Never ever mention it here again.
>>
>>59298546
The point is you don't have to waste the resources on doing that in realtime if you can compute everything during compile-time.
>>
>>59298598
but isn't that considered a bad OOP practice?
>>
>>59298598
but what if your program is non-deterministic?
>>
File: weird_goblin.png (35KB, 196x361px) Image search: [Google]
weird_goblin.png
35KB, 196x361px
>>59298622
>>
>>59298622
how would I check that? sorry, i'm new to this stuff.
>>
>>59298683
Use the loop_variant pragma to verify the condition moves towards a bound.
>>
>>59296587
That's actually very feature-full for the '90s.
>>
>>59298683
well, it's not really something you can check anon.
>>
>>59298683
Light three candles and sacrifice a clock to the god of temporal stability.
>>
>>59298701
Pretty based, tbqh
>>
>>59296587
>I believe the Mirai program is built on Allegro Common Lisp

http://franz.com/products/allegro-common-lisp/
>Allegro CL ® is the most powerful dynamic object-oriented development system available today, and is especially suited to enterprise-wide, complex application development.

huh, look at that.
>>
File: file.png (531KB, 720x720px) Image search: [Google]
file.png
531KB, 720x720px
What language does Ai-chan run on?
>>
>>59298879
Java
>>
>>59298879
Haskell. I was involved in the project.
>>
>>59296827
daily reminded that most of the "most serious" exploits in the wild aren't from buffer overflows.

They are from mistakes in logic or math.

See: goto fail
>>
Husklel isn't really referentially transparent.
For example:
If the compiler malfunctions this call might return something other than 2
1 + 1
>>
File: 1465162004051.jpg (123KB, 958x538px) Image search: [Google]
1465162004051.jpg
123KB, 958x538px
What is the best programming language for Australians?
>>
>>59299042
Kangaroo
>>
Reminder that it's "Hello, World", not "Hello World".
>>
File: 1486951688417.jpg (634KB, 2200x1328px) Image search: [Google]
1486951688417.jpg
634KB, 2200x1328px
>>59295992
I've heard some suggestions that it would be good to learn this because of the memes about how so many of these guys are wanting to retire but no young guys want to get into this because its not sexy enough so there should be a huge shortage. Is this just a meme or is there anything to it?
>>
>>59296063
>>59295995
Do you know Linear Algebra? You need to know it, anon.
>>
File: Learning D.png (1MB, 948x1054px) Image search: [Google]
Learning D.png
1MB, 948x1054px
>>59295963
Dose anybody program using the D programming language?
>>
need help (repost)

I'm working on some automation.
tl;dr I need to automate fiddling with files that require superuser on a remote machine

I'm trying to use expect and I'm getting all sorts of weird ass shit behavior. Anyone used it before? All the tutorials make it sound retard simple to use, but its not working well.

weird things like when I use
 #!/usr/bin/expect -D 0

it wont work, but
 #!/usr/bin/expect -D 1

does...
>>
>>59299727
the script is literally this, boiled down as I was trying to troubleshoot
 #!/usr/bin/expect

spawn ssh 192.168.2.10
expect "$ "
send "echo helloWorld\r"
expect "$ "
send "exit\r"

again this will always work with the -D 1 option

 #!/usr/bin/expect

spawn ssh 192.168.2.10
send "echo helloWorld\r"
expect "$ "
send "exit\r"
should send the exit but not echo hello world, but does the opposite


#!/usr/bin/expect

spawn ssh 192.168.2.10
send "echo helloWorld\r"
expect "$ "
send "exit\r"
expect "$ "

should be the same as last, but sends both

and everything works normally with -D 1, but works exactly the same with -D 0

is this program just totally broken? it seems to be well regarded.
>>
File: Andrei_in_doctoral_attire.jpg (192KB, 691x922px) Image search: [Google]
Andrei_in_doctoral_attire.jpg
192KB, 691x922px
>>59299347
Andrei, maybe.
>>
>two threads up
what the fuck?
>>
Why people hate OOP?
>>
>>59300659
Abuse, supported by shitty software architects conceiving convoluted designs, shoving the paradigm where it does not belong.

Inheritance was a mistake, classes shall only be used to define interfaces and their implementations. Classes implementing an interface should extend their functionality only by composition. Interface methods are only a way to pass messages between interacting objects. Any other use of OOP is abuse of OOP.
>>
>>59300726
>shoving the paradigm where it does not belong.
Well, if there are so many examples where OO paradigm doesn't belong, maybe, it's easier to say where it has its place?
>>
>>59300845
>it's easier to say where it has its place?
Nowhere.
>>
>>59300845
It really doesn't have any place.
>>
>>59300860
>>59300866
What made it so popular then?
>>
>>59300845
>Well, if there are so many examples where OO paradigm doesn't belong, maybe, it's easier to say where it has its place?

Re-read >>59300726 pls, not just the first paragraph this time.
>>
>>59300905
If I had to guess I'd say it being garbage.
>>
>>59300860
>>59300866
But GUIs are made with OOP
>>
>>59301069
Gooeys are certainly not the pinnacle of good programming.
>>
>>59299347
I am
>>
>>59301078
But users want gooeys, that's where most of the money is! What can you do against that?
>>
>>59301139
It's not the late 90s/early 2000s anymore.
>>
I'm learning Python as my first language.
Don't know what I will do with it.
>>
^^^
retard spotted
>>
>>59301277
You are an idiot
>>
>>59301302
let's assume this is true. how does this change you being a retard as well?
>>
>>59301277
dubs don't lie
he's a retard for learning python or for not knowing what to do?
>>
>>59301342
both.
>>
>>59301177
Does it change the fact that users want GUI?
>>
File: 1466016883865.png (518KB, 500x720px) Image search: [Google]
1466016883865.png
518KB, 500x720px
So which programming langauge is not a meme according to people that post here?
>>
>>59301572
Any language. A programming language is by definition incompatible with being a "meme" as you "redditors(?)" like to call it.
>>
>>59301638
People seem to really dislike C here, that's why I asked
>>
>>59301572
All languages are by definition memetic.
>>
>>59301572
Rust
>>
>>59301671
>People seem to really dislike C here,
Just vocal minority
>>
>>59301695
C is cancer

Repeat after me:
C is Cancer
>>
>>59301671
/dpt/'s language of the day changes from week to week, even from day to day sometimes.
Depends on who shills for /theirlanguage/ in first post.

C, C++, Rust, Go, Lisp, Haskell are the most recurring for the last year though.
>>
>>59301671
A language supposedly being garbage and it being a "meme" are two different things. One of them is simply impossible.
>>
New thread:

>>59301737
>>59301737
>>59301737
>>
>>59301572
Just be sure to stay away from P*thon. I am convinced that anyone suggesting it is actually trying to actively harm you. I refuse to believe that anyone could be so retarded as to seriously recommend it.
>>
>>59301699
Who the fuck are you?
>>
Whats this character name?
Thread posts: 315
Thread images: 36


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

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


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