[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: 319
Thread images: 38

File: DPT.png (389KB, 934x1000px) Image search: [Google]
DPT.png
389KB, 934x1000px
Old thread: >>60886597

What are you working on, /g/?
>>
>>60892877
Lisp is the most powerful programming language.
>>
I swear using std::string is such a fucking pain. I swear, one of these days I'll have to make an entirely new string library

I can't use std::string anymore. Not after learning about Python, PHP, JavaScript. Pretty much any decent language

Why is std::string so bad, /g/?
>>
>>60892935
C++ is bad.
>>
>>60892935
Stop being an autist and just use C.
>>
>>60892949
No. C++ is the best language there is. I can't program in other languages anymore. I just don't feel right without needing a semi colon every line. I just can't not put the type of the variables.

>>60892955
>stop being an August and use irrelevant language #63279
C is only useful if you're writing a kernel. C++ is as fast as C, AND so much better to program in
>>
>>60892877
What wrong with his right foot?
>>
>>60892988
>his
Did you just assume zir gender?
>>
>>60892986
>C++ is the best language there is. I can't program in other languages anymore.
>so much better to program in
It's too late for you. Your taste is at shittiness levels that shouldn't even be possible. Suicide is the only option.
>>
>>60892986
>AND so much better to program in
Then why isn't the Linux kernel written in it?
>>
File: 1465540540280.jpg (68KB, 800x526px) Image search: [Google]
1465540540280.jpg
68KB, 800x526px
>>60892986
>C++ is the best language there is
>C is irrelevant
>C is only useful if you're writing a kernel
>C++ is as fast as C
Oh dear
>>
>>60893002
You can practically see the balls behind that skirt.
>>
the people behind daylight savings need to be gased or something because it makes programming extremely confusing
>>
>>60893058
In what way?

Your language has built-in ways to account for this, yes?
>>
File: dlang_chan.jpg (70KB, 349x368px) Image search: [Google]
dlang_chan.jpg
70KB, 349x368px
Threadly reminder that dlang-chan has RAII; she's quite fast in execution and compilation; she's becoming fully memory-safe; and she's super duper cute! Say something nice about her, /dpt/!

>Tour
http://tour.dlang.org/
>Books
https://wiki.dlang.org/Books
>GC
https://dlang.org/blog/2017/04/28/automem-hands-free-raii-for-d/
https://wiki.dlang.org/Libraries_and_Frameworks#Alternative_standard_libraries_.2F_runtimes

>>60892935
Just work with dlang-chan, anon.

>>60892969
This always gets me horny and in the mood to program.

>>60893021
>muh social media memes
Poor form.
>>
>>60893068
Stop spamming, you fucking necrophilac. You're just as bad as the pymeme spammer.
>>
>>60893068
Ugly, rarely used, never going to make it, doesn't provide enough advantages over its competitors to invest the time and energy.
>>
>>60893065
Yeah the language support is great, Boost, it's just trying to understand all these different data feeds in different time zones which switch over at different weeks.
>>
>>60893065
In Lisp, this is just
(get-decoded-time)
>>
>>60893093
no one uses lisp
>>
What happens if I just create a while loop with some sleep function and call it a daemon? Will I get chewed out for it?
>>
>>60893099
Daemonising "properly" isn't even hard. I don't know why you would bother doing that in such a hack-job way.
>>
>>60893098
So?
>>
>>60893110
How do you do it?
>>
>>60893076
Can please post something on-topic, shitposter-kun? Thanks.

>>60893078
>Ugly
You must be the first detractor of dlang-chan to say this.
>never going to make it
She's actually been having a reassurance of interest. It surprises me too, but Walter and Andrei have been putting in some good work.
>doesn't provide enough advantages over its competitors to invest the time and energy.
She actually does. Just follow some of my links, anon. Plus, she's pretty quick to learn.
>>
>>60893050
You've been looking at to much trap porn.
>>
>>60893068
Exactly
>>60893133
Uh, I agree... nothing to see there.
>>
>>60892877
I miss the trap poster.
Was the name himegoto or something?
>>
File: dragon loli.jpg (107KB, 1280x720px) Image search: [Google]
dragon loli.jpg
107KB, 1280x720px
function overwrite() {
var arr1 = "aaaaaaaaaa";
var arr2 = "bbbbbbbbbb";
for (var i in arr1)
arr2[i] = arr1[i];
console.log(arr2);
}
...
bbbbbbbbbb


Defend this.
>>
>>60893110
Maybe not, but from scratch it seems far harder than a what I proposed. For example, I have realized all daemons on my machine run as their own user, and their directories are owned by this same user. I don't know if this is kernel feature, nor how such user is even created.
>>
>>60893121
It depends on the platform and kernel.
>>
>>60893121
Close stdin/stdout/stderr if you don't need them.
fork() and kill the parent.
Do some blocking call on some resource you're looking for. Most programs will have a poll/select loop, so it almost always happens there.

If your program just needs to go off every X minutes or whatever, then you could get away with just sleep()ing or whatever, but things like signals can cause you to wake up early.
>>
>>60893155
Use a language that works.
>>
>>60893133
I've never. Only futa.
>>
>>60893130
Call me when a major company solidifies it as the de facto first-class language all of their integrations and tools are targeting.
>>
>>60893175
The manga is 6 volumes, it's much better than the anime, which was hackjobbed to fit into 30 minutes and is really just an advertisement for the manga anyway.
>>
>>60893155
Strings are not mutable in javascript, nor are they arrays. The index operator is for access, not for assignment. When you run your code, you are creating two new strings, "a" and "b", assigning the value of the "b" string to the "a" string, destroying both strings, and then repeating.

I'm sorry that not every language works like C anon.
>>
File: 16e.png (645KB, 670x997px) Image search: [Google]
16e.png
645KB, 670x997px
hey devs we are making a web browser >>60885202
>>
>>60893206
How do I mutate arrays in javascript then?
>>
>>60893209
I'll make the logo!
>>
>>60893180
I'm hoping that day will come soon. But I do know that Facebook and Ebay made some of their shit with dlang-chan. Also, if you're looking for languages to make a lot money, then yeah, dlang-chan isn't something you should chose at the moment. But for personal projects and the like, dlang-chan is a good choice.
>>
>>60893217
Arrays are naturally mutable. Strings just aren't arrays
>>
>>60893209
just like the time /g/ was making a gta game, an operating system, and a programming language? (all failed)
>>
>>60893195
Yeah. I've been meaning to read it for a while. Thanks for reminding me.

>>60893155
That code will throw in strict mode.

>>60893217
Using the [] operator like normal. The problem was he was using [] on a string, which is read only since strings are immutable.
>>
>>60893224
You just said the index operator doesn't do assignment.
>>
>>60893209
>/g/
>writing an entire web browser with a billion high level bloat features
>all in C
Ahahahaha
>>
>>60893232
On strings, because they aren't mutable

Pay attention.
>>
>>60893225
Don't forget gTorrent.
>>
>>60893209
>Continuously coming up with new ideas without doing anything
it me
>>
#include <iostream>
#include <ctime>
#include <ratio>
#include <chrono>

int main ()
{
using namespace std::chrono;

high_resolution_clock::time_point t1 = high_resolution_clock::now();

std::cout << "printing out 1000 stars...\n";
for (int i=0; i<1000; ++i) std::cout << "*";
std::cout << std::endl;

high_resolution_clock::time_point t2 = high_resolution_clock::now();

duration<double> time_span = duration_cast<duration<double>>(t2 - t1);

std::cout << "It took me " << time_span.count() << " seconds.";
std::cout << std::endl;

return 0;
}


What the fuck is this frankenstein monster of a language? Why do I have to dive so many layers deep into using all these special situation specific containers and methods just to compare two points in time? Can anything be generic or even a little bit intuitive?
>>
>>60893228
>that code will throw in strict mode
any way to enable typeerrors in node.js?
It throws errors in chrome's console, but not in node.js.
>>
>>60893209
what if your web browser had support for pure c scripts by compiling them to a temp directory and dynamically linking them into the browser, and its support for javascript worked by compiling the javascript to c first and then compiling the c -- you know, for the design boosts
>>
>>60893283
use C
>>
File: itsatrap.png (873KB, 1275x677px) Image search: [Google]
itsatrap.png
873KB, 1275x677px
>>60893284
It'll throw in node just the same. Strict mode is a part of the ECMAScript spec, not just a convenient put in by browsers. And node uses V8 anyway.

In your node REPL, try evaluating
(function() {'use strict';var foo='abc';foo[1]='f';})()
>>
>>60893284
>It throws errors in chrome's console
What, the code in >>60893155? Not without strict it doesn't.

Also
>type errors in a ducktyped language
>>
>>60893155
>>60893217
>>60893232
>>60893284
Why are you working in javascript if you're this desperate to hate it?
>>
>>60893298
convenience*

>>60893289
Tangentially related but a PSA for anyone interested, you can run C and C++ in the browser thanks to the wonders of LLVM, because a JS backend for LLVM called Emscripten exists.

Although it's really tightly integrated with clang right now. It's basically a C/C++ to JS compiler. It supports OpenGL, OpenAL, libSDL, and a lot of other stuff.
>>
>>60893298
Nothing happens when I paste that into nodejs.
>>
>>60893283
in c this is just
#include <stdio.h>
#include <time.h>
int main() {
clock_t t1 = clock();
puts("printing out 1000 stars...");
int i; for (i = 0; i < 1000; i++) putchar('*');
puts("");
clock_t now = clock();
double span = ((double) (t2 - t1))/CLOCKS_PER_SEC
printf("It took me %lf seconds.\n", span);
return 0;
}
>>
>>60892877
/dpt/ - Designated Pajeet Thread
>>
Why does nobody use Lisp?
>>
>>60893344
>being so dumb you can't even paste one line of code properly
>>
>>60893355
That can be cleaned up a lot better.
#include <stdio.h>
#include <time.h>

int main()
{
clock_t start = clock();

puts("printing out 1000 stars...");
for (int i = 0; i < 1000; ++i)
putchar('*');

clock_t end = clock();
double span = (double)(end - start) / CLOCKS_PER_SEC;

printf("\nIt took me %f seconds.\n", span);
}
>>
>What are you working on, /g/?

Reading shit because im going to job interview in few hours.
>>
>>60893367
(girl (male))
>>
>>60893376
>for (int
this isn't valid c89 tho
>>
>>60893388
>C89
Go home, granddad.
>>
>>60893394
>>60893388
Actually, I should point out that the first example wasn't valid C89 either, as it had mixed declarations.
>>
File: Mermaid_Man2.jpg (96KB, 1152x864px) Image search: [Google]
Mermaid_Man2.jpg
96KB, 1152x864px
>>60893388
>C89
>yfw
>>
>>60893401
whoa i just looked that shit up and you're right
my compiler never bothered me about it so i always assumed it was valid
turns out the reason my compiler never bothered me about it is because this is not 1989
shit breh
>>
>>60893367
If I want to write code in that style I'll use Haskell for better actual static type verification and real purity so that I get really strong compile-time guarantees. This isn't even considering Haskell's vastly superior syntax. (For humans - it's at the other end of the spectrum. It's actually a mess to parse. Whereas Lisp is homoionic and easy to parse but a mess for humans to use.)

But most of the time I use languages I could get employed using, if only because of the existing support and libraries.
>>
File: a90.png (24KB, 200x200px) Image search: [Google]
a90.png
24KB, 200x200px
>>60893424
>my compiler never bothered me about it so i always assumed it was valid
Do you usually """program""" this way?
>>
So, Rust is faster than C, is functional and has strong typing.
It also has macros, so Lisp is also deprecated.
Why haven't you switched yet?
>>
>>60893439
>lisp is functional
lmao
also, Haskell is useless since IO is too hard.
>>
>>60893449
Its macros are more limited than Lisp, its type system is more limited than Haskell and it's used by many crazy liberals
>>
>>60893439
but "purity" is a meme tho
literally nothing is "pure" about what a computer does when you take away all the abstractions and look at it for what it physically is
and thank god for that, because if you had a functionally pure processor, it legit just wouldn't do anything
>>
>>60893449
atrocious syntax
>>
>>60893449
>Rust is faster than C
It's objectively not, though.
>>
>>60893471
>caring about miliseconds
>>
>>60893462
IO is fucking easy in Haskell
>>
>>60893474
>moving about goalposts
>>
>>60893470
No language has good syntax.
Even haskell is shit when it's used on non trivial things.
>>
>>60893481
>No language has good syntax.
ruby
>>
>>60893467
purity makes it easier for you and the computer to reason about your programs
when performance doesn't matter, why should I give a shit about how the computer really works
>>
>>60893477
Really, because I find that even though IO is meant to to be isolated, it creeps up all my code.
Once I have an IO a, I have to use a function to unpack / repack.

Also, as a challenge, make a program that given a directory, will return a list of pairs (file, filesize) from all the files under directory.
>>
>>60892935
Try char const*.
>>
Creating a hotloaded HTML server that uses JavaScript running in v8 as an escape language, which is cool if you like JavaScript more than PHP.

It's a C# library so you can set props, like a model in MVC, from C# which can be cached in C# or come from a server or whatever.

Kind of like
<div>you are a {{props.insult}}.</div>

Where users can run code which generates the props in c#, so you can do db stuff in C# and UI stuff in JavaScript.

That's like
ScriptedPage.get = YourFunctionHereThatRunsSomeSerialisation;

And should return JSON, which is easy for me.

And I can do that because func<string,string,string> can be arbitrarily defined. Which is cool.
>>
>>60893467
Restricting your programming paradigm to be similar to the machine is only useful under realtime computing constraints, which Haskell wasn't designed for.

In fact, some argue that the productivity gains you can achieve with Haskell are derived from this pattern of distance from a 1:1 correspondence with the behavior of the machine.

The whole point of the compiler is to take your program specification and make it happen on the machine irrespective of the specific way the platform itself works.
>>
>>60893497
Nice evidence of the beautiful syntax there.
>>
>>60893539
>Nice evidence of the beautiful syntax there.
ruby
>>
>>60893546
>end
>|var|
lmao
>>
>>60893514
>why should I give a shit about how the computer really works
Because this situation:
>when performance doesn't matter
Does not exist.

>>60893538
>Restricting your programming paradigm to be similar to the machine is only useful under realtime computing constraints, which Haskell wasn't designed for.
see above
>>
>>60893560
>>end
>>|var|
>lmao
ruby
>>
>>60893519
use a free monad
also
import System.Directory (listDirectory, getFileSize)
go :: FilePath -> IO [(String, Integer)]
go p = listDirectory p >>= mapM (\x -> (,) x <$> getFileSize (p ++ x))
>>
>>60893576
You're no better than the redirect poster.
>>
>>60893582
>You're no better than the redirect poster.
ruby
[snorts quietly]
>>
>>60893581
"cleaner":


go p = do
dir <- listDirectory p
forM dir $ \i -> do
sz <- getFileSize (p ++ x)
pure (i, sz)
>>
>>60893581
>fpfags try to convince us they are not traps
>keep publishing their "moan ads"
pick one
>>
>>60893481
>No language has good syntax.
Python.
>>
File: DSD.png (23KB, 1196x500px) Image search: [Google]
DSD.png
23KB, 1196x500px
Hey guys, I'm willing to make a decision tree that will classify myopia, astigmatism and hypermetropia.

I will input just the sphere and cylinder of the left and right eye:

Sphere Left Eye: -2.25
Cylinder Left Eye: -3.00

Sphere Right Eye: -2.00
Cylinder Right Eye: -3.00

So if there is a value != 0 in both sphere and cylinder of an eye, that means this person has astigmatism and myopia or hypermetropia that specific eye. If there is no sphere value that means it has myopia, and if there is not cylinder value that means the person has myopia.

And the same if there are no values at all (means the person does not need glasses).

I know how to do binary trees, but I need some red pill on general trees and how to make them decide with the numbers I will input.
>>
>>60893706
AHHAHAHAHAHAHAHHAHAHA
>>
File: 1463221809970.png (527KB, 647x580px) Image search: [Google]
1463221809970.png
527KB, 647x580px
>>60893605
What is a "FP"?
>>
>>60893817
I wanna fuck that loli.
>>
>>60892877

Does anyone know how the fuck he got the equation for the larger and smaller variables?
Here's the answer:
#include <iostream>

int main()
{

long a {};
long b {};

std::cout << "Enter a positive integer: ";
std::cin >> a;
std::cout << "Enter another different positive integer: ";
std::cin >> b;

// The trick is to find arithmetic expressions for each of the larger
// and the smaller of the two integers
long larger {(a*(a / b) + b*(b / a)) / (a / b + b / a)};
long smaller {(b*(a / b) + a*(b / a)) / (a / b + b / a)};
std::cout << "The larger integer is " << larger << ".\n"
<< "The smaller integer is " << smaller << "." << std::endl;
}
>>
Writing android apps in Kotlin
it's nice being able to do this without dirtying my hands in poo
>>
File: 1497214889403.jpg (47KB, 475x530px) Image search: [Google]
1497214889403.jpg
47KB, 475x530px
>>60893836
>long a {};
>std::cout <<
>std::cin >>
>>
>>60893016
Be sure to kill yourself, faggot.
>>
>>60893855
rude
>>
>>60893838
Is Kotlin supposed to be like a better Clojure? What is its purpose?
>>
@60893838
>without dirtying my hands in poo
K*tlin is a POOlang.
>>
>>60893846
I know right?
I copied this directly from the author's github.
>>
>>60893714
http://crsouza.com/2012/01/04/decision-trees-in-c/

Try something like this as an example. I don't see why you'd use something complex like a decision tree when you just need a few if statements, or a switch.
>>
>>60893913

The point of it is not to use if statements.
>>
>>60893861
It has some quite cool features like if's as functions returning values. like they were ternary operators. removes alot of the bullshit java comes with
>>60893869
you're entitled to your opinion friend :)
>>
Is there a quick intro book to C++ with the current standards/practices. Reading up on it and there are 4 ways to call a constructor? Why?
>>
Red pill me on Kotlin.
>>
>>60894051
do it yourself entitled little faggot
>>
>>60894001
>you're entitled to your opinion friend :)
My opinion is correct though. K*tlin undeniably has POO and is therefore a POOlang.
>>
File: problem26.png (39KB, 1021x503px) Image search: [Google]
problem26.png
39KB, 1021x503px
how do I detect reciprocal cycles?
I can't just watch when a numbers repeats itself, r-r-rite? Cause there might be something like 0.1012310123 or shit like that, r-r-r-rite?

help pls
>>
>>60894201
what's with the rudeposting?
>>
>>60894209
Where exactly was I rude?
>>
>>60894205
Irrelevant. Show me the maths that say that, for example, pascal's syntax is better or worst than C's syntax. Why, based on a mathematical model, i should favor one __style__ over the other.
>>
>haha there is an error on a line where is no code
visual studio is such pile of crap
>>
File: 1494245864682.png (313KB, 700x995px) Image search: [Google]
1494245864682.png
313KB, 700x995px
>>60894334
The sooner you accept it, anon. The better you'll feel.
>>
File: 1485434212313.jpg (27KB, 158x156px) Image search: [Google]
1485434212313.jpg
27KB, 158x156px
AHAHA WHEN YOU DEFINE YOUR CONSTRUCTOR AS OBJECT::OBJECT() IN THE HEADER FILE IT WILL CREATE AN AMBIGUOUS CALL TO OVERLOADED FUNCTION. WHO THOUGHT OF THAT. LUCKILY VISUAL STUDIO IS SO CAPABLE TO AT LEAST GIVE A PROPER HINT OR LINE.
>>
>>60894334
>>60894360
>C++
You get what you deserve
>>
Lua actually makes me want to kill myself.

Why do indexs start at 1 and not 0
>>
>>60894201
everyone thinks their opinion is correct, it's human ego I guess. I disagree with you but I don't bash you about it, just study the language and you'll find it's good.
>>60894209
he's not rude, just a bit emotional I guess
>>
>>60894369
it has its quirks but it's visual studio and not c++ that want to make me kill myself
>>
>>60894397
lmao are you srs?
>>
>>60894407
Sure, whatever you say
>>
>>60894404
>everyone thinks their opinion is correct
This is irrelevant to the truth of my posts.
>I disagree with you
You disagree with what is obviously and undeniably true, K*tlin has POO (also known as "OOP") which means it's a POOlang.
>just study the language and you'll find it's good
I didn't claim it was "bad". I simply stated that it's a POOlang. And I don't use POOlangs for personal reasons.
>>
>>60894432
Sounds like there was a misunderstanding then, by POO i thought you mean the indian type of abstractfactorymeme SF hipster type of language., which it's not. The abstractions are much less on kotlin than on Java and the language structures are much more intuitive (you never have to use 300 libraries to do string interpolation and what not)

Don't repeat everything /g/ says trying to be socially accepted here, study the language and rate it yourself
>>
I have to implement a dictionary as a set in Python, where I have something like:
{id: X, value: Y}
The set has unique ids X, If a dictionary with X is already in the set, it's only updated if the new value is > than the old one
How can I achieve this?
>>
>>60894462
>by POO i thought you mean the indian type of abstractfactorymeme SF hipster type of language
Anything POO (as in "OOP") is already precisely that. It's just a matter of how much worse it is than other POOlangs.
>Don't repeat everything /g/ says trying to be socially accepted here
I couldn't care less about that.
>study the language
It isn't really worth wasting my time on. I have better things to do.
>rate it yourself
Anything POO already has the lowest possible rating in my book.
>>
>>60894486
>It isn't really worth wasting my time on. I have better things to do.
So you're making claims without even getting to know the thing just because. It's a good thing you dont care about how you look here I guess
>>
>>60894205
Do long division, a cycle ends when you end up with a repeat remainder. Cycles only occur when the denominator cannot be represented in the form 2^m * 5^n so you can eliminate those from the test.
>>
File: 1494592459187.gif (2MB, 270x188px) Image search: [Google]
1494592459187.gif
2MB, 270x188px
Any rust fag here? How do you create
1. Ranges with custom increment?
For example
iota(0, 10, 2)
should return [0, 2, 4, 6, ... 10]
2. How do you get each item?
For example
iota(5).each!writeln()
should print 0 ... 4 in each line
3. How do you create an infinite loop?
iota(0, INFINITY, 1).take(5).each!writeln()
should print 1 ... 5 in each line
>>
>>60894038
C++ treats you like a chef in a fancy kitchen, providing you with any kind of knife you like but kindly requests that you don't kill yourself with any of them.
>>
>>60894496
>So you're making claims without even getting to know the thing
I know that K*tlin is a POOlang. This is an undeniable fact. That's all I really need to ignore the language. I'm not interested in creating low quality software so it can't possibly offer me anything.
>>
>>60894465
Anon it's pretty trivial. Do the dictionary lookup. Get the value, compare it to the new value, insert the new value if it's greater than the old one.

If you know how to operate a dictionary in python and if statements its trivial. If you're looking for some pythonic one liner I can't help you. I don't have severe mental issues.
>>
>>60894511
https://doc.rust-lang.org/std/iter/struct.StepBy.html
>>
>>60894575
Which one the three questions is that supposed to answer? 1?

I'd be more interested on the equivalent of "iota" in rust.
>>
>>60894590
Yeah, 1. I'm not a rustfag though, so I'm not sure there is something like iota.
>>
a question to those who know c/c++: will learning c give you a better understanding of the computer at the lower level? will it help a lot? will you understand thoroughly all parts of how programs run at the lower level?
>>
>>60894621
Do what all the CS students do and study MIPS.
>>
>>60894631
I will look into it, thank you
>>
How reasonable is it to take a C#/WPF interface and write all the actual backend in C? Would the cross-language calls make it too slow to be worth it?
>>
>>60894709
wpf is deprecated
>>
>>60894716
Thats fine, we need a WPF frontend for legacy reasons
>>
>>60894523
by your logic C is also a poolang because you can do OOP in it if you want to. Just think for yourself and ignore what /g/ says m8
>>
File: Capture.png (17KB, 895x168px) Image search: [Google]
Capture.png
17KB, 895x168px
>>60892877
Can anyone tell me how to line these up into neat columns properly?
Even just a link to some reading that would explain it to me would be great.
This is inside a procedure in PL/SQL.
>>
>>60894787
>you can do OOP in it if you want to
This is true of basically any language. A POOlang is something which has POO built-in.
>ignore what /g/ says
Indeed, I should ignore POO lovers (which seem to be the majority here).
>>
>>60894787
>>60894959
except you can't do oop in c because it does lack the semantics for the needed encapsulation of the data AND of the procedures working on that data.
>>
>>60894999

you can emulate OOP in C by manually writing vtables
>>
>>60894501
well that sounds not too bad. Thanks!
>>
>>60895014
"emulate oop"? what that does even mean? you can implement an object system to be used by another PL but to have oop in C, you would need to extend its semantics and its syntax.
>>
>>60894999
>what is glib
>>60894959
thats what im saying, OOP isnt the default mode for kotlin, only for interaction with Java libraries (there are plenty for kotlin though so you won tneed em)
again, you're showing your lack of knowledge
>>
>>60894857
Align by ||
>>
>>60895068
The first C++ compilers transpiled to equivalent C code and then compiled as usual. The mechanics of OOP are not difficult to implement in plain C, you just lose a ton of safety since it's not checked.
>>
>>60894511

1. step_by (note: currently experimental)
2. collect
3. loop { }

>>60894590

There is no iota in the standard library. Based on how you appear to be using it, I'd guess a function might look like this:

#![feature(inclusive_range, inclusive_range_syntax)]
#![feature(iterator_step_by, step_by, step_trait)]

use std::ops::RangeInclusive;
use std::iter::{Step, StepBy};

fn iota<T>(first: T, last: T, step: T) -> StepBy<T, RangeInclusive<T>>
where T: Step {
(first...last).step_by(step)
}


Which currently doesn't work on godbolt.org's Rust nightly compiler because it can't decide whether or not StepBy takes one argument or two.
>>
>>60895076
>what is glib
data type, not object. the fundamental concept of encapsulation is broken.

>>60895111
being transpiled or not is irrelevant, it's part of the implementation; what matter are the semantics and the syntax of the programming language.

the problem with C is that you have to implement the procedural interface with pointers but those pointers are also data and you have no way to encapsulate them.
>>
>>60895159
gobject* my bad. it does everything an OOP language can do.
>>
>>60895159

just use macros lmao
>>
>>60894205
>I can't just watch when a numbers repeats itself, r-r-rite? Cause there might be something like 0.1012310123
You can, knowing you're looking for a period length of d - 1 for d in 1/d, and period length is always < d - 1 if d is composite. So the largest prime d < 1000 satisfying a period length of d - 1 is the answer.
>>
>>60895173
>gobject
i was also referring to gobject.

>>60895173
>it does everything an OOP language can do.
seriously, no.

>>60895176
C macros are limited to syntactic sugar, you can't extend the language semantics.

i would like to continue this but i have a boruto episode to watch (episode 11 just been released!). sorry.
>>
>>60895195
I used gobject since 2012 on my GTK apps, from inheritance to instatiation and encapsulation
>>
File: Only_10_Int.png (165KB, 303x311px) Image search: [Google]
Only_10_Int.png
165KB, 303x311px
http://en.cppreference.com/w/cpp/types/is_same
Riddle me this: have you ever been in a situation such that you forget what type of data you store?
>>
File: 1415858731885.png (509KB, 480x488px) Image search: [Google]
1415858731885.png
509KB, 480x488px
I can't think of anything to program.
All I know is Python.

I think I'm going to start teaching myself C now.

I'm really just waiting for my thinkpad. I want an X60 with libreboot and Parabola so I can go full freetard
>>
>>60895214

I'm pretty sure this is for when you're templating shit and don't know the exact types
>>
>>60895214
10 int is max int in fallout
>>
>>60893209
>tfw the last frame is literally me
i's good to be enlightened
>>
>>60895223
make a multiplayer blackjack game using a websocket library and a http one
>>
>>60895110
thanks
>>
>>60895125
Heh I am going back to D for now in that case
>>
>>60895214
template<bool...>
struct bool_pack
{
};

template<bool... V>
struct conjunction
: std::is_same<bool_pack<V..., true>, bool_pack<true, V...>>
{
};
>>
>>60895258
Anything to do with networking i kind of just naturally avoid. I can't understand it. None of the books or anything I've read have even mentioned anything about sockets or http
>>
>>60895337
thats why you skip the guides and books & straight go for tutorials and the API of the library. For ex by reading the flask frontpage it shows you how to serve a page jumpstart. if networking isn't for you then make a 2d erotic game
>>
>>60895310

>conjunction extends is_same
I don't get it
>>
>>60895349
>thats why you skip the guides and books & straight go for tutorials and the API of the library.
I think i might do that tomorrow. i've been drinking and can't write code when drinking
a 2d erotic game sounds like it'd be fun to make. I'd have to learn how to draw animus or mangos. or maybe find someone who can draw

I remember when Katawa Shoujo came out and it seemed like it was a big success. It'd probably take at the most 3 people to make something like that
>>
>>60895310
>
{
};

wew
>>
Getting into android programming. But one issue Im having is that when loading pages, I cant get it to load the mobile site. Or maybe it is but it looks wonky. If I load it on chrome it looks fine. Is there a setting I need to change for the webview to make it request the mobile site.
>>
>>60895386
make a fucked up game like a loli rape and abuse one, those will attract attention and get purchases from sickos
>>60895410
use apache cordova
>>
>tfw never wrote anything with multiplayer features
come on anons
feed us network programming books
>>
>>60895467
Networking is even more of a nightmare than multi-threading.
>>
>>60895467
its stupid easy with socket.io and node.js, i made a chat server in 9 lines of it. go for that
>>
>>60895337
you dont need books to learn the basics of networking, all you need is your handy browser's network inspector and an example of a working websocket client, which is virtually any web game that has a multiplayer. try starting off with moomoo.io, understand the protocal, maybe write a few functions in javascript to manipulate the game. i did this, gained a lot of knowledge. or maybe you could read about idk, personally i find reading for programmnig info rather boring. but hey, to each his own.
>>
>>60895467
>he didn't have networking in uni
SAD
>>
File: tomoko.jpg (32KB, 500x500px) Image search: [Google]
tomoko.jpg
32KB, 500x500px
>>60895580
Networking is fucking gay as hell. I hate it. All that shit about ports and IP addresses and MAC addresses and shit is boring as fuck. I still want to learn it though.

If there's like, practice exercises then I'm all for it. That's pretty much how I learned Python. The practice exercises are what kept my interest.
Dude, I fucking watched like 12 hours of this Cybrary Networking video series and it was boring as fuck but kind of informative but like, it was all information that you couldn't really apply and just dissipated into the sinkhole of my mind.

I know i can learn networking if i really wanted to. i'm just more interested in other things
>>
>>60895634
i meant more websocket oriented in my othe rpost, but if you want to learn about networking, you can stil llearn by example. trust me once you get to know networking, it is very useful
>>
>>60895634
heres a script for moomoo.io, it automatically heals your player when you're damaged, was working on this not long ago. https://pastebin.com/zcxAuPCm
>>
File: networking.png (572KB, 783x1101px) Image search: [Google]
networking.png
572KB, 783x1101px
>>60895606
It's sad, yeah. Something happened in my years iirc, networking guy moved somewhere and our management couldn't find a decent replacement in time, so we ended up writing bash scripts. ;_;

Could you maybe share learning resources you used in your course senpai? How is picrelated?
>>
>>60895223
>I'm really just waiting for my thinkpad. I want an X60 with libreboot and Parabola so I can go full freetard
Not programming related. Fuck off to your containment thread >>>/g/fglt/
>>
>>60895872
DONT BLAME IT ON THE THINKPAD. BLAME IT ON THE NIGHT
>>
>>60895716
we use this (https://www.amazon.com/Computer-Networking-James-Kurose-Keith/dp/0273768964) for com networks 1 and there is only a (non english), lecturer written book for the com networks 2
>>
>>60892935
>calling PHP a better language than C++
>calling java script a better language than C++
>calling python a better language than C++

Webdev scum, get out.
>>
>>60895994
>one library == the whole language
>>
>>60893020
Ez because Linus doesn't like c++, that's the only reason.
>>
isn't ntos written partly in c++?
>>
>>60893283
>Why do I have to dive so many layers deep into using all these special situation specific containers and methods just to compare two points in time?
Because type safety, you fag. Also why don't you just

namespace time = std::chrono;
namespace hrc = time::high_resolution_clock

hrc::time_point t1 = hrc::now();

std::cout << "printing out 1000 stars...\n";
for (int i=0; i<1000; ++i) std::cout << "*";
std::cout << std::endl;

hrc::time_point t2 = hrc:now();

time::duration<double> time_span = time::duration_cast<time::duration<double>>(t2 - t1);

std::cout << "It took me " << time_span.count() << " seconds.";
std::cout << std::endl;

return 0;


Just because you're too stupid to use it doesn't make C++ a bad language.
>>
>>60893283
>generic
What is an ``generic"?
>>
>>60896072
>Just because you're too stupid to use it doesn't make C++ a bad language.
Yes, C++ is a shit language regardless of his stupidity.
>>
>>60896086
Name a better language that can do the same things as C++ at C performance levels.
>>
>>60896098
Java. C.
Asm
>>
>>60896098
First tell me whether or not you agree with "sepples is absolute garbage". I wouldn't want your kind shitting it up if you disagree.
>>
>>60896086
>t brainlet
>>
>>60896098
>C++
Trash.
>>60896111
>Java. C.
>Asm
Trash.
>>60896112
>sepples
Trash.
>>
>>60896098
C
>>
>>60896119
Who said that?
>>
>>60893283
Here, I made your code not suck complete ass.
#include <chrono>

int main ()
{
using namespace std::chrono;

auto t1 = high_resolution_clock::now();

std::cout << "printing out 1000 stars...\n";
for (int i=0; i<1000; ++i) std::cout << "*";
std::cout << std::endl;

auto t2 = high_resolution_clock::now();

std::cout << "It took me " << ((t2 - t1) / 1.0s) << " seconds.";
std::cout << std::endl;

return 0;
}
>>
>>60896134
>not suck complete ass
>sepples
What did she mean by this?
>>
>>60896078

Parametric polymorphism.
>>
>>60896111
You fucking idiot. I bet you couldn't even write a single line of x86 assembly. Quickly, answer me this without using google:
What's the semantic equivalent of the following block of code written in C?

mov esi, offset a
mov edi, offset b
mov ecx, 14
rep movsb


>>60896123
C can't even do type safe containers. Templates are terrible, but void pointer casting is worse. Checkmate.

>>60896112
C++ is shit, but there is nothing that can replace it. All languages are shit. Once we have modules and reflection it will stop being shit. Most people who hate C++ are only familiar with C++98. C++17 is a completely different language. Shit, C++ had lambdas before Java did.
>>
File: 1482324322176.jpg (125KB, 1280x720px) Image search: [Google]
1482324322176.jpg
125KB, 1280x720px
>>60896162
>Checkmate
Were we playing chess?
>>
>>60896162
memcopy 14 bytes?
>>
File: 1458231138008.png (13KB, 124x168px) Image search: [Google]
1458231138008.png
13KB, 124x168px
>>60896173
Oh, fuck off.

>>60896175
Wrong. Close, but wrong. Also, don't use the standard library you fuck.
>>
I'm planning to write a web framework that uses ONLY string interpolation to hold code.
Like this:
http.sendHTML("$(if(URL('/') { file.load("home.html") else { 404(); })");

I'll use Kotlin for this in because it can read statements in interpolated strings. I'm doing this for fun and to trigger people here
>>
>>60896186
>Wrong. Close, but wrong.
what it is, then?

>>60896186
>Also, don't use the standard library you fuck.
standard library is memcpy, actually. not memcopy.
>>
>>60896201
http://blog.rewolf.pl/blog/?p=177
>Summing up, if you’re trying to decompile some code with HexRays and it still doesn’t work correctly, better check all occurences of memcpy() and if there will be some overlapping buffers, change memcpy() to plain loop (for, while) that will just copy bytes. Of course similar problems might appear for rep movsw and rep movsd instructions.
>>
>>60896134
>using endl
Way to fuck up the timing with a flush.
#include <chrono>
#include <iostream>

int main()
{
using namespace std::chrono;

const auto t1 = high_resolution_clock::now();

std::cout << "Printing out 1000 stars...\n";
for (int i = 0; i < 1000; i++)
std::cout << '*';
std::cout << '\n';

const auto t2 = high_resolution_clock::now();

std::cout << "It took me " << ((t2 - t1) / 1.0s) << " seconds.\n";

return EXIT_SUCCESS;
}
>>
>>60896162
Wait, I thought modules are a bad thing for something like C++

It's not like compile time isn't atrocious already
>>
>>60896223
>It's not like compile time isn't atrocious already
IWYU is supposed to help with that. I still haven't figured out how to run it yet though.
>>
>>60896223

modules would improve compile times significantly since you can just refer to compiler-oriented symbol tables and shit rather than having to parse text files all over again
>>
>>60896223
>this is the average /g/ retard that shits on C++
Modules are there to SPEED UP compile time, by deprecating headers, you fuck. The idea is that you can just import other modules like you can do in any other language that isn't c. The reason C++ compilation takes forever is because #include does nothing except copypasting the entire contents of the included header into the source file. If you change as much as a single character in a header, you need to recompile EVERY SINGLE SOURCE FILE that includes that header, because technically you just changed those files too. On top of that modules will make writing code more productive, because there will be no more overhead when it comes to writing headers because they are no fucking headers, just sources.
>>
>>60896258
*hands a snickers bar to anon*
>>
>>60896258
I am not the original shitter you replied to. I use C++ daily, though we don't use a lot of "cool" features, and I certainly don't shit on it lol. Chill faam, thanks for the response will look more closely into it.
>>
>>60896273
https://www.youtube.com/watch?v=j3HBlBSrXU4
>>
File: 1481088302608.png (53KB, 571x618px) Image search: [Google]
1481088302608.png
53KB, 571x618px
>>60896273
kys
>>
>>60896292
keep talking and I will
>>
>>60896162
>you couldn't write asm
Does that matter? It still has all the power of C++ and C-like (interpreted as about C or better) performance.
>code
a, offset and b means nothing in this context.
>>
>>60893283
>>60893355
In D it's just
import std.stdio, std.range, std.datetime;

void main()
{
auto t0 = Clock.currStdTime;
foreach (_; iota(1000)) writeln('*');
writeln(Clock.currStdTime - t0);
}
>>
File: anime question.jpg (25KB, 433x380px) Image search: [Google]
anime question.jpg
25KB, 433x380px
What's the best place to host your code? Is SJWhub tainted?

What's the best open source license? MIT? WTF?
>>
>>60893253

Mind sharing some of them, goy? I won't use them to reap a profit, you have my word.
>>
>>60896547
any git*, but COChub.
MIT a best.
>>
File: skilled.webm (3MB, 720x404px) Image search: [Google]
skilled.webm
3MB, 720x404px
>>60896547
Free git hosting

https://github.com/
https://notabug.org/
https://bitbucket.org/
https://gitgud.io/
https://gitla.in/
https://gitlab.com/
https://git.zxq.co/
https://git.teknik.io/
>>
File: 1494448634847.jpg (72KB, 553x746px) Image search: [Google]
1494448634847.jpg
72KB, 553x746px
>>60896547
>code
Either use "codes" or "programs". "code" isn't something we discuss here.
>>
>tfw unironically believe every language since Pascal went backwards

>>60893068
I prefer previous Dlang-chan.
>>
>>60896607
>pascal
>good
>>
File: 1489369594975.gif (328KB, 420x360px) Image search: [Google]
1489369594975.gif
328KB, 420x360px
>>60896547
>Is SJWhub tainted?
Yes.
>MIT
Yes.
>>
>>60896547
>What's the best open source license
This is not something easy to answer and depends on the scale of your project. For example the Linux kernel wouldn't be as big if it used a BSD-style licence since every proprietary fork wouldn't have needed to contribute back. Same goes for the LLVM project.
On the other hand small libraries can benefit much more from such a license for adoption as they don't require you to bother submitting every change back to the author.
>>
>>60896547
Github is a generally shitty website, but it's definitely got the largest userbase. I like to mirror most of my stuff there but I use gitlab for actual projects. Bitbucket is okay too
>>
File: DEEP.jpg (13KB, 264x320px) Image search: [Google]
DEEP.jpg
13KB, 264x320px
Do you know of any Java libraries that deal with holidays?

As in, the usage would be something like:

HolidayLibrary.isHoliday(date, location);


If there aren't, what kind of functionality would you like to see in such a library? If there are, what are they missing?
>>
>>60896337
>Does that matter? It still has all the power of C++ and C-like
Not from a development perspective, you idiot. Unless you want to increase development time by a factor of 100. Fucking hell. Why is this board so stupid? That's like saying "dude just use a turning machine, its functionally equivalent to C++"

>Does that matter? It still has all the power of C++ and C-like
Yes they do. and b are labels that are defined somewhere in the .data section and offset retrieves the address of that label as opposed to its contents.

So yes, it does matter, because obviously you don't know shit about assembly.
>>
>>60896667
I don't believe your likely to find a library that does that. I think you'd be better off writing a java class that queries a web service like
http://www.bank-holidays.com/

Are you asking because you need one, or because you want to make one?
>>
>>60896668
>dude just use a turning machine, its functionally equivalent to C++
Physical computers don't have access to an unlimited memory band.
>>
>>60896733
>Physical computers don't have access to an unlimited memory band.
lol poorfags pls go
>>
>>60896668
>>60896733
Note that I don't disagree with your point.
>>
>>60896724

I want to make one with a large default holiday database and the ability to add your own JSON lists.

I want the library to also be used in corporate applications, so I don't think querying an external API is the way to go. I think it needs to be standalone.
>>
>>60896763
Why restrict it to Java however? Most of your work will be storing data anyways.
>>
>>60896763
I think you'll find very few holiday applications don't query some kind of external API. At the very least, most have the option to update the database from some standard source, like an external API. However, including a collection of sensible defaults in the distribution is not a bad idea.
Additionally, many corporate environments are resistant to using non-XML data. Particularly in Java, XML is pretty much the standard. At the place I work in, we actually have a SQL database that we use to store company holidays, with a ASP.NET webservice to access it.

>>60896769
Because he wants to use it in Java stupid. If he wants it to be used for a corporate application, it'd almost certainly have to be in Java or C#, since that's what most corporate environments work with.
>>
>>60895994
>1 library is better in another language than it is in this language
>this means the other language is always superior
Maybe you should go to /lit/ and learn how to read faggot.
If you don't think std::string is the most stupid string library of them all, you don't belong here
>>
Reminder to stay hydrated.
>>
>>60893462
>Haskell is useless
Weapons are never useless. Killing is the ultimate expression of your humanity.
>>
>>60896769

I'm mostly a Java programmer, so it's easier for me to start with that.

I also know JS/Typescript, if the Java library goes well, I can think about transferring it to other languages.

>>60896793

I want to start with JSON, don't really want to focus on old shit like XML. The library being used in a corporate environment is a pipe dream, really. I'll be lucky if I actually make something worthwhile others can use in their indy projects.
>>
>>60896741
I agree, but if you go that autistic you have to admit that literally nothing is turning complete and that your PC is just a linear bound automaton.
>>
>>60896886
>literally nothing is turning complete
False.
>>
>>60892917
It's a hole where you poo.
>>
File: 1491750904126.jpg (66KB, 1280x720px) Image search: [Google]
1491750904126.jpg
66KB, 1280x720px
>>60896820
State your purpose.
>>
Alan Turning
>>
>>60896872
>I want to start with JSON, don't really want to focus on old shit like XML. The library being used in a corporate environment is a pipe dream, really. I'll be lucky if I actually make something worthwhile others can use in their indy projects.
If you're library is to be adopted, it'll have to support the old shit. JSON is a fine format, and supporting it is good, but if you're looking to create a robust library, you have to support what the people use.
>>
>>60896872
JSON is absolutely disgusting. XML is a lot better.
>>
File: 1493618251558.png (345KB, 486x440px) Image search: [Google]
1493618251558.png
345KB, 486x440px
>>60896997
You deserve to be banned for posting that.
>>
>>60897033

JSON is superior to XML
>>
>>60896667
In Python, it's just

holidays = { (6,14), (7,04),(12,31)}

def isHoliday(month,day):
return (month,day) in holidays

Of course, just add as many dates as you'd like
>>
Which one do you use?

if (condition) {
doSomething();
}

if (condition)
{
doSomething();
}

if (condition)
doSomething();

if (condition) { doSomething(); }

if (condition) doSomething();
>>
>>60897020

I guess I can parse the data depending on the extension so that both JSON and XML are supported.

But I still don't see why a file just lying around in the project would need be in XML. Is it because the old corporate programmers are more familiar with it?
>>
>>60897158

if (condition)
{
doSomething()
}

Always.
>>
>>60897158
if (condition)
{
doSomething();
}

This is the only way to go
>>
>>60897158
I mix all styles :D
>>
do all those programming practice sites where you write algorithms have anything to do with real life problems?
>>
File: 1483369018888.jpg (20KB, 310x156px) Image search: [Google]
1483369018888.jpg
20KB, 310x156px
>>60897180
>GNU
>>
>>60893931
>The point of it is not to use if statements
Why?
>>
File: ifcond.jpg (9KB, 323x70px) Image search: [Google]
ifcond.jpg
9KB, 323x70px
>>60897158
>>
>>60897198

Algorithms are incredibly useful, it's one of the things that separates pajeets and novice cs grads from real programmers
And be aware of algorithmic complexity, that's the basic thing
>>
>>60897158
For single line statements
if (condition)
doSomething();


In general
if (condition)
{
doSomething();
}
>>
File: poointheloo.jpg (136KB, 1057x918px) Image search: [Google]
poointheloo.jpg
136KB, 1057x918px
>>60897262

this is related I think
>>
>>60897262
>separates pajeets and shit-heads from real programmers
Come now. Algorithms is widespread knowledge now.
>>
File: 1483511293592.png (53KB, 612x1036px) Image search: [Google]
1483511293592.png
53KB, 612x1036px
>>60897285
Is this the power of Python?
>>
>>60897299
Separates pajeets from slightly smarter pajeets
>>
>>60897316
Seems about right.
>>
>>60897299

>one of
It's the first step, basically.
>>
>>60897268
>>60897173
wew my dudes, glad you exist
I thought that Allman style is dead
>>
>>60892877
I've managed to avoid working with VBA until now, but I don't have the authority to greenfield develop here and this is a Microsoft organization. I'm wrangling this team's project management and reporting spreadsheets into an Access database. I've started to build some of the table structure and am taking my first crack at one of the Forms whose relevant data tables are pretty much what they need to be.

I need to have the user enter in LastName, FirstName, but then reference that to an ID number. I am trying to use DLookup() or ELookup() because using straight values in a SQL query is just asking for Little Bobby Tables to show up. I don't even fucking know what is supposed to be happening here. The API is incomprehensible garbage and the documentation is worthless.

I'll figure it out by trial and error, but it feels good to bitch about it now.
>>
where the fuck is the NEW THREAD
>>
>>60897411
>where the fuck is the NEW THREAD
It's not bump limit yet anon.
Or are you a bot?
>>
>>60897393
>anything other than glorious kernel guidelines
>>
>>60897402
Jesus fucking Christ. Use something more modern.

VBA is a shit
>>
>>60897424
can't help it senpai, was taught in school with Allman/bsd styles

//while (x == y)
{

}
all the way
>>
>>60897437
Jesus fucking Christ. I can't.

I need this database system to drop into their current workflow without causing too much disruption and without causing too many waves.

This is a large organization and I am but a simple hacker.

Shit, man. Most businesses still use COBOL.
>>
If I create a project on github or something, and I license it with some specific license.

How do I add code from other projects into my code, that doesn't share the same license? Or how do I at least credit them?

I'm thinking I should just forget about adding it into my code, and just tell people to download the library on their platform
>>
>>60897158
Allman all the way
>>
Where can I learn more about how to implement a "programming language" inside your program? for instance I want to allow users to use a made up language that my program will parse and do things when reading it, mainly if/else stuff
>>
>>60897624
http://www.buildyourownlisp.com/
>>
>>60897633
>c
>>
>>60897624
literally cpp.
>>
>>60897402
>VBA
>Access

What the actual fuck are you doing?

You have two sane options: tell your team that you're going to create this software with modern tools and do so, or quit and find another company.

You can literally stand up a full SQL Server in Azure for $5 a month if you're working with a small amount of low-frequency transactions. There's quickstart templates for basic CRUD applications that will immediately Just Werk™ for what you're doing.
>>
>>60897577
Yaeh or use git submodules if the lib is hosted on github as well.
>>
>>60897565
>Most businesses still use COBOL
This statement is objectively incorrect.
>>
>>60897633
>C
>to Lisp
Nice, thanks anon, I am not an idiot like the other guy so I appreciate this
>>
>>60897633
>Wants you to install the malware known as MinGW on Windows
Discarded.
>>
>>60897159
Pretty much, new formats scare managers and programmers.
>>
File: 1497102019303.jpg (44KB, 700x385px) Image search: [Google]
1497102019303.jpg
44KB, 700x385px
>what are you working on, /g/?
Trying to use multithreading to make a small password cracker in c++. It's not going well desu.
>>
>>60897746
Being that Windows itself is malware, how would you notice the difference?
>>
>>60897909
>password cracker
If you are not doing it in gpu don't even bother dumb fuck.
>>
>>60897624
http://www.craftinginterpreters.com/
>>
File: Untitled Diagram (1) (1).png (49KB, 609x509px) Image search: [Google]
Untitled Diagram (1) (1).png
49KB, 609x509px
some python to convert list of pings into sessions based min/max session time params

https://gist.github.com/f00-/9457af17d5dceddd2f0f6232a23ad81a
>>
>>60898081
need to get this to run with pyspark next
http://blog.ibmjstart.net/2015/12/15/spark-wifi/

might replace it with window functions in SparkSQL
https://databricks.com/blog/2015/07/15/introducing-window-functions-in-spark-sql.html

making something similar to meraki location analytics
https://documentation.meraki.com/MR/Monitoring_and_Reporting/Location_Analytics
>>
>>60897746
How do you compile C on Windows?
>>
>>60898109
can you just use bash and gcc?
>>
>>60898109
You can't because Windows doesn't support programming.
>>
>>60897624
https://racket-lang.org/
>>
>>60898109
The last time I programmed C on windows I was using Visual Studio 2008 programming in C89.
>>
>>60898135
Yes, but are you using bash and gcc through mingw? Cygwin? WSL?

>>60898164
That sounds fucking miserable. Also, doesn't MSVC not actually follow the C standard?
>>
>>60898109
If you use Windows 10™ you can just run gcc in bash
>>
new thread
>>60898229
>>
>>60898109
https://clang.llvm.org/
>>
>>60897701
What kind of little pissbitch are you that you'd quit a job over stupid shit like that?

I need this database application to drop into their Sharepoint easily without dealing with all of the large organization bullshit and red tape that it would take to get approval to put this data on a cloud server. It would be infinitely more of a pain in the ass to figure out whose dick I would need to suck to get approval for upgrades than it is to learn VBA. It's like you've never actually had a real job before...

>>60897707
>I make websites for a living.
>Nobody will ever trust me for anything Important™.
>>
>>60898707
Nice try on that false accusation. I've been in situations like that before professionally, and seen many in the same situation. It's always the same story. They spend the time learning something deprecated, maybe they finish the task, then it turns out it wasn't that important and gets phased out eventually anyway. At this point, they're left with less marketable skills than otherwise possible.

I've had plenty of "real jobs", and I'm fairly certain that I'm older than you by a margin of 5+ years.

It's a fairly hard and fast rule that when Access and VBA crop up in the same sentence, something is being done horribly, horribly wrong. There's no reason why a company with your amount of "red tape" should be using something that has been relegated to ~5 employee SMB shops with Old Dave doing the IT.
>>
>>60893171
>He doesn't know about the double fork
Thread posts: 319
Thread images: 38


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