[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: 336
Thread images: 19

File: nothing_to_envy.jpg (45KB, 560x764px) Image search: [Google]
nothing_to_envy.jpg
45KB, 560x764px
Old thread: >>60244282

What are you working on /g/?
>>
File: hi.png (1MB, 640x1136px) Image search: [Google]
hi.png
1MB, 640x1136px
r8 my game
>>
>>60250799
First for Rust!
>>
>>60250811
>2.5fps
>>
Have you done your SICP today?
>>
>>60250840
keep dreaming
>>
>>60250811
no
>>
>>60250852
Ok
>>
What's a good IDE for python on linux?
>>
>>60250811
>TWO POINT FIVE FPS

make it for ps4,you will get millions
>>
>gcc7 is out
Why aren't you using C++17, anon?
>>
  public static void procesoJuego(int matriz[][], char matrizI[][]){

String cadena = "-";
int contador = 0;
for (int x = 0; x < matriz.length; x++) {
for (int y = 0; y < matriz[0].length; y++){
int aux = (int) (Math.random() * 2);
if (aux == 1) {
if (contador >= 10){
aux = 0;
}
contador++;

}
int cordx = matriz[x].length;
int cordy = matriz[y].length;
matriz[x][y] = aux;

int aciertos = 0;



if(aciertos<10){
String coordenada1;
String coordenada2;
coordenada1 = JOptionPane.showInputDialog("Ingrese coordenada x");
coordenada2 = JOptionPane.showInputDialog("Ingrese coordenada y");

if(coordenada1 == cordx && coordenada2 == cordy){
JOptionPane.showMessageDialog(null, "Le diste!");

JOptionPane.showMessageDialog(null, cadena);
aciertos++;
}
else{
JOptionPane.showMessageDialog(null, "Fallaste.");
JOptionPane.showMessageDialog(null, cadena);
}
}
}
}
}
}


how can I parse user input to string, and how can I assign temp variables to matrix[x] and [y]?

what I'm trying to do is to scan the matrix for the user-input coordinates, check if he found a 1 or a 0 and respond accordingly
also, trying to show the matrix through JOption and failing miserably

sorry about the barrage of questions btw
>>
>>60250966
Because ive moved on to better things like rust.
>>
>>60250980
>Pls /g/ do my homework
>>
>>60250980
JAVA SPICS OUUUUUUUUUUT
>>
>>60250980
nevermind on the parse thing, I'm a fucking idiot

I still need to

- assign temp variables to matriz[x] and matriz[y]
- print a "decoy" matrix with all values hidden and replaced by a "-" (said matrix was declared in a previous method)
- scan the "real" matrix according to the coordinates input by the user and check if he either found a 1 or a 0 in the matrix
>>
>>60251022
not actual homework, I bet a classmate I could run a functional battleships program before he could, a beer is at stake here
>>
File: 1485212904656.png (458KB, 721x531px) Image search: [Google]
1485212904656.png
458KB, 721x531px
>>60250824
>>60250805
>>60250798
I don't know, even reddit posters seem to be more mature. What we have here is the sudden insurge of underage /b/ and /pol/ refugee spilling all over /g/. Consider this example:
Reddit:
>You're comparing a systems language to a scripting language. Things are harder in systems programming because you have more control over, in this case, the memory representation of data. This means there is more friction because you have to specify that information.

>In addition, the tasks your doing are not really comparable.

>In the Python case you:

-Open a file
-Read bytes from the file
-Parse the contents of that file (syntax errors are auto handled)
-Get a hashmap with the values in that file; type errors are NOT handled. Missing values are NOT handled. It's very memory inefficient.
-End up with a map string -> string irrespective of how you want to semantically use those values

>In the Rust case you:

-Open a file
-Read bytes from the file
-Parse the contents of that file (syntax errors are autohandled)
-Populate a packed, efficient structure in memory (type errors are autohandled; missing value errors are auto-handled, flexibly because of Option).
-You end up with a very memory-efficient, time-efficient (no hashing to get values), type-safe representation of config data.

>It takes more code in Rust because it does more, and does it more safely and faster.
>And Rust gives you a standalone executable that can be run on systems without Rust.


And here is how a /g/ toddler speaks:
>code is a complete joke
>b... but it's a systems programming language
>Fuck you. I know it's Leddit, but Rust hate is always appreciated.
>https://www.reddit.com/r/programming/comments/69necf/the_grass_is_always_greener_my_struggles_with_rust/

It should give you an idea how cringe inducing this place has become thanks to /b/, /pol/ and /v/
>>
>>60251052
You'll have to lie better than that spic pajeet
>>
>>60251060
You are wrong, that cancer came straight from plebbit. Basically that faggot is asking for some upvotes for his thread
>WAAAAAH /g/ upvote my reddit thread WAAAAH
>>
>>60250843
>>60250906
It was on simulator on Intel graphics, it normally runs at 30fps but when I took the screenshot it went down to 2.5 for a moment.

On a real devices it runs at a solid 60fps all the time.
>>
>>60251060
You just gave me nightmares from my compilers' class. thanks
>>
>>60251096
at least help me declare the temp variables, everything else is running

;-;
>>
>>60251060

T W O C L O C K S
W
O

C
L
O
C
K
S
>>
>>60251060
Return to reddit if you love it so much then
>>
>>60251060
>It should give you an idea how cringe inducing this place has become thanks to /b/, /pol/

seriously though take it as a blessing, since you now know that anyone who brings up sjwfox in reference to mozilla/firefox/rust is a complete degenerate whose only interests are shilling and spreading disinformation and not having engaging discussions on topics they're passionate about
>>
File: 1478572955721.jpg (50KB, 313x163px) Image search: [Google]
1478572955721.jpg
50KB, 313x163px
>>60251365
Oh the edge. How is your middle school?
>>
>>60251365
>seriously though take it as a blessing,
Wrong approach
>>
>downloaded some pluralsight course
>disabled
Well lad
>>
c++ is nice
>>
File: 1478973394916.gif (2MB, 405x720px) Image search: [Google]
1478973394916.gif
2MB, 405x720px
>Still looping
#include <stdio.h>

int main()
{
int result[5];
for (int number_current_matches = 0, i = 1; number_current_matches < 5;
i++)
{
//printf("Matching %d\n", i);
int sum_multipliers = 0;
for (int j = 1; j <= i; j++)
{
if (i % j == 0)
{
sum_multipliers += j;
}
}
if (sum_multipliers == 2 * i)
{
//printf("\tSUCCESS! %d is perfect\n", i);
result[number_current_matches] = i;
number_current_matches++;
}
}
printf("%d\n", result[0]+result[1]+result[2]+result[3]+result[4]);
return 0;
}
>>
>>60251394
How is your down syndrome? Retard.
>>
>>60251558
dumb akariposter
>>
>>60251558
It's just fucking slow. But at 33e6 it will stop. Just be patient anon.
>>
File: 1472481790284.gif (1MB, 450x540px) Image search: [Google]
1472481790284.gif
1MB, 450x540px
>>60251621
What's wrong?
>>
>>60251656
Kill yourself, you dumb fucking shit smear.
>>
>>60251558
>>60251656
i love you akari poster, never stop posting.
>>
>>60251656
dumb akariposter
>>
>>60251621
>>60251773
>>60251792
What's an akari? Is it like an Atari?
>>
>>60251792
I'm only seeing a blank image
>>
Learning about web stuff.

>inb4 not real programming

We have a web front end system at work for carrying out tests, which is absolutely shite. So I thought I'd get some learning done on Javascript, but never done web stuff before.

But I'm confused about all the different things, HTML, CSS, Javascript, Angular?
>>
>>60251896
>HTML
Yes.
>CSS
Useless for coders. Only used by designers.
>Javascript
Yes.
>Angular?
Only code monkeys who can't grasp the power of javascript praise javascript frameworks.
>>
>>60251918
As i understand it:
>HTML is the container page for everything
>CSS/JS/Angular can run inside that page
>CSS does the pretty menus and shit
>Javascript is doing stuff (syntax is very C like)
>Angular is an alternative to JS?
>>
>>60251966
>(syntax is very C like)
well they both are shit
>>
>>60251966

angular is a js framework
>>
>>60251966
No.
HTML is a language to describe simple gui/form.
CSS is something to customize the design of an html page (only used by designers).
JS is a very powerful language that can do any thing. It can manipulate the HTML, the CSS, etc.
Angular is a JS framework made by code monkeys for code monkeys, because grasping the power of javascript is to complex.

JS==javascript (i'm not sure you get that)
>>
>>60252013
understand that JS is Javascript, thanks.

Could you define the term "framework" for me? It sounds like you're describing an API. So rather than have to write code that does some functionality, they can just call something in Angular framework that does that job?
>>
>>60252013
>Angular is a JS framework made by code monkeys for code monkeys, because grasping the power of javascript is to complex.
t. never used a framework for its intended use
you can do without one if you use something like php (serverside rendering) but without it, managing complex state becomes a pain in the ass quickly
>>
>>60251896
>>60251918
>>60251966
>>60252013
>>60252068
There is a special thread for you retards. Fuck off.
>>>/g/wdg/
>>
This thread is shit, right from the OP
>>
>>60252068
Typical code monkey.
>managing complex state
It's fucking JS. Do you know FP?

>>60252056
>Could you define the term "framework" for me?
A lot of functions. Of course a framework has an API and you use it by its API.
>>
>>60252107
So a math book is a "framework"?
>>
>>60252120
>So a math book is a "framework"?
Technically proof = function. So yes.
>>
>>60252107
>too smart for web dev
*tips fedora*
>>
>>60251966
This is incredibly incorrect.

DOM is generated from HTML markup.
CSS is applied to DOM, CSS is for styling.
JavaScript is a client side scripting language used to manipulate DOM (and much more).
JavaScript is NOT C like.
Angular is a JavaScript framework. A lot of Angular applications are still built in Angular 1.x (outdated) while newer Angular applications are in Angular 2x/4.x. Angular is on it's way out and is used less and less.

We use JavaScript frameworks because manipulating DOM is slow, expensive, and unperformant in large-scale applications. Implementing a virtual DOM helps with this tremendously.
>>
>>60252160
But what's playing the role of the API then?
>>
>>60252056

With a library you typically build an application and call functions from the library. With a framework you put your code inside the framework, the framework calls you.
>>
>>60252208
API is just the type of the functions. The theorems, without proofs.
>>
File: 1461523893177.jpg (2KB, 125x117px) Image search: [Google]
1461523893177.jpg
2KB, 125x117px
newbie question:
i have a sorted arraylist of integers.

I want to find the mode and its frequency WITHOUT using a nested loop structure or any external data structure.

how the fuck do I do that? language is java btw.
>>
>>60252260
So it's a wrapper that you put your code inside. OK.

>>60252207
When I said C like, I meant that loops, conditional statements, etc were written using a similar syntax
>>
>>60252260
So .net ain't a Framework?
>>
>>60252377
>language is java btw.
Stopped reading right there.
>>
File: 1493817080848.jpg (70KB, 814x767px) Image search: [Google]
1493817080848.jpg
70KB, 814x767px
guys
i just changed my speciality in UNI from networking to distributed/mobile apps programming.

is this where the money at ?
>>
>>60252468
Not programming related.
>>>/g/wdg/
>>
>>60252468
>going to college for a tech degree
>not just getting certs at a trade school
Yeah, the money is being the IT guy at your local McDonalds.
>>
>>60252377
Count repeats, if the repeating stops then compare to the last number of repeats and take the max tard
>>
>>60252487
i'm french, we don't pay for education here >>60252479
nigga what ? i'm studying kernel and POSIX programming too in this speciality.
>>
>>60250890
Pycharm is lovely. Otherwise, vim.
>>
>>60252542
>i'm french
Yes, I can tell that you're subhuman.
>we "don't pay" for education here
Obviously. That's the only way your kind could possibly study anywhere.
>>
File: dlang_chan.jpg (139KB, 470x545px) Image search: [Google]
dlang_chan.jpg
139KB, 470x545px
Threadly reminder that dlang-chan is not dead, and she's super duper cute and fast! Say something nice about her, /dpt/!
>>
>>60252592
STOP
>>
File: batman.gif (498KB, 255x235px) Image search: [Google]
batman.gif
498KB, 255x235px
>>60252561
>Yes, I can tell that you're subhuman.
why did you ask me about the money then faggot
>That's the only way your kind could possibly study anywhere.

>>be american
>>go to college
>>go bankrupt
>>
>>60252380

>So it's a wrapper that you put your code inside. OK.

Pretty much, say you were writing the back end for a http server using a framework, they'd have a file for you to declare all the directories of the website (/g/, /b/, /a/, etc) and then it might automatically link this to the corresponding html files that are stored in another area designated by the framework and automatically serve these to the user when the http request comes in. Then the framework would have functions already set up to handle cookies and sessions etc.

This would be an example of a pretty heavyweight framework, but I guess a good rule of thumb is that if you aren't writing your 'main()' function or you don't know exactly where your code starts executing you're probably using a framework.

>>60252400

Never used .net so I wouldn't know
>>
>>60252592
I am beginning to believe you are actually false-flagging
>>
I've only ever programmed in Assembly, trying to make a simple program but having trouble finding the easiest language to use. I need to:

Display an Array\dataset as a table.
Search a specified webpage for matching text
locally append a document based on user input

I thought Javascript would be sufficient but it doesn't like reading\writing locally. It can work with the addition of JSON+Ajax but I'm trying to make the final result as universal as possible and don't want the end user to have to install anything.

Is this possible with any of the basic things people are likely to have, or is c# the only way to do this cleanly? Thanks.
>>
>>60252613
inb4 i didn't read the full reply.

i can see you taking your hands away from your burger to sperg on me.
>>
>>60252644
Literally any language take your pick
>>
>>60252613
>why did you ask me about the money then faggot
Is the concept of anonymous imageboards new to you? Or is this just your French retardation showing?
>be american
I'm not American.
>go bankrupt
A much better alternative to c*mmunism. People who make stupid choices should go bankrupt.
>>
>>60251621
There's absolutely nothing dumb about posting akarin
>>
>>60250799
A fucking EMV Parser. God I hate it so much. It's a clusterfuck of design-by-committee. I don't want to continue doing it, so I procrastinate by increasing complexity of my python scripts.
>>
I'm bored and I feel like nothing can really excite me.

Someone please suggest something interesting to build. Something that makes me go "damn that'd be cool".
>>
>>60252856
a cure for hairloss.
>>
File: dlang chan.png (319KB, 470x545px) Image search: [Google]
dlang chan.png
319KB, 470x545px
>>
>>60250561
Nah I created directories in the same directory using the same GetCurrentDirectory() method and it created directories fine.
>>
I have a bunch of urls in a file I'm cUrling, is there a good way to speed it up?
>>
>>60252928
make sed feed you one line at a time from your url list and then run wget and detach with the url directly instead of passing wget a file
>>
>>60252946
I was using curl with -K option and create-dirs/output so it would make make file structure, wget can't do that but I could work around it I suppose. Will this actually be faster?
Perfect thing would be curl that could have a thread limit and parallel download from file.
>>
>>60252785
I'm not British either. I hope being retarded works out for you, anon.
>>
>>60252900
This is actually really hot. Reminds me of that one h-manga where the guy cums in the zombie-girl's eye socket.
>>
>>60253092
even in death, D is for language fetishists
>>
>>60252977
I think I got something.
This will run your entire list at once.
Most sites will try to throttle you if they think you're being an asshole.
for i in `seq 1 $(cat url.txt | wc -l)`; do wget $(sed -n "${i}p" url.txt) &; done;
>>
import std.stdio;

void main()
{
find_mean(2, 9.1).writeln();
}

T find_mean(T)(T x, T y)
{
return (x + y) / 2.0;
}

Works. But
import std.stdio;

void main()
{
find_mean(2, 9).writeln();
}

T find_mean(T)(T x, T y)
{
return (x + y) / 2.0;
}
Doesn't.

How do I return a type that is not dependent on what the arguments were?
>>
>>60252644
Bash
>>
>>60253141
/g/ is broken, isn't it
>>
>>60250799
Writing msdos programs in C++17.
>>
>>60253141
E find_mean(T, E)(T x, T y)

Read Andrei's book when you get the chance
>>
>>60253159
Thanks
>>
>>60253159
template mode.find_mean cannot deduce function from argument types !()(
int, int), candidates are:
mode.d(8): mode.find_mean(T, E)(T x, T y)
>>
>>60253119
Won't this start tons of background processes?
>>
Are there jobs for people to just do Database/SQL shit? My GF's sister works for some company and had to learn SQL for auxilliary functions in her job. I'd probably be just fine doing Database stuff
>>
sup ass fags
>>
>>60253205
Ask on the D forums
>>
>>60250799
Did not get a reply in last thread: What is the mac equivalent of `cat /sys/class/thermal/[...]`? Can it be done by just reading from a file?
>>
File: akari a cute.gif (880KB, 500x281px) Image search: [Google]
akari a cute.gif
880KB, 500x281px
>>60253207
yes, it daemonizes every run of wget but it's the easiest way to do parallelism in bash

Also I rewrote it to work better.
for i in `seq 1 $(cat url.txt | wc -l)`; do nohup wget $(sed -n "${i}p" url.txt) & > /dev/null; done;


Also can someone tell me if I'm using redundant bash features? It's hard to tell.
>>
For fuck's sake, are you idiots still going on about D? The deadest language ever? Even more dead than COBOL (an anon got a job writing COBOL recently, that's more than can be said for D), it was dead on arrival, it will never lose its garbage collector, it does nothing that other languages cannot do better.
>>
File: 1485212752368.jpg (182KB, 978x972px) Image search: [Google]
1485212752368.jpg
182KB, 978x972px
>>60253360
>autistic meltdown
>>
>>60253360
D's not dead though
>>
>>60253373
Where does his post say "autistic meltdown"?
>>
>>60253382
>his
my*
>>
>>60253360
Something being trash doesn't mean it's "dead".
>>60253379
Correct, but I'll make it more general: no programming language is "dead" or "alive".
>>
>>60253391
was about to post this
>>
>>60253373
Just admit your language lost, Andrei.
>>
>>60253391
A quote cannot contain itself as an element.
>>
>>60253353
It's too many urls to just spawn a bunch of wgets, I'll look into doing a pool or something if need be.
>>
File: stack overflow developer survey.png (71KB, 717x1177px) Image search: [Google]
stack overflow developer survey.png
71KB, 717x1177px
You haven't learned a useless language, right /g/?
>>
>>60253428
Define useless
>>
>>60253428
Based Java Script
>>
>>60253438
JavaScript is useless because it is single-threaded
>>
>>60253443
You didn't answer his question. Literally anything is useful under the standard definition.
>>
>>60253416
Just admit that your same-fagging isn't going to change the fact that people use whatever they feel like
>>
>>60253454
No, JavaScript is actively harmful and impedes usability. Anybody who claims to have accomplished anything with JavaScript is either lying or has created negative utility.
>>
>>60253457
But too often people do the equivalent of rolling around in shit, and they should not do that. We should take the shit away from them, force them to shower and then apologize to the rest of humanity for having been such a bad person.
>>
>>60253443
>>60253464
>>60253428
>>60253416
>>60253360
>Being THIS much ass flustered over people using a language on /g/
How boring is your life, fatty?
>>
>>60253479
>We
me*
>>
>>60253479
le gatekeeper guardian, can u post ur programming socks?
>>
>>60253482
>fatty?
Did you just assume my body type, shitlord?

Anyway, I get annoyed when other people use Python or JS because it means more employers will use Python or JS and so the chance of me having to use them at work also increases. They're utterly shit languages and anybody who uses them will surely burn in hell.
>>
>>60253492
>Me should
That's not correct English, are you having a stroke?
>>
>>60253507
>I get triggered when my safe place is hurt
Aww, the gate keeper is still crying
>>
File: Dlang convention.jpg (192KB, 1200x888px) Image search: [Google]
Dlang convention.jpg
192KB, 1200x888px
It's funny to think that this one room holds every single D developer on earth.
>>
>>60253464
>impedes usability
Which implies there exists something to impede. Meaning it is useful, even if in a sick and twisted way.
>>
>>60253482
>Being THIS much in denial
You need to seek help. What you're doing is not healthy.
Accept it's death.
>>
>>60253543
Proof?
>>
>>60253550
its*
>>
>>60253506
>le
>>>/r/abbit
>>
>>60253554
https://twitter.com/D_Programming
>>
>>60253550
>Being THIS much in denial
Denial of what again?
>>
>>60253543
Oh wow, times must be hard if they're having to share conference rooms with the COBOL developers (on the left)
>>
>>60253566
I don't see anything about that being every single D developer.
Are you okay anon?
>>60253578
There aren't any COBOL devs there though
>>
>>60253577
D's death, and the fact that Tomboy-chan is not going to get MC's dick.
>>
>>60253603
>There aren't any COBOL devs there though
Like I said, they're on the left side of the room in that pic.
>>
>>60253606
D's not dead though
>>
>>60253606
>D's death,
How can a programming language be "dead"?
>>
>>60253626
When nobody uses it.
>>
>>60253623
If it's not dead, then it's certainly not alive.
>>
>>60253622
Nah, those are D devs. Are you okay anon?
>>
>>60253578
>Still samefagging
You are trying really hard aren't you?
>>
>>60253633
That's wrong, I use it, and so does other anons ITT
>>
post projects for intermediate posers
>>
>>60253626
By having absolutely no niche or mainstream appeal, despite being over 15 years old.
>>
>>60253635
They're COBOL devs, I recognize most of them from Cobolcon.
>>
>>60253633
Good thing people use D
>>60253634
That doesn't make sense, it is alive
>>
>>60253644
Show me something you've made in D
>>
>>60253653
You should probably say "something non-trivial".
>>
>>60253648
>By having absolutely no niche or mainstream appeal
what is a "mainstream appeal"?
>>
>>60253651
You're almost as autistic as the tranny neet illya desktop autist.


almost
>>
>>60253649
Sure you do
>>
>>60253653
I've written *nix coreutils in D
>>
>>60253671
What if they're the same person and it's literally one guy being a zealot on /g/ because they're 500lbs and can't leave their room and this is their whole life.
Now that I think about it, the maki spammer was probably the same guy.
>>
>>60253671
>>60253684
>exactly one minute apart
Oh this butthurt LMAO
>>
>>60253645
Write your own anime language.
>>
>>60253649
>I recognize most of them from Cobolcon.
>>60253635
>those are D devs

Why does this autist think these are mutually exclusive?
>>
>>60253709
If D is not dead, it's trash.

D is a language for the 90s that was first released in 2001. That should tell you everything you need to know about it.
>>
>>60253730
>finally admitting it's not dead
Progress
>>
>>60253730
>D is a language for the 90s
Citation required
>>
>>60253722
COBOL users have more sense than to use a dead language like D.
>>
>>60253747
D's not dead though
>>
>>60253747
How can a language be dead again?
>>
>>60253762
Yes it is. What do you think the D stands for?
>>
>>60253741
>>finally admitting it's not dead
No he didn't. He said
¬dead(Dlang) → trash(Dlang)
which is not the same thing.
>>
>>60253747
They sure are interested in going to D Conf
>>
>>60253769
Development
>>
>>60253771
Is it really any surprise that D fans cannot reason logically?
>>
>>60253776
D Conf had to beg Cobolcon to let them use part of their conference room.
>>
>>60253769
D
>>60253771
Well since it's not dead, he's saying it's trash now
>>60253784
(you)
>>
>>60253781
Dated
>>
>>60253797
Cobolcon had to beg D Conf to let them use part of their conference room.

Fixed
>>
>>60253805
>he's saying it's trash now
No he didn't. Learn to logic, fuckface.
>>
>>60253797
>>60253811
>Exactly one minute apart
You can stop trying, gate keeper
>>
>>60253771
>~dead(Dlang) ⊃ trash(Dlang)
Fixed that for you.
>>
>>60253811
What's wrong with being dated?
>>
>>60253815
>If D is not dead
This is true, so
>it's trash
is true (according to him)
I think it's you can't into logic
>>
>>60253813
That would never happen: COBOL programmers get paid to write COBOL, which is more than can be said for any D programmer.

>>60253815
I don't think they teach logic at code bootcamps.
>>
>>60253822
>gate keeper
This is adorable.
>>
>>60253835
>That would never happen
True. COBOL is so shit that people have to pay others to use it, whereas people use D without even getting paid for it
>>
>>60253832
>D is not dead
He didn't say that.
>>
>>60253852
I have a reddit tab open. RUN! Redditors are raiding 4channel!!!
>>
>>60253861
It's a true fact regardless
>>
>>60253852
<3
>>
>>60253868
Prove it.
>>
>>60253860
Whereas D users are so desperate to for D to be relevant that they'll work for free, and even then they can't find any takers.
>>
>>60253873
I already have a few times here, you autists just never pay attention
>>
>>60253877
That just means D is so nice it makes people do their job without even offering any money
>>
>>60253881
No you haven't. I've already proved the contrary, anyway: >>60253648
>>
>>60253861
Uh, could you like, maybe, stop assuming my gender? It's really triggering, you could at least ask me my pronouns (they're The Transcendental One and The Transcendental One's, by the way.)
>>
>>60253899
I have, but I guess I'll reiterate for you
>in active development
Therefore not dead

https://dlang.org/orgs-using-d.html
>>
>>60253921
You can dress up a corpse and shake it around, it doesn't make it alive.
>>
>>60253931
>no counterargument
Nice
>>
>>60253937
See >>60253648

also >ye not an argument meme
>>
thinking about making an algorithm to generate passwords for everything so i don't have to memorize a billion different ones, or use the same one for different things. i'd just have to remember the key and then put it into the algorithm and copy paste the output. thoughts on this?
>>
>>60253931
How is a language "dead"? It makes no sense
>>
>>60253921
You can "develop" a dead horse all you want. It's not going to be winning any competitions, though.
>>
>>60253945
Looks like it does have a niche appeal.
>>
>>60253949
you don't understand how latin is a dead language?
>>
>>60253949
See >>60253648

Also the last couple times I interviewed D hobbyists they couldn't program for toffee.
>>
>>60253945
>>60253952
>active
>in use by multiple companies
>hurr it's dead
Y'all amaze me
>>
>>60253931
>>60253952
>Has to same fag to spread FUD about a supposedly dead language
Doesn't look like dead to me, anon
>>
>>60253961
Well, it has a niche appeal? And how about you stop pretending that you are a hiring manager for once?
>>
I was going to learn CPP for my first real programming language but a lot of people are saying rust is better, which should I learn.
>>
>>60253978
Rust
>>
>>60253976
>niche appeal
What niche? D doesn't have a fucking niche.

>>60253978
The C preprocessor is not a language in itself. It's not even Turing complete.
You probably want to learn C instead.
>>
>>60253962
How can a language be "dead"?
>>
>>60253968
It's amazing, mention it once and someone goes off
>>
>>60253994
>What niche?
Any. D is a general purpose programming language.
>>
>>60253996
I wasn't saying that
>>
>>60253994
>C
C is Cancer though. It's got no reason to exist
>>
>>60254007
And yet nobody uses it.
Under what situation would anybody say "I have to use D for this, because it is the most appropriate tool for the job"?
>>
HASKELL IS HEALTHY
RUST IS ROBUST
IDRIS IS IRIDESCENT
JAVA IS A JOKE
PYTHON IS PATHETIC
COBOL IS CREAKING
D IS DEAD
>>
>>60253360
>are you idiots still going on about D?
> Even more dead than COBOL
>more than COBOL
I don't see too many COBOL being posted here, D is pretty frequent though.
>>
>>60253976
>programmers don't conduct interviews
This is how I know you don't work as a programmer, so I can safely discard everything you say about programming from now on.
>>
>>60254021
>And yet nobody uses it.
>>60253644
>>
>>60254034
When did he say that?
>>
>>60254033
One anon got a job a couple of weeks ago using COBOL.

No anon has ever got a job writing D.
>>
>>60254034
>programmers don't conduct interviews
When did I say that, idiot. All I told you is to stop pretending that you actually have a job
>>
>>60254041
Did you read my post before responding to it?
>>
>>60254040
>>60254043
He/you assumed that, since I said I interview people, I must be pretending to be a hiring manager. See >>60253976.
>>
File: mens room.png (214KB, 480x460px) Image search: [Google]
mens room.png
214KB, 480x460px
There are literally more COBOL programmers than there are D developers, and COBOL is 60 years old.

COBOL has a niche and D does not.
There has never been a problem were you say "I should use D for this because it's the best tool for the job."

Do not reply to the D shitposter.
>>
>>>/pol/124419375

a spam bot is going crazy in a /pol/ thread and printed this out. What's going on here?

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Unknown Source)
at java.lang.String.<init>(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at org.ctr.TopicParser.dump(TopicParser.java:23)
at org.ctr.TopicParser.main(TopicParser.java:59)
>>
>>60250890

Spyder.
>>
>>60254057
Oh okay. In that case you can stop pretending to be employed then. :)
>>
>>60254052
Of course not, you're a Rust programmer (irrelevant).
>>
>>60254057
See >>60253962
>>60254058
>D shitposter
It's our fault some faggot got triggered by it earlier in the thread?
>>
>>60254062
Can't you guys feel your eyEEE?/exit2;runneod2213.exif

{

[ERROR_PATH_NOT_FOUND (0x3)]
Syntax;1 (0x1)
Incorrect function = !0
12 (0xC)14 (0xE)13001 (0x32C9);Procedure


13012 (0x32D4),Main Mode pending deletion;5$

ERROR_IPSEC_IKE_NEG_STATUS_BEGIN
DRIVER_IRQL_NOT_LESS_OR_EQUAL;
WXYZ.sys=AddressF73120AEbase C0000000000; DateStamp 36b072a3


mplerr_TAG;Invalid TagArgument

PathNotFound;C:\Users\12B\Documents\LarianBase;
0x0000CE driver_unloaded_without_cancelling_pending_operations;0x800705b4=TIMEOUT;cn=mS-SMS-Version.ErrorCode=8224

}
>>
>>60254058
What if people do reply to "the D shitposter"? Are you against free speech?
>>
>>60254069
Too late, you got your ass fucked. Own it. Be proud of it. Show off your leaking sphincter.

>>60254062
>OutOfMemoryError
Wow, I wonder what could be going on, there's no clues at all in that message.
>>
>>60254062
He's just fucking with you.
A program that actually fucked up would be printing garbage because of an unterminated string or whatever.
It would also segfault pretty quickly.
>>
>>60254070
Well in that case, learn to read before you write.
>>
>>60254062
>>60254075
/dev/ifx_mps/cmd. In the current state, no ifx_mps channels are opened by any process. After closer examination, the 70 SvcConfig processes have the following command line:

SvcConfig services.conf -startLogDaemon -logAll V2 R0.92.0 HFA 120822

lsof | grep ifx_mps | wc -l
ps -ef | grep SvcConfig | wc -l


The SvcConfig (using PID 503 as an example) process opens the following files (in addition to numerous sockets and pipes filtered out of the result below):

SvcConfig 503 ??? cwd ??? ??? ??? ??? /Opera_Deploy
SvcConfig 503 ??? exe ??? ??? ??? ??? /Opera_Deploy/SvcConfig
SvcConfig 503 ??? 0 ??? ??? ??? ??? /dev/null
SvcConfig 503 ??? 1 ??? ??? ??? ??? /dev/null
SvcConfig 503 ??? 2 ??? ??? ??? ??? /dev/null
SvcConfig 503 ??? 10 ??? ??? ??? ??? /Opera_Deploy/healthservice.conf
SvcConfig 503 ??? 24 ???
>>
>>60254078
>you got your ass fucked.
The point still stands: You are pretending to be employed while you are not
>>
>>60254062
I just looked at it, and it's nothing. Don't pay any attention to this, it's just trolling.
>>
>>60254072
>some faggot got triggered
You are replying to him
>>
>>60254085
>Rust programmer (male)
Stopped reading there.

I think Rust could be a good language, but I don't want to have to keep thinking about the genders of its users.
>>
>>60254093
>You are pretending to be employed while you are not
Prove it.
>>
>>60253234
Please? I really want to know if appleshit exposes sensor data like that at all.
>>
File: awoo~~~.png (157KB, 600x1000px) Image search: [Google]
awoo~~~.png
157KB, 600x1000px
3-star C programmer here.
Should I learn Rust or Go to diversify my skills?
>>
>>60254124
Learn Go if you fancy killing brain cells without drinking.
>>
>>60254113
It's proven by the fact that you think
1. COBOL programming and D programming are mutually exclusive
2. Programmers cannot be hiring manager
>>
>>60254124
You're probably allergic to any remotely good type system, so Go.
>>
>>60254124
Rust.
>>
>>60253716
Is this a meme or an actual suggestion?
>>
>>60254079

I don't think so. The /pol/ thread is really weird /x/ shit about freemasonry.
What about these?

>>60254086
>>60254075
>>
>>60254124
Since you already know C, why don't you try Rust. It has manual memory management
>>
>>60254142
Actual suggestion. It's pretty fun.
>>
>>60254153
Where would I start? I assume I'll just be creating a wrapper around c++ by overloading a bunch of shit?
>>
>>60254159
That is literally the worst starting point you could have chosen.
>>
>>60254164
Well fuck.
>>
>>60254135
>Programmers cannot be hiring manager
Let's do this step-by-step, since you obviously have the intelligence of a gnat.

I said that I'd interviewed people.
Then you told me to stop pretending to be a hiring manager.

Therefore you thought that only hiring managers interview people. That assumption betrayed your ignorance of how companies operate.

Nowhere did I say that programmers cannot be hiring managers.

>COBOL programming and D programming are mutually exclusive
I defy you to find someone who presently writes both COBOL and D.
>>
>>60254124
To continue,
Go is your run of the mill managed programming language. Rust introduces you to a different paradigm --I like to call it "lifetime oriented" programming.

However Go's simplicity may attract you. Problem is, with C's simplicity you are given a lot of freedom, this is not the case for Go
>>
>>60254193
>Go is your run of the mill managed programming language.
No. Go is much worse than a run of the mill language. It somehow manages to be worse than C.
>>
>>60254159
Why would you do that? Sepples is a very bad language. Would you want your own language to be garbage as well?
>>
>>60254206
Is that why C++ doesn't have a garbage collector? Because it would collect itself?
>>
File: smug_ran.jpg (632KB, 709x1063px) Image search: [Google]
smug_ran.jpg
632KB, 709x1063px
>download two gcc compilers
>run them at the same time
>???
>parallel computing
>>
>>60254186
>>COBOL programming and D programming are mutually exclusive
>I defy you to find someone who presently writes both COBOL and D.
Was that actually supposed to be an argument?
>>
>>60254227
you don't have to download a program twice to run it twice
>>
>>60254203
Elaborate
>>
Jesus christ, how pathetic can you get to be this flustered by someone using a programming language you dont like.
>>
>>60254252
Bear in mind that it's summer now
>>
>>60254228
You're claiming a positive, that someone exists who is both a D programmer and a COBOL programmer. Provide an example of such a person. The burden of proof is on you.
>>
>>60254261
But this is /g/, not /v/.
>>
>>60254261
No, I'm pretty sure it's late autumn.
>>
>>60254237
>Elaborate
I thought it was quite a plain and simple post, actually.
>>
>>60254284
Your claims had no backings
>>
>>60254284
Trannies are pretty slow at times please bear with him (her).
>>
>>60254270
This doesn't make sense.
If he claimed that the existence of someone who is both a D programmer and a COBOL programmer would be contradictory, then he would still have to prove it, but it's not a positive claim.
>>
>>60254237
C has the ternary operator.
>>
>>60254261
Why do you keep pointing out that you're a male?
Does your external appearance not match your gender?
Is there a preconceived notion that all rust programmers are women that I wasn't aware of?
>>
>>60254300
That's it? Really?
Are you new to programming?
>>
>>60254300
It was only included to correct C's deficiences compared to ALGOL.
>>
>>60254305
If people are proud of the fact that they are female, I'm also proud that I am male
>>
>>60254306
No, there are a lot more aspects to it than that, but that one is quite simple and gets the point across: that Go eschews conveniences for the programmer, presumably to make things easier for the compiler writer.
>>
>>60254308
Irrelevant.

>>60254314
Why is it that people are allowed to be proud of being male or female, but other people aren't allowed to be proud of being furries?
>>
>>60254305
>all rust programmers are women
All /dpt/ posters are women pretending to be men. Rust programmer (male) is lying through her teeth.
>>
>>60254334
furries are not a gender
>>
>>60254346
Who said anything about gender?
>>
anyone got the programming challenge picture? post it pls need some practice
>>
>>60254345
I'm a 2D anime schoolgirl, check your cisdimensional privilege.
>>
>>60251896
Just learn vanilla javascript. Never ever bother with frameworks. They're for nu males with no grasp of programming.
>>
>>60254334
>but other people aren't allowed to be proud of being furries?
This is an interesting problem. See, with free speech, you can say anything you feel like. However people tend to get their morality from "religions".

This is where the interests collide. From the ancient times, the Church has been actively against free speech. 4chan (many of) thinks that both freedom of speech and morality should be preserved.

Now, which one do you want more? Free speech? or Religion? If you chose free speech, people should be allowed to advocate for faggots, furries, pedos, etc
If you chose morality, you can start denying that santa doesn't exist and the earth isn't really flat
>>
>>60254370
>>>/g/wdg
>>
>>60254354
Rewrite freeBSD coreuitls, it's more lucrative imo
>>
>>60254387
>>60254398
Does your language have HKTs yet? Real ones, that you can implement traverse_ with? Or is it still a bust?
>>
>>60254413
Never used HKTs really. I am more familiar to linear-imperative programming style that I learned from K&R
>>
>>60254426
The two are not mutually exclusive.
>>
>>60254398
here your (you) bud
>>
>>60254426
Also, I believe you can implement your own HKT with macros if you really have to
>>
>>60254437
I've seen that, it gives you a very limited form of HKTs that you can't do a lot of useful things with.
>>
>>60254434
K&R didn't say anything about HKTs as well

>>60254437
I'm not joking, anon. It's easier than you think
https://www.freebsd.org/ports/sysutils.html

It's much more practical than the arbitrary "challenges" you may find in the pictures you are looking for
>>
@60254437
How can you implement a type? And why would he need only one type?
>>
>>60254460
As I said, I never used HKT's, so I wouldn't know the usefulness of it

>>60254436
see >>60254467
>>
>>60254206
Oh fuck I just realized I didn't put C++ into the original request. That makes sense
>>
>>60254467
wrong link
https://www.freshports.org/sysutils/coreutils/
>>
>>60254482
You could write your language in sepples, but why would you want to inherit all of its garbage?
>>
>>60254478
>As I said, I never used HKT's, so I wouldn't know the usefulness of it
Sorry if my posts seemed accusatory! I certainly don't blame you personally for the HKT situation in Rust.
>>
>>60254387
Made me think
>>
>>60254389
>nu males with no grasp of programming.
>>
@60254387
>Now, which one do you want more? Free speech? or Religion?
Sound like something a leftist retards would say.
>>
>>60254494
Oh, I meant for C++ project ideas. I assume if I put that, the suggestion wouldn't have been to write a language. Or maybe it would have been.
>>
>>60254516
And?
>>
>>60254387
Free speech means you can't be locked up for saying something. It has nothing to do with societal norms.

It's in no way hypocritical to use one's own free speech to tell somebody else expressing their speech to fuck off.
>>
>>60254517
You could write it in anything really, of course sepples isn't the ideal choice, but if it's your main language then I don't see why not.
>>
>Rust
>Guaranteed TCO is probably not going to happen, or at least if it does happen it's not going to be pervasive.
Why would you design a language like this?
>>
>>60254387
>See, with free speech, you can say anything you feel like
Nowhere on earth has unrestricted free speech.
>>
@60254532
That would imply anything you have to say is most likely absolute trash which is self-contradictory.
>>
NEW THREAD!!

>>60254560
>>60254560
>>
>>60254542
Its called being short-sighted with your one gimmick in mind.
Rust is only gonna get worse with time just like haskell.
>>
>>60254535
Actually free speech as a general principle does include societal norms. The idea that there are certain topics that "shouldn't be talked about" or "shouldn't be questioned" do go against the principle of free speech. Usually though, when people say free speech they mean it in the context of the Bill of Rights, which basically does mean you can't be jailed for your speech, but no one is obligated to listen to it or allow you to practice it on their property.
>>
>>60254535
>societal norms.
They may conflict free speech rights

However you are free to disagree with someone with whom you don't agree with. But, once someone is proven correct, the norm has to change accordingly. This is how humans evolved since the stone age

>>60254553
N Korea, China
>>
Rust "programmer" is a retarded l*ftist. What a surprise.
>>
>>60254572
>N Korea, China
Is this just shitty bait?
>>
>>60254611
If I have leftist views, would that make me a criminal?
>>
@60254627
That would merely make you non-human.
>>
>>60254612
Nope, his kind is actually this retarded.
>>
>>60254538
I'm not exactly married to the idea of writing a language. I suppose I could try, but do you think it'd be more worthwhile to learn to apply the language with a different project first?
>>
>>60254612
I think they meant that they were examples of countries that make most Western countries seem to have ALMOST total free speech in comparison to them. I mean, I'm a leftist myself and I think the DPRK is an utter disaster, and if I did find something good to say about it, I'm pretty sure it wouldn't be that they had free speech.

>>60254631
Don't cut yourself on that edge.
>>
>>60254732
>but do you think it'd be more worthwhile to learn to apply the language with a different project first?
Writing a language is a pretty good project to learn a language though.
>>
>>60254835
>I'm a leftist myself
How does it feel to be less than human yet still somewhat sentient? Or do you deny it?
>>
>>60254858
What exactly makes me "less than human"?
>>
>>60255005
The thing I quoted.
>>
>>60255064
Please explain how a non-human could produce a post containing the string "I'm a leftist myself".
>>
What are bytes about and how do they matter in programming?
>>
>>60255131
If you're not lying then that is the only remaining possibility.
A sentient lifeform can be considered human or close to human only under the condition that it's not a leftist.
>>
>>60255433
>A sentient lifeform can be considered human or close to human only under the condition that it's not a leftist.
Could you elaborate?
>>
File: langs.png (27KB, 947x778px) Image search: [Google]
langs.png
27KB, 947x778px
>>60253428
A survey of what language is most popular on stack overflow doesn't tell you very much. This chart is a lot more useful. It was only fairly recently that Java passed C and C++. Android is the reason for that. For decades, C and C++ ruled because all operating systems (and Java itself) were based on them. But you shouldn't care what language everyone else uses, really. It's a handy footnote about what's considered "modern," and might help you in an interview, but it's not very important beyond that.
>>
is O(2 log n) a better efficiency than O(log n)?
>>
>>60255506
No. They're exactly the same.
>>
>>60255518
thanks
>>
>>60255478
On what? Being leftist requires being born with certain "defects" which are incompatible with being human.
Thread posts: 336
Thread images: 19


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