[ 3 / biz / cgl / ck / diy / fa / g / ic / jp / lit / sci / tg / vr / vt ] [ index / top / reports / report a bug ] [ 4plebs / archived.moe / rbt ]

Due to resource constraints, /g/ and /tg/ will no longer be archived or available. Other archivers continue to archive these boards.Become a Patron!

/g/ - Technology

View post   

[ Toggle deleted replies ]
File: 65 KB, 386x500, the_art_of_the_metaobject_protocol.jpg [View same] [iqdb] [saucenao] [google] [report]
68858418 No.68858418 [Reply] [Original] [archived.moe] [rbt]

Old thread: >>68852683

Lisp is the most powerful programming language.
What are you working on, /g/?

>> No.68858464

First for Scheme

>> No.68858475
File: 473 KB, 1433x779, js_rocks.png [View same] [iqdb] [saucenao] [google] [report]

JavaScript rocks!

>> No.68858537

A friend told me, and I also read on /g/ a couple of times that if I want to start making money as soon as possible, data science is the way to go. A couple of courses and you can start freelancing online. How true is this?

>> No.68858541

Lisp is the gayest programming language. C is the best.

>> No.68858582
File: 106 KB, 193x255, 1411707598056.gif [View same] [iqdb] [saucenao] [google] [report]

Do I build my server software in Common Lisp or Rust?

>> No.68858584
File: 13 KB, 500x600, 4212414142.jpg [View same] [iqdb] [saucenao] [google] [report]

Is this the patrician language combination?

>> No.68858595

Does Python even have worthwhile C++ bindings?

>> No.68858643

Standard ML

>> No.68858656

That wasn't a choice anon.

>> No.68858674


>> No.68858685

In that case I'll go for Common Lisp

>> No.68858688


>> No.68858717

Prototype it in CL. Finalize the build in Rust when you need the speed and memory efficiency.

>> No.68858734


>> No.68858735

my cock

>> No.68858742 [DELETED] 

shut the fuck up nigger, its the word language on this planet

>> No.68858754
File: 57 KB, 415x440, 1462232392038.jpg [View same] [iqdb] [saucenao] [google] [report]


>> No.68858782

>updating my software
>look at some of the files and what their purpose is
>look at the code
>delete them
>restart from scratch on them

Anyone else do this sometimes rather than just modifying/tacking onto existing code?

>> No.68858811

Common Lisp, but use Clack instead of Hunchentoot.

>> No.68858827

I sometimes scrap scratch programs I used to use for testing, but never delete utility programs. I always augment/redact.

>> No.68858840

Have you done this before? I really want to try it because I enjoy sml but there isn't much info out there. What implementation to use, how to write smp code for parallelism and scalability, etc...
If you have any resources please share.

>> No.68858842
File: 169 KB, 320x240, 48416A6D-221C-4C35-8012-3AB294020BF8.gif [View same] [iqdb] [saucenao] [google] [report]

Can someone give me a quick rundown red pill about Rust? I have a decade of systems programming experience in C and want to see if it’s worth learning the patterns of C++ are worth learning over picking up Rust (I also have work experience with Java so C++ is basically that in between language I haven’t picked up yet.)

Hear it’s annoying about pointers and shit, which would also hear is untrue. I’m really a fan of having total control over memory and processes to the maximum degree possible hence my love for C.

>> No.68858846

any of you make a living from freelancing?

i am a total noob, but started looking a bit into programming and its actually quite interesting.

>> No.68858849

I'm tired of being a fucking virgin. How do I learn Python?

>> No.68858855


>> No.68858860

I never understood the prototype meme, especially in other languages. Doesn't that just show that the language you intend to use is flawed for the task if you need another one to do testing?

>> No.68858865


>> No.68858866

C++ is not the middle ground between C and Java, not modern C++ at least.

>> No.68858875


>> No.68858878

Don't correct yourself on this site faggot. This isn't Reddit. Everyone here is on adderall.

>> No.68858894

Do this

>> No.68858896

>Don't correct yourself on this site faggot
>correcting myself

>Everyone here is on adderall

>> No.68858900

C++ is such a shitty language. Nobody should learn it.

Must learn languages (in order):

>> No.68858901

Fast dev+refactoring time vs. high reliability+maintainability
dynamic types make it easy to build stuff fast, but don't catch bugs that a static type system would. Static typing can also make things faster, though it doesn't always matter.

>> No.68858914

I love C, but as am I'm doing more and more complex task, implementing C++ in C because more tedious and impractical. I'm seriously thinking about making the switch.

>> No.68858919

If you do this, a bootcamper code monkey is still going to be more employable than you.

>> No.68858924

Meh if you really wanted you could use (declare (type ... ))

>> No.68858926
File: 173 KB, 1024x893, B903ED83-744D-401F-9C8D-A15520133361.jpg [View same] [iqdb] [saucenao] [google] [report]


>>68888888 crossdresses for med master race bvlls and films it in his bedroom

>> No.68858927

I already know SML to an intermediate level, and have done a bunch of the stuff there. I'm asking about writing fast, parellel, network backends in sml specifically.

>> No.68858945

C++ is more tedious and impractical?

>> No.68858956

Do you think it is a sign of mental disease to often find programming more enjoyable than eg. watching films?

>> No.68858963

the opposite if you're talking about the average shitty western film

>> No.68858964

>>C++ is such a shitty language. Nobody should learn it.
I beg to differ.

Yes. Python has a tight grip on Academia and plenty of data scientists use it for their everyday work.

No. Just a simple and plain no. I learned Java, and I shit you not, got diarrhea.

Yes, but if you're interested in low level and system program. Or you just want to torture yourself.

Never tried it.

Tried to learned it still sticking with C++, Python and Rust.

>> No.68858969

Programming and watching films are both autistic.

>> No.68858973

What? I'm saying doing OOP in C is annoying, I want syntactical sugar without sacrificing optimization.

>> No.68858982

I like common lisp and it is one of my main languages, but comparing sbcl's type inference (which is partially at runtime), to a language with a nice type system like SML or haskell is delusional.

>> No.68859013

C is about giving you control.
Rust is about taking away your control.

>> No.68859014

I should say typechecking, not type inference, though inference is a sore spot.

>> No.68859051

I'm black and I would never do this. Maybe if your racist government would pay reparations for hundreds of years of slavery, you wouldn't have to be pissing in your pants from being near us. Affirmative action is a step in the right direction.

>> No.68859052

>>Rust is about taking away your control.
Correct, but what does Rust give you in exchange for taking away those freedoms? Just like how people in a nation have a Government that protects them in exchange for some freedoms, Rust protects from classes of bugs like memory and concurrency related bugs. That's the best way I could put it.

>> No.68859075

C++ is about choosing how much control you want.

>> No.68859082

What's exactly wrong with this code?
>inb4 its javascript


>> No.68859088

>Correct, but what does Rust give you in exchange for taking away those freedoms?
Moral superiority.

>> No.68859090

>Has no control or power in his life so he codes in C
The absolute state of Clets. Abstraction gang for lyfe.

>> No.68859091

Yeah but you can fully add in types to everything in sbcl

>> No.68859092


>> No.68859093

its javascript

>> No.68859101


>> No.68859103

Unsafe Rust gives you as much control as C with way better syntax.

>> No.68859109

>way better syntax

>> No.68859111

>inline js
>missing semis
>if (x == true)
>not using a loop
>parseFloat when coercion will already parse as float

>> No.68859121

How is it moral superiority? I was just giving analogy to real life specifically a Government and its citizens.

>> No.68859122

>Helping web POOjeets

>> No.68859127 [DELETED] 

never said I was good nigger

>> No.68859128

Have you used a language with a modern type system before?
No, C++ does not count.

>> No.68859130

Fuck off hasklet, you and your ilk literally do nothing worthwile ever in these threads.

>> No.68859143
File: 56 KB, 480x480, anim haskell.jpg [View same] [iqdb] [saucenao] [google] [report]

please do not bully Haskell! she is cute

>> No.68859148

You're not as smart as you think you are.

>> No.68859150

Yes, I program in Rust too.

>> No.68859157
File: 109 KB, 300x300, 81643.png [View same] [iqdb] [saucenao] [google] [report]

>bullying haskell
this is the exact opposite of what I asked for >_<

>> No.68859160

>No tits, no ass, no nothing

>> No.68859167

You're not allowed to say the N-word. It's not cool. What if your mother saw this? What if your friends saw this? What if your co-workers saw this? Wouldn't you be embarrassed? Jeses fuck.

>> No.68859169

See >>68859127
Do you see the kind of trash you've encouraged to come back?

Do what you want, I kept my opinions about haskell reserved.

>> No.68859172

People who like big asses are totally fucking gay

>> No.68859176

pybind11 is okay.

>> No.68859191

A monad is just a mongo in the catoegyr of enductors.

>> No.68859196

how do people not kill themselves doing this?
I'm spending fucking months and months of non stop learning and I can't write anything more complex than is-odd without google. HOLY FUCK. Am I just a huge fucking brainlet or am I missing something here?
Like, it took me 2 days to set up a github project that had A FULL ON GUIDE STEP BY STEP.

>> No.68859199

How's having low testosterone working out for you?

>> No.68859211

I'm gay and I don't like anything to do with asses. I don't want my dick inside another guy's ass and I don't want a dick up my ass.

>> No.68859212 [DELETED] 

suck my dick nigger and stop larping as a great mastermind, this is not your super secret esoteric programming club

>> No.68859213 [DELETED] 

Go back to africa you spiritual nigger
The blackest breast aficionados are whiter than you

>> No.68859224

A mango is just a manga in the category of animes.

>> No.68859228

>>People who like big asses are totally fucking gay
If it's a man's ass, sure. But a nice, plump, firm ass is heavenly when you fuck it. Provides a nice cushion.

>> No.68859240

>>The blackest breast aficionados are whiter than you
Weak ass insult

>> No.68859255
File: 1.07 MB, 480x270, U9Se.gif [View same] [iqdb] [saucenao] [google] [report]

you're a disappointment anon.

>> No.68859259

>ass fag complaining other people (real humans with souls) aren't into massive assfaggery

>> No.68859268

I hate manga and anime.

>> No.68859271
File: 28 KB, 500x500, 1528887635580.jpg [View same] [iqdb] [saucenao] [google] [report]

Is this next level bait?

>> No.68859279

>>ass fag

I'm sorry that some men (in fact MOST men) prefer a nice ass on their ladies. Don't worry, I also like firm tits, too.

>> No.68859284

based and redpilled
what programming languages do you use?

>> No.68859291

Haskell is cool but it doesn’t strike me as particularly useful

>> No.68859312

Anime website.
Reddit might be the thing you were looking for.

>> No.68859320

oh shit i didn't read properly i thought he said love
cringe and bluepilled

>> No.68859332

let me help you do another function.

def is_even(number):
if number == 1:
return False
if is_even(number - 1):
return False
return True

>> No.68859337

>MOST men
you mean africans? how's that population explosion working out for your fellow "men" of colour
i am vindicated once again >>68859213

>> No.68859341

I used to be like you. Claiming everything as "cringey" that I didn't like. Then one day, I put away the petulant bullshit and became a fucking grown up. Try it some time.

>> No.68859342

stfu you worthless weeb pedo, no one cares. This thread is about programming, not your weird proclivities.

>> No.68859352

very cringe and bluepilled post anon, if you keep this up you'll never be based and redpilled like me
>doesn't support negative numbers

>> No.68859375
File: 40 KB, 700x700, 1541500726985.jpg [View same] [iqdb] [saucenao] [google] [report]

stfu about anime, stfu about racism. Get back to discussing programming.

>> No.68859376

I use Python, C, Javascript, Java Scala, Clojure, D. I do not use Haskell and never intend to.

>> No.68859383

Let me guess this straight: because you like women with no ass and I like women with ass I'm a nigger?

On the side: why are smaller asses better?

>> No.68859389

negative numbers can't be even or odd silly.

>> No.68859398

google "ass tits world map"
>why are smaller asses better
They're normal sized and not grotesque equatorial trash promoted by the anti-beauty media

>> No.68859417

I'm not going to dignify that line of reasoning with a proper response.

Not the person you're talking to. Most people here like small asses because of the underage girls they see on anime. Even though will vehemently deny they are underage. What I'm trying to get at is they're pedophiles.

>> No.68859425

Which movie will make me a better programmer?

>> No.68859430

>he snorts "lines of reasoning" like coke
This is your brain on rationalism fellas.

>> No.68859440

Will watching The Social Network make me a better programmer?

>> No.68859444

Rust doesn't even have a -> operator.

>> No.68859453


>> No.68859459

I'm not talking about over-sized asses, I'm talking about the ones that little bit bigger than the average ass.

>> No.68859460

This has nothing to do with programming, anime girls, or tits vs ass.

>> No.68859461

Good for you, retard. Now, hush, the adults are talking.


>> No.68859478

I fucked that sentence up, didn't I?

>> No.68859479

The latter two are off-topic.

>> No.68859493
File: 19 KB, 512x512, hmmmm.png [View same] [iqdb] [saucenao] [google] [report]

is O(n) the same as O(2n)? Why are they both called linear time? is O(100000000n) also linear time? It takes way more time than O(n) right?

>> No.68859500
File: 166 KB, 1280x720, daily programming club.jpg [View same] [iqdb] [saucenao] [google] [report]

Donut be silly anon

>> No.68859508

Not anymore. Given how the conversation is always derailed from the original topic because someone needed to reach their daily quota of typing "nigger" one hundred times.

>> No.68859509

Do you know Snowden's github page?

>> No.68859511

Big O measures asymptotic complexity. You can think of it as measuring the growth of functions. A function that is O(n) grows linearly with n - linearly with 2n is also linearly with n. (f(x) = 2n

>> No.68859517

Big O notation isn't a measurement of the real performance.
It's for categorising algorithms by how they scale with the input.
So they don't bother with any multiples; they just get removed.
So O(100000n) is still O(n)

>> No.68859521

Because big O notation measures change
x * y is linear
plot it on a graph and it's a line
plot x ^ y on a graph and it's a curve

>> No.68859523

Was about to say f(x) = 2x is an example of a linear function.

>> No.68859526

Focus on the part that affects the total time the most. For example, O(n) and O(2n) are virtually the same given the n variable has more "effect" in the entire expression

>> No.68859549

I shouldn't say grows linearly, that's Θ. It grows no more than linearly.

>> No.68859561

What does asymptotic complexity mean?

>> No.68859576

wowow can we get back to flamewars and talking about anime

>> No.68859582

Look up MIT opencourseware, specifically the 6.xxx courses. They're all very nice and pedantic lessons. They will answer all your questions, if you're willing to learn.

>> No.68859587

Fuck no cum slurper. We've had enough of your ilk.

>> No.68859593

Does anyone have a video or something that explains how a radius search works for a 2d KD tree. I'm trying to implement one, but I am having a hard time fully visualizing how it works. I get that pretty much the way that the function would work is to go down the branches of the tree until it forms a square around the circle that you have, but I am confused on how to choose which way to go down the tree.

>> No.68859598

>given the n variable has more "effect" in the entire expression
Could you elaborate further?

>> No.68859618

As n grows larger the effect it has on the entire expression grows bigger. Unlike a constant, say, two, is always going to be, well, two, and its effect is always, well, constant.

>> No.68859639

All this talk about type safety and shit and not a single mention of Ada.

>> No.68859646

It's a binary search tree, so use a comparisons of distance

>> No.68859649

Big O means jack all in practicality. Linked lists for example on average have better complexities for operations than arrays, but in the real world they perform much much much worse than arrays at every one of those operations.

>> No.68859653

Does asymptotic mean... as n grows, the value the time approaches?

>> No.68859656

Because of cache misses and the like?

>> No.68859673

>but in the real world they perform much much much worse than arrays at every one of those operations
A properly implemented linked list in the right application runs better and uses less memory than an array

>> No.68859676

It means it is concerned with the growth of the function. Asymptotic is related to the limit and derivative of a function

>> No.68859709

>Linked lists for example on average have better complexities for operations than arrays, but in the real world they perform much much much worse than arrays at every one of those operations.

Linked list of arrays, you cockgobbler.

>> No.68859712

Not really. Asymptotic is a math term for approaching a value or limit. Asymptotic as in asymptote.

>> No.68859715

1) Data grows. That's why we are concerned with growth rate.
2) While it's not entirely unrealistic for there to be an f(4*n) alternative to a method being written in f(1000000*n) time (generally involves using heavy-weight external libraries/functions when when all you need is a lightweight subset of their functionality). f(n^2) or even f(n^3) alternative to a function that can easily be solved in f(n) or f(n logn) if you used a hash lookup is something you're going to encounter every single day.

Just look at AoC. While some people certainly write things that are 10 times slower than others, one is completing in 50 ms and the other in 500ms. Whereas the people who write O(N^2) solutions to O(N) problems that have scripts that take hours to complete.

>> No.68859752

in lisp, this is just evenp

>> No.68859798

hey /dpt/, brainlet here.
How would you search through a binary tree and count each time a string which you're searching for appears?

>> No.68859812

holy shit that's the most poorly written japanese I've ever seen, fucking weeaboos

>> No.68859847
File: 84 KB, 657x600, 1544068167848.png [View same] [iqdb] [saucenao] [google] [report]

how do u manually delete something in java?

how do u do manual memory management with java?

It's possible?

like you set the object to null, right?

how do u pass an integer as a value in java so it doesn't make it a copy?

>> No.68859857


>> No.68859880
File: 8 KB, 538x364, RPNdzn.png [View same] [iqdb] [saucenao] [google] [report]

Alright /g/uys, I need help again. Its me Java Brainlet RPN Calculator dude from last night.

I have SEEMED to get my GUI mostly interacting with my code, meaning I can push numbers onto the stack and use the buttons to interact with those numbers. However I need to incorporate a few things and I am not sure how to go about it.

Whenever I "Push"a number on to the stack, I need my Display text field to display the last number pushed, or the last one that was created (If I end up multiplying, adding, subtracting etc... two numbers together.)

So I also need each button to "Update" the number that is displayed in my Display text field.

I also need a way to have an "Error check" so any errors get displayed in my Error Text field.

Attached is an image of my GUI, I can attach code as well if needed.

Thanks yall

>> No.68859903

>how do u manually delete something in java?
You don't. If you need to manually delete something in an external library when something gets GC'd in Java than either use a Finalizer or a PhantomReference

>how do u do manual memory management with java? It's possible?
Same way you do in every other language: By not making a shit ton of stuff that never gets cleared out.

>like you set the object to null, right?
Or just stop using it. Let it fall out of context.

>how do u pass an integer as a value in java so it doesn't make it a copy?
The JVM has no support for pass-by-reference.

>> No.68859908


can i make slight alternations on the copied kalman filter so it looks like i made it?

i mean there can only be so many ways to program one.

>> No.68859936

how do u pass by reference in java?

faggots keep telling me I need to basically make a wrapper class around my primitives in java.

>> No.68859947

everything is pass by reference in java except for primitives.

>> No.68859961

Or just don't do that shit. Why do you want your function to be stateful? Pass it an immutable value and get an immutable value back.

>> No.68859971
File: 646 KB, 1212x535, callem.png [View same] [iqdb] [saucenao] [google] [report]

>Want to make something in C/C++
>Nothing too interesting to make with them and it's not a sought after lang career wise
Should I just stay with Java or maybe get into C#?

>> No.68859973

Should I make my function pure and change the value of the original primitive as the return operation of a pure function?

>> No.68859979

dumb frogposter

>> No.68859982

Learn Lisp.

>> No.68859986


>> No.68859997

Live Free or Die Hard

>> No.68859998 [DELETED] 

programming is a subset of anime, nigger

>> No.68859999

Yes, if that's the behavior you want.

>> No.68860001

Why are you grouping two completely different languages together.
Also, I'm employed as a C programmer. Shit's comfy.

>> No.68860012

I have a professor that loves Lisp but I've never looked into it, what's good about it?

>> No.68860024

Java's calling strategy is call-by-share, which makes a distinction between primitive types and complex types. Primitive types get copied as-is, complex types however only exist in the language as reference values.

>> No.68860026

Should have said C or C++.

>> No.68860030

nothing, it's just for typelets

>> No.68860048

>I'm employed as a C programmer
Linux systems programming or embedded?

>> No.68860055

Linux systems programming.

>> No.68860056


Nigger class
int niggerkilled;

Jail class
Nigger inmates;

Jail (Nigger n)
inmates = n;

int rape(int whitewomen)
return inmates.niggerkilled + whitewomen;

Main ()
Nigger nigga = new Nigger();
Jail america = new Jail(nigga);

Something like this, I don't have my java code ready but you can get the idea.

>> No.68860060

>being a haskellfag

>> No.68860070
File: 231 KB, 304x366, .png [View same] [iqdb] [saucenao] [google] [report]

This kind of post is not appropriate for 4channel.

>> No.68860071


>> No.68860087

A big company? How do I get a job like yours?

>> No.68860109

woah, gtfo racist drumpft lord

>> No.68860122

>A big company?
It's not a tiny company, but not overly massive.
As far as I'm aware, there is ~80 employees or so.
>How do I get a job like yours?
Having specialised knowledge in a very specific area. Basically I did some open source shit, and it was exactly the kind of thing that company did.
It's a remote job too, which is extra comfy.

>> No.68860599


Global Rules

You will not post any of the following outside of /b/: Trolls, flames, racism, off-topic replies, uncalled for catchphrases, macro image replies, indecipherable text (example: "lol u tk him 2da bar|?"), anthropomorphic ("furry") or grotesque ("guro") images, post number GETs ("dubs"), or loli/shota pornography.


>> No.68860622

That's how you link rules. Just ignore and report. Hopefully that idiot will get banned for a few days.

>> No.68860733

>learning functional programming on java

>> No.68860742

What would you do if you had a 1100 line ABNF grammar that you want to parse in Python?
Are there any libraries that build a parser?
Do I have to build it by hand?

>> No.68860746

>learning anything with java

>> No.68860755

What would I do?
Throw Python in the trash.

>> No.68860764

More like finalize it in CL by adding proper type declarations for FASTER THAN RUSTLET speed.

>> No.68860811

Very insightful comment, immediately solved my problem

>> No.68860865

why dont u just use regex

>> No.68860885

Dumbass. Regular expressions are only capable of parsing regular languages.
ABNF grammars usually describe context-free grammars.

>> No.68860900

convert the cfg to a dfa then use a regex duh

>> No.68860905

Simply not possible. Rust is basically C performance. SBCL can't get close even with types.

>> No.68860912

>Rust is basically C performance
C is significantly faster.

>> No.68860918

implying anyone is talking about SBCL

>> No.68860926

Is 1.5-3x less speed really worth having to maintain rust code over lisp code?

Not to mention it has been demonstrated that SBCL can occasionally exceed C speed.

>> No.68860945

SBCL is the only good CL compiler

>> No.68861008

delusional Cnilefag

>> No.68861036

Delusional tranny

>> No.68861045

Just learned Haskell. *dabs*

>> No.68861083

Go back to your containment site.

>> No.68861084

Are Javascript and Java related?

>> No.68861090

No. The only relation is they use C-like syntax, but that's not saying much.

>> No.68861091

are you sure about that? from what i have seen, rustc is as fast as clang.

>> No.68861095


>> No.68861105

Trannies are welcome here anon. Some the smartest programmers are trannies. They're very bright people.

>> No.68861123

shit style baka. stay java.

>> No.68861146

Good one, retard.

Nothing you said is true. In America, there's maybe 750,000 trannies. There's not a lot of them out there. It's cool if you like to dress up as like a women, but don't be delusional.

>> No.68861150


Rustc literally uses the same backend (LLVM) as Clang. They're the same performance.

>> No.68861175

>Rustc literally uses the same backend (LLVM) as Clang
That doesn't determine what the performance of a language is, idiot.

>> No.68861210


>> No.68861220


>> No.68861248

you have an obsession with trannies.
nothing in rust forces you to interact with trannies, you just choose to bring it up because you have ab obsession with them. get help

>> No.68861281
File: 329 KB, 1588x1036, Screenshot_2018-12-09_21-26-54.png [View same] [iqdb] [saucenao] [google] [report]

Learning C

What do you think of my code?

>> No.68861308

wtf, your autism is like nothing I've ever seen before.

Clean up your style, and do sanity checks.

>> No.68861319

>significantly faster

No, not really at all. In many cases they are virtually the same. In others only minoring behind. It's not a significant difference at all.

>> No.68861330

Should have learned Lisp. It's too late now.

>> No.68861443

Use srand and only call it once in main.

>> No.68861502
File: 400 KB, 461x524, Screenshot_20181210_020513.png [View same] [iqdb] [saucenao] [google] [report]

Optimising and documenting weeaboo captcha server. Should be ready for integration on anime sites that neither like the botnet or pajeet-enabled spambotrs solving their simple traditional captchas for 0.5 Rupees a pop.

>> No.68861506

Did you go to HackerRank for this?

>> No.68861586


>> No.68861587

Couldn't that be broken with just reverse image search?

>> No.68861595

>Want to try this functional programming meme
>Choose Elixir because it gets a lot of praise for being simple, explicit, and relatively easier to do parallel processing with. Not to mention its used for web dev, which I do.
>Try to do a simple program. A daemon that checks a folder in my windows fileserver everyday for new zipped doujinshi, makes a copy of whatever it finds in another folder and replaces the copy's .zip extension to .cbr so that my comic book reader can use it. Uses the Poolboy library to spawn up to 10 processes to work simultaneously on this task.
>Okay Elixir project working on dev machine, but how do I actually deploy it? Can't find a way to compile it, or find any docs about deployment besides one about pushing to Heroku. Is it deployed like Ruby/javascript applications?
>Ask around and they tell me to use Distillery. Okay another 3rd party library but for compiling the program into an erlang OTP application. Sounds good.
>Find out that for Distillery to work, the project must be compiled on a machine with the exact same environment as the production server. (I'm on KDE Neon 64-bit trying to deploy on a Windows 7 32-bit server.)

I'm starting to doubt learning Elixir was a good idea. Should I try learning Go/Rust instead?
t. Webdev primarily working with PHP, Javascript, and Ruby.

>> No.68861614

Nope, regular reverse image search does not match these. You would need to scrape the boorus and build your own reverse image search engine specifically for this captcha. In time I will introduce more random noise to the images to make this harder.

>> No.68861615

no one said animeposters were smart

>> No.68861874

>t. Webdev
Learn Go. Unlike all the other memelangs it's actually being used profusely by more that a dozen companies.

>> No.68861909 [DELETED] 

Good riddance.

>> No.68862034

Elixir is good for high throughput "network heavy" workloads.
I don't think making a daemon that only does some file renaming is a good use of its capabilities.
Go or Rust seems like a better option.

>> No.68862118

Want real-time? Use a subset of C.
Want correct? Use statically typed FP.
Want shit? Use OOP.

>> No.68862129

>not using all 3

>> No.68862134

Elixir is not functional.
Go is absolute garbage.

>> No.68862150

How bad is O (n log n)?

>> No.68862151

Name what you consider a non-garbage lang.

>> No.68862157

t. retard

>> No.68862171

>Use a subset of C
What did he mean by this?

>> No.68862187

He means C without malloc (ie: Fortran).

>> No.68862207


>> No.68862214

That's retarded, how would you solve real world problems?

>> No.68862220
File: 334 KB, 500x656, DpvEi9fWsAEpffX.png [View same] [iqdb] [saucenao] [google] [report]

Here's a book to help you with rust's memory system

>> No.68862231

It's only useful for problems you have all the data for ahead of time. It's useless, hence why very few things use Fortran still.

>> No.68862235

>Want shit?
Want shit done*

>> No.68862238
File: 16 KB, 319x319, 1538221201660.jpg [View same] [iqdb] [saucenao] [google] [report]

>post yfw solving *that* bug that's been bothering you for hours

It's like popping a tremendous pimple in my mind.

>> No.68862245

It entirely depends on what kind of algorithm you're talking about.
For a sorting algorithm, that's great.

>> No.68862263
File: 48 KB, 524x480, 1376505409276.jpg [View same] [iqdb] [saucenao] [google] [report]

Fuck off, dumb frogposter.

>> No.68862266

dum frogposter

>> No.68862286

My bad, I think I got it that wrong. I thought that was bubble sort. I need a more robust sorting algorithm for ints, and I was looking at Van Emde Boas trees, O(log log n), but I'm too much of brainlet right now to implement those right now.

>> No.68862287
File: 97 KB, 1023x576, OP.jpg [View same] [iqdb] [saucenao] [google] [report]

Fucking anime faggots. I bet you fap to traps.

>> No.68862288

I'd use haskell

>> No.68862294

you too animeposter

>> No.68862301

anime website

>> No.68862328

This isn't an anime thread.

>> No.68862346

There is a natural affinity towards prohibited things and corruption in humans.

>> No.68862355
File: 44 KB, 636x616, smug_haskell_programmer.jpg [View same] [iqdb] [saucenao] [google] [report]

It is now.

>> No.68862371

This is why no one likes haskell users. Obnoxious anime neets.

>> No.68862384
File: 371 KB, 361x697, 1543210133459.png [View same] [iqdb] [saucenao] [google] [report]

>What are you working on, /g/?
I did some more work on improving my Wayland compositor. I'm moving away from using EGL surfaces and am moving to handling low-level graphics buffers (dma-bufs) myself.
Progress has been slow lately, though.

>> No.68862411

Who needs employment when you have purity

>> No.68862446
File: 490 KB, 449x401, Girls.png [View same] [iqdb] [saucenao] [google] [report]

Purity in programs as you are in bed.

>> No.68862490

>What are you working on, /g/?
trying my hand at java again because i haven't touched it since java 7. thinking of trying a gameboy color emulator. i used to use eclipse but eclipse is a bloated shit, trying intellij now and it's pretty nice though i'm not seeing why anyone would use this instead of sublime or vi at this point

>> No.68862496

You wanna try that sentence again sweaty

>> No.68862506

cope, loser.

>> No.68862521
File: 68 KB, 900x600, laughing_crows.jpg [View same] [iqdb] [saucenao] [google] [report]


>> No.68862707

Loser OOPsie wagie thread, more like
>not good enough to get a job using FP
>get stuck using Java instead
>"I didn't want to use FP anyway!"

>> No.68862726

>being this upset that other people get paid to code and you can't comprehend OOP

>> No.68862739
File: 28 KB, 419x444, 07c70df98fcbbc6dcdb26a7b13969144.jpg [View same] [iqdb] [saucenao] [google] [report]

How difficult would it be to make a basic music player in java that implements the Spotify api? Is this feasible for a relative beginner to do?

>> No.68862758

implementing wordsearch puzzle for uni assignment. I am looking for better then naive algorithm (checking sought word against substrings in puzzle in all 8 directions). Considering I am gonna search lot of different words in fixed matrix, I was thinking about using suffix arrays or suffix trees. Is there any other method you would suggest?

>> No.68862803

Why do the opencv4 tutorial tells me to include the opencv2 header?

>> No.68862809

Not him, but OOP isn't hard to understand.

>> No.68862838

I know anon, but if you haven't noticed there are lots of people on /g/ who hate OOP and think it's hard or something exclusive.

>> No.68862868
File: 66 KB, 500x318, smartgirl.jpg [View same] [iqdb] [saucenao] [google] [report]

Just came here to say that programming a computer is a meme for incel pedos.

>> No.68862878

Yes, there's a revolving and fickle topic of shitposting: flame wars, OOP vs FP, and anime. Frankly, I'm sick of all it. Look, even now, this retard posts this shit >>68862868

>> No.68862909


>> No.68863422

I'm a dumb web developer, what do people use python and ruby for generally? All I know is that ruby has rails, so people can use it for serverside dev, and python has science and statistics applications.

>> No.68863443


>> No.68863453


>> No.68863590

Is float slower than double on modern x86 CPUs?

>> No.68863610

What is a bit vector? I recently made an integer, made for sorting, out of five other ints. That a bit vector?

>> No.68863615

such microoptimizations won't matter.

>> No.68863623

I don't believe so.

>> No.68863641

Do you know what a bit is?

>> No.68863661

ofc. I also know what a vector is.

>> No.68863702 [DELETED] 
File: 1.04 MB, 900x1349, 1526639799658.png [View same] [iqdb] [saucenao] [google] [report]

Want fast, real time, and correct? Use C++.

>> No.68863727 [DELETED] 
File: 664 KB, 1404x1920, 1539454108961.jpg [View same] [iqdb] [saucenao] [google] [report]

Only ironic weebs fap to traps.
Soft cute anime titties and pussy or get the fuck out and hang yourself.

>> No.68863750

Get help.

>> No.68863752 [DELETED] 

t. responsible for the slow and horrible state of software today.
Throw you and your mindset off a cliff.

>> No.68863771 [DELETED] 
File: 2.18 MB, 1920x1080, 1514903768241.png [View same] [iqdb] [saucenao] [google] [report]


>> No.68863781
File: 198 KB, 1003x700, 1543029167829.jpg [View same] [iqdb] [saucenao] [google] [report]

>Throw you and your mindset off a cliff.

>> No.68863819

You're an idiot.

>> No.68863850 [DELETED] 
File: 3.88 MB, 3268x2000, 1521769487306.png [View same] [iqdb] [saucenao] [google] [report]


>> No.68864055
File: 539 KB, 1035x913, 1543083908997.jpg [View same] [iqdb] [saucenao] [google] [report]

>POWER has an instruction called "eieio"

>> No.68864257

Would you trust a github paid account with your companys IP in private repositories? Is there any other provider you would trust your corporate IP with?

>> No.68864269
File: 26 KB, 500x449, timetodie.jpg [View same] [iqdb] [saucenao] [google] [report]

>converting 1500 line roff man page to ronn markdown
>figure out half way through that ronn fucking sucks

>> No.68864350

Just run your own GitLab instance if confidentiality is an issue.

>> No.68864502

This is really funny.
The worst part is i know niggers irl who think like this. As if me, from immigrants who came here in the 1880s after slavery was already fucking done, should have to pay anything. Fucking lol.

>> No.68864511

lmao'ing at your life right now

>> No.68864516


>> No.68864603

C++ question:

Say I am using vector as a client for a data field in another class that I am writing. Do I have to invoke special implementations for the assignment operator, destructor, and constructor for vector in that class? Or is the "rule of three" referring to only the definitions for the client class type (in this case vector)?

>> No.68864730
File: 184 KB, 520x308, 5789578487947304.png [View same] [iqdb] [saucenao] [google] [report]

Is Python/Django Multithreaded or not? Like if i put my Django site ona Threadripper would that make a difference compared to a lower core CPU?

>> No.68864852

I haven't seen that. You should consider if vectorization is an option for the code. In that case you need to consider that double is half as fast in many places.
Maybe you should even consider using 16bit float.

>> No.68864864

I think half-precision floats are still pretty uncommon, especially on CPUs.

>> No.68864916

Most client/server stacks for a couple of decades have served each client request using a separate thread. Djanga is no different. So the more clients, the more threads it will use. However, Python suffers from the GIL, so it doesn't scale very well, lots of contention on the GIL the more threads you have.

Solution: stop using Python for serious shit.

>> No.68864950

Yeah I imagine so too. I wonder how emulating float would compare.

>> No.68864951

Are there any languages that use what Im Going to call 'outfix' operators, which go around its arguments? Like say you define the 'outfix' operator (using c# like syntax) float |,|(float x, float y) => math.sqrt(x*x + y*y); which you would then use like float dist = |2, 5|; this would make so much math easier to read, like absolute values, lie brackets, commutators,...

Parsing might be difficult with arbitrary symbols but that can be solved with some wrapping symbol like curly braces, dist = {|2, 3|}; with would still look fine.

>> No.68864995

>stop using Python for serious shit
I mean t.b.h Instagram and Spotify use Django and they work pretty fucking good.

>> No.68865008

>emulating floating point
No sorry. I meant doing fixed point math using 16 bit integers in simd.

>> No.68865038

Python has a GIL so only one native thread can execute at a time. More cores won't help much if at all.

>> No.68865071

Common Lisp

>> No.68865093

Use case for half precision float has traditionally been for saving memory space and bandwidth (you get half as many cache line misses). FP16C was added to Ivy Bridge and Piledriver giving us hardware instructions to convert from 32-bit or 64-bit floats to 16-bit float and vice versa.

32-bit floating point adds and multiplies using SSE/AVX have a throughput of around 1/4th of a clock on modern CPUs. All you do is stream content into SIMD registers, do your calculatings in 32-bit and stream them back into 16-bit floating point data.

ARM NEON has a similar setup, they added half precision loads/stores recently.

Different story on newer GPUs though, they have full 16-bit precision float pipelines.

>> No.68865120

Why do programmers have such a knee jerk reaction to people giving them coding advice? I see it all over the place, here's one vid
I don't agree with everything said in the vid, but there are actualy people in the comments who are defending having 300 character lines in code 'because you can't help it in Java/c#', I don't know about Java but Ive never been forced to have long lines in c#.

I was watching another talk about data oriented design and the questions from the audience was actualy just statements about how great OOP was and DOD is impossible.

>> No.68865129

python can only interpret on one thread at once. If you're doing a lot of numby crunching in different threads it doesn't matter. just try to stay out of pythonland as much as possible.

>> No.68865139


>> No.68865149


>> No.68865178
File: 769 KB, 900x1332, calm.png [View same] [iqdb] [saucenao] [google] [report]

I like my programming languages like I like my women. Pure.

>> No.68865200

C++ is like C but with more features, why the hate for one and the love for the other

>> No.68865233

good lad

>> No.68865234

C is a minimal, focused language, and you can tell it was actually designed by someone with a clear vision. It's very satisfying to use.
C++ is literally the complete opposite of that.

>> No.68865245

>love for the other
C is shit too, don't worry.

>> No.68865388

who else getting fucking bodied by AOC here

i made stars last year on 3 nights (2 for both parts, 1 for only part A) so far I have a rank 111 and the rest of mine are 200+

feels fucking bad man, have I gotten shitter at coding?

>> No.68865394
File: 299 KB, 1485x1500, 91lMUYoQUDL._SL1500_.jpg [View same] [iqdb] [saucenao] [google] [report]

I don't speak for any other anons but C++ has too much crazy shit going on where defining one thing (or forgetting to define it) will implicitly change the behavior of another
Function overloading, operator overloading, move semantics, exceptions, and inheritance all have stupid edge cases that interact in wacky ways and you literally have to be an expert to babysit a C++ codebase of any complexity
It's less that I hate it and more that I want to run really far away before it suddenly collapses and kills whatever poor bastard was standing under it
I almost feel like, instead of a tool made by people who know what the hell they're doing, it's a death trap invented by clowns to trick people into falling down a staircase made of banana peels into a pit full of monkeys masturbating furiously because it seemed like a good idea at the time to power an entire city with monkey semen

>> No.68865433

>not programming in a mixture of functional, OOP and procedural paradigms

>> No.68865445
File: 1.68 MB, 1280x720, [Coalgirls]_Yuru_Yuri_05_(1280x720_Blu-Ray_FLAC)_[62FD25E0].mkv_snapshot_12.25_[2018.07.11_09.59.52].png [View same] [iqdb] [saucenao] [google] [report]

delete this

>> No.68865466

honestly if you're doing FP without OOP you deserve to be as unemployed as you are

>> No.68865468
File: 64 KB, 1106x1012, 131342535.jpg [View same] [iqdb] [saucenao] [google] [report]

>We are already on Python 3.7

So Python 4 and another shitfest civil war of now Python 2 vs Python 3 vs Python 4 soon right

>> No.68865476

SAME bud except I just suck so I'm not gonna blog about my numbers. Today was wild though right?

>> No.68865479

What makes you think we won't have Python 3.27 instead?

>> No.68865482

Sounds stupid

>Python 3.99

>> No.68865483

python 2 is actually dead by 2020 officially. So it will just be 3 & 4

>> No.68865487

yeah, it was crazy because you had to make some intuitions that weren't really spelled out in the problem itself

I had no fucking idea how I was supposed to do it, then when I figured out that the points would be in a smaller box on the second that it wanted me to look at I thought I was a genius

then it turned out several hundred other people had figured it out first, lol

>> No.68865492

dumb frogposter

>> No.68865511

New thread:

>> No.68865537

Even a brick will fly given enough momentum. You can write your application servers in whatever you want, as long as you are prepared to throw 10-20 times more hardware at it.

>> No.68865576

Isn't that a good thing though?

>> No.68865595

>Even a brick will fly given enough momentum
This is a stupid post.

>> No.68866471

Unless you implement clonable

Name (leave empty)
Comment (leave empty)
Password [?]Password used for file deletion.