[ 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: 154 KB, 400x300, 37bee54619fa857ab3c8566ad6d5a183.jpg [View same] [iqdb] [saucenao] [google] [report]
60905260 No.60905260 [Reply] [Original] [archived.moe] [rbt]

What are you working on, /dpt/?

Previous thread: >>60898229

>> No.60905271

nth for reimplementing pascal in WASM

>> No.60905290

Second for Go

>> No.60905300

Linking my post from the dead thread.


>> No.60905302

Fuck yourself

>> No.60905305

I'm learning Scala and I'm trying to find a more funcional way to program these if statements,where I store auxiliar vars to make a final division, is there a better way?
var sum: Double = matrix(col)(row)
var div: Double = 1
if (matrix.isDefinedAt(col-1)) {
sum = sum + matrix(col-1)(row)
div = div + 1
if (matrix(col).isDefinedAt(row-1)) {
sum = sum + data(col)(row-1)
div = div + 1

>> No.60905314

Rust has the potential to be a C++ killer in many domains where C++ is currently king, but whether it will achieve this is not yet certain

>> No.60905363

C++ will die anyways, it's too bloated

>> No.60905381

you're going to have to bait harder than that

>> No.60905387

>Rust has the potential to be a C++ killer
not in its current state.
It needs a syntax re-write.

>> No.60905395

Syntax is fine once you actually get used to it

>> No.60905414

>Syntax is fine
let ch = text.chars().nth(0).unwrap();

>> No.60905424

in rust if you pass a reference to an assignable object through a pipe to another thread and then try to use this reference yourself the program won't compile. how do rustfags defend this?

>> No.60905429


Sleep well, snek.

I'm playing with SDR#, seeing if I can read my electric meter remotely. Still in the feasibility stage. But then it'd be Arduino n' shit.

>> No.60905433

Yes, and?

The compiler is saving you from making terrible mistakes

>> No.60905440

Afraid of declarative programming?

>> No.60905458

why doesn't it tell me that instead of just not compiling?

>> No.60905475

im sure glad i dropped c++ to go to c++ with a gimmick

>> No.60905489

Why does Rust still not have a description of its memory model

>> No.60905493

Declarative programming is not a gimmick. It's an Art.

>> No.60905495

Just started learning Python (3 months in) at uni, doing science & data analysis stuff.

Wanna do a more fun project over the mid-year break as practice. Is something like a simple inventory manager for our tabletop RPG too ambitious?

>> No.60905502

>thinking rust's problem is declarative programming

>> No.60905504

you're a dumb physics major probably

>> No.60905527

Close, biology major actually. So even more dumb

>> No.60905550

how simple are you thinking?
what would it do that an excel sheet wouldnt do by itself

>> No.60905562
File: 40 KB, 400x402, 1455893340353.jpg [View same] [iqdb] [saucenao] [google] [report]

are you implying science and data aren't fun

>> No.60905573

CS faggots are mostly physics rejects

>> No.60905577
File: 196 KB, 1024x768, 1405294841029.jpg [View same] [iqdb] [saucenao] [google] [report]

Nope. Fuck this thread. I'll wait for the next one.

>> No.60905592

>waiting for a python thread to not be a python thread
? ? ?

>> No.60905653

A Rust program's memory consists of a static set of items and a heap. Immutable portions of the heap may be safely shared between threads, mutable portions may not be safely shared, but several mechanisms for effectively-safe sharing of mutable values, built on unsafe code but enforcing a safe locking discipline, exist in the standard library.

Allocations in the stack consist of variables, and allocations in the heap consist of boxes.
The items of a program are those functions, modules and types that have their value calculated at compile-time and stored uniquely in the memory image of the rust process. Items are neither dynamically allocated nor freed.

The heap is a general term that describes boxes. The lifetime of an allocation in the heap depends on the lifetime of the box values pointing to it. Since box values may themselves be passed in and out of frames, or stored in the heap, heap allocations may outlive the frame they are allocated within. An allocation in the heap is guaranteed to reside at a single location in the heap for the whole lifetime of the allocation - it will never be relocated as a result of moving a box value.When a stack frame is exited, its local allocations are all released, and its references to boxes are dropped.A variable is a component of a stack frame, either a named function parameter, an anonymous temporary, or a named local variable.

A local variable (or stack-local allocation) holds a value directly, allocated within the stack's memory. The value is a part of the stack frame.

>> No.60905654

The aim is to get better at python outside of pandas/numpy/matplotlib, which I use a lot in school. Which, for what it's worth, is pretty interesting.

>> No.60905673

decide on exactly how much functionality you want your program to have before you try making anything first

>> No.60905698

>CS faggots are mostly physics rejects
[citation needed]

LOL at EEs and physicists who carp about my job title, Senior Software Engineer.

"You're not an engineer!"

No, and you're not a [good] programmer. But guess what? I earn just as much as you, and using the degree I actually studied to get.

>> No.60905706

god damn you got triggered over something really small

>> No.60905715

In my uni, EE and Physics require the most grade point average. CS are literally mediocre students that are just a little bit better than IT.

EE and ME People laugh at CS

>> No.60905721


>> No.60905732

>Software """engineer"""

>> No.60905743

you're not going to win this argument. cs students are lowly regarded everywhere

>> No.60905748

>code artisans REEing over actual engineers calling them out

>> No.60905751

>Actually replying to baits

>> No.60905764

Explain why equivalent algebraic expressions may lead to different answers. Can you devise an interval-arithmetic package that does not have this shortcoming, or is this impossible?

>> No.60905785

Found the CS faggot.
Even CE folks laugh at you.

>> No.60905787

ITT: Programs in your language which can't be shorter in other languages.

>> No.60905808

I want to fuck her.

>> No.60905812

Shorter doesn't mean better. Readability counts as well

>> No.60905820
File: 561 KB, 500x366, 9e6.gif [View same] [iqdb] [saucenao] [google] [report]

she wants to fuck you

>> No.60905826

If you want to post your haskell code just do it.

>> No.60905838

Physics niggers are maths rejects.

>> No.60905842

CE is essentially EE with some software shit thrown in, so I'd assume so

>> No.60905850

>god damn you got triggered over something really small
Not triggered, I'vejust never heard that as GPA approaches 2.0, a physics major switches to CS. I *have* heard that applied to EEs and hotel and restaurant management.

>you're not going to win this argument. cs students are lowly regarded everywhere
I'm not arguing anything. I've just never heard of physic majors going into CS. I would imagine EE would be their easy degree.

>> No.60905856

>SE = CS

>> No.60905858

That means CS niggers are math reject rejects

>> No.60905859

im a month into learning it and I am so fucking bored. I really want to just code something that will actually be productive instead of just studying classes and data types. I bet the real projects hardly use simple shit like that.

>> No.60905864

>Electrical Engineer

Show us your license.

>> No.60905870
File: 3.90 MB, 2100x1400, Practical_Language_Comparison.png [View same] [iqdb] [saucenao] [google] [report]


>> No.60905878

>Even CE folks laugh at you.
And I care because...?

>> No.60905904

>And I care because...?
I have no idea dude you tell us
You're the one getting triggered as fuck rushing to defend yourself over nothing

>> No.60905906

>>SE = CS
Software Engineer = job title
Computer Science = degree
job title != degree

>> No.60905907

Java master race

>> No.60905919

It's not healthy to get triggered like this, anon

>> No.60905924

Yeah this. CE reporting. We are WE until second semester junior. They take semiconductor and power electronics classes. We take communication theory and FPGA programming classes.

>> No.60905925

this is actually the worst language comparison meme i've seen yet

>> No.60905927

>top voted comment
>THIS is why office shootings happen...
ahahaha reddit being based for once. fucking april fools pranksters

>> No.60905928

CE is much more limited than EE

>> No.60905932

>defend yourself over nothing
I have never heard of physic majors going into CS, that's all.

Post an insightful reply, and it dies. Post a personal observation and the crowd looses their collective shit. This is fun!

>> No.60905933

makes sense, it came from the installgentoo wiki

>> No.60905935

you have 30 seconds to explain why ruby is not the ideal language for 2d game development where the performance requirements are minimal and on the contrary the difficulty of the task is mainly about the art, area design, gameplay design, and story


>> No.60905941

CS != SE
If you don't know that you either got a degree from a shitty uni or you got the wrong job.

>> No.60905944

same. ours is like a mix of cs and ee until 3rd year

>> No.60905946

>He uses 3rd party handwash

>> No.60905947

You're not being mommy's good boy.
No chicken tendies!

>> No.60905951


>FPGA programming classes
Sounds cool, wish we did the same in CS.

>> No.60905957

>it's the first image at the top of the page for the programming languages page

>> No.60905967

He is right. It should be legal to kill people like that.

This, he was asking for it.

>> No.60905968

>We are WE until
>implying you are not always YOU

>> No.60905970

Ruby is being shilled too much lately.
Post some example code to highlight how great it is.

>> No.60905974

>CS != SE
>If you don't know that you either got a degree from a shitty uni or you got the wrong job.
Are you disagreeing with the statement that CS!=SE? Can't tell from your shitty response.

>> No.60905983

>the performance requirements are minimal
t. never gone beyond a prototype

>> No.60905984


>> No.60906005


>> No.60906031

Political correctness is almost always wrong. You have your right to say anything so long as it does not promote violence.

>> No.60906046

Are you being retarded on purpose?

>> No.60906081

Why are people trying to play the "King of the castle" when ignoring the only real computer degree, CE?

>> No.60906119

CS ∪ (CS ∩ SE) ≈ CS

>> No.60906132

Why do people think you need a degree at all to program, /dpt/?

Today fucking captchas are pissing me off. Every square contains the object to be identified.

>> No.60906156

Beats me, tbqh

>> No.60906178

EE, dumb phoneposter here.

FPGA programming is honestly the hardest shit I've ever encountered.

>> No.60906186

Post-purchase rationalization

>> No.60906192


>> No.60906194

Yeah, okay, you are being retarded. Carry on.

>> No.60906199

>Every square contains the object to be identified.
Bruh scroll up and enable legacy captcha in the settings
captcha: serrans lease

>> No.60906205
File: 70 KB, 349x368, dlang_chan.jpg [View same] [iqdb] [saucenao] [google] [report]

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/!


>> No.60906215

The only thing that stops me from having fun with fpgas is this https://wiki.debian.org/FPGA/

>> No.60906217
File: 23 KB, 640x449, 1408566969296.jpg [View same] [iqdb] [saucenao] [google] [report]

>tfw getting payed to go to school

>> No.60906225

>enable legacy captcha
I do worse with those. T_T

>> No.60906226

Don't reply to it

>> No.60906230
File: 142 KB, 730x1095, 1466692782212.jpg [View same] [iqdb] [saucenao] [google] [report]

I opened the picture hopping that she was lain. I am disappointed.

>> No.60906252


Don't talk to yourself.

>> No.60906260

It's not that format strings are a bad optional feature it's that they mix code and data in an unfortunate way.
Solves trivial problems usually.
All that's required for them to be good is for there to be a string unpack method (hopefully at compile time where possible) which extracts the different arguments to their correct place.
But that's a messy system in realistic situations frankly.

I don't like features that help the easy problems. Clutters the languages a lot. Addressing the hard problems in a language is much more important. It could be done in string processing but I haven't come up with a good solution. Because hard problems are hard. Things like adjusting for internationalization is usually done through full string replacement. Which sets additional requirements on your font rendering and size adjustments. It works. But I wouldn't describe it as ideal.

>> No.60906264

Please don't post 3DPD cosplaying as Lain. It's a disservice to the queen of /g/.

>> No.60906272
File: 11 KB, 305x225, 78348-tap-67027.jpg [View same] [iqdb] [saucenao] [google] [report]


>> No.60906279

Where? Here we get very cheap loans and a portion of it is simply paid. But I couldn't call it getting paid to go to school

>> No.60906285

I don't see how that's possible

>> No.60906308

Have fun with xilinx, the shitest program I could ask for.

>> No.60906331

Probably means ROTC?

>> No.60906347


>> No.60906356

>2d game development where the performance requirements are minimal

>> No.60906361

Dyslexic here, I prefer legacy captchas.

>> No.60906368

Oh, that'll do it

>> No.60906381

how are you supposed to program with dyslexia

>> No.60906395
File: 20 KB, 306x306, VCNRKf7.jpg [View same] [iqdb] [saucenao] [google] [report]

>hashtag pragma once

>> No.60906397
File: 47 KB, 475x530, 1497214889403.jpg [View same] [iqdb] [saucenao] [google] [report]

Report and hide the spammer.
Do not listen to the spammer.
Tell the spammer to piss off.

>> No.60906399

I didn't say I *had* dyslexia, it's just a plausible excuse.

Maybe it's the fact that all my passwords are in 1337 speak and I can't type correctly anymore.

>> No.60906400

By opening Emacs and start writing normally?

>> No.60906414


>> No.60906419
File: 417 KB, 741x821, tomoko.jpg [View same] [iqdb] [saucenao] [google] [report]

#include "conio.h"

>> No.60906427

dumb frogposter

>> No.60906442

Please make sure to post something on-topic, shitposter-kun.

>> No.60906452

And is viral marketing supposed to be "on-topic", also-shitposter-kun?

>> No.60906454
File: 7 KB, 186x178, 1412897381211.jpg [View same] [iqdb] [saucenao] [google] [report]

>dumb frogposter

Every time I see that reply I'm going to post one, until I see no more Chinese cartoons in /dpt/.

>> No.60906489
File: 372 KB, 1280x720, 1452471092796.png [View same] [iqdb] [saucenao] [google] [report]

When will this fucking reddit infestation end?

>> No.60906506

Makes sense.

>> No.60906536

No, but what does that have to do with my post, shitposter-kun~?

>> No.60906563

>When will this fucking reddit infestation end?
[citation needed]
Isn't Pepe a product of 4chan?
Also: fite me irl; the only reddit I visit is programming.

>> No.60906579

And once again, we've shown that all frogposters are retarded cancerous redditors.
Please kill yourself.

>> No.60906582


>> No.60906584

>t. never gone beyond a prototype
t. has never played eversion or any rpg maker game
t. uncultured swine

>> No.60906591

Dumb fuck.

>> No.60906600
File: 64 KB, 772x501, 1497426518784.jpg [View same] [iqdb] [saucenao] [google] [report]

>> No.60906611
File: 64 KB, 637x637, 1484738966464.jpg [View same] [iqdb] [saucenao] [google] [report]

Why is /dpt/ so full of rudeposters?

>> No.60906627

dumb frogposter

>> No.60906656

That's for enlightening me. Not.



I've been here longer than you've been out of short pants. If Pepe came from reddit I wouldn't know it, because r/programming isn't an image board. Literally, the only reddit I've seen more than once.

>> No.60906661

This girl is only 13

>> No.60906670

You've been here since last summer, right? :^)
Such an "oldfag".

>> No.60906673
File: 117 KB, 372x351, tumblr_inline_niiamgxftd1rnnsez.png [View same] [iqdb] [saucenao] [google] [report]

>he doesn't use #pragma once
>the far inferior #ifndef is more to his tastes
>he is literally this much of a dumb frogposter

>> No.60906676
File: 110 KB, 800x800, pepedankmeems420blazeitohbabyatripledankaestheticafkeepit100.jpg [View same] [iqdb] [saucenao] [google] [report]

Enjoy. But I really must go work out now.

>> No.60906691

Try 2006, friendo.

>> No.60906694
File: 70 KB, 848x941, 1487410983830.jpg [View same] [iqdb] [saucenao] [google] [report]

This picture is illegal in the UK. If you are in the uk right now, you can be legally arrested and get buttraped for the next 10 years.

>> No.60906707
File: 213 KB, 438x633, 1482246366518.png [View same] [iqdb] [saucenao] [google] [report]

Go back there

>> No.60906709

>reddit spacing

>> No.60906712

More like UCucks

>> No.60906723

the question was how long you've been here, not what year you were born

>> No.60906729

Why are you posting a picture of a rapist, anon?

>> No.60906737

>Went on /b/ once when you were 7
>Got too scared and fucked off to reddit
>Come back over a decade later
>"I've been here since 2006! I'm such a le oldfag XDDD! Post le funnay memes"

>> No.60906745

dumb frogposter

>> No.60906746

Conio is usually a system header though.

>> No.60906753

>reddit spacing
You say that like it's supposed to be an insult, but really, I can only take your word for it. r/programing may be full of pricks, but I only follow the article links. I rarely bother with what the denizens of the board have to say.

>> No.60906759

>reddit existed in 2006
I honestly had no idea.

>> No.60906761
File: 306 KB, 593x540, 798.png [View same] [iqdb] [saucenao] [google] [report]

>he doesn't even have a better comeback
>because deep down he knows he's wrong, #pragma once really is more elegant
>yet he still mad
>y he mad tho
>he is this much of a dumb animeposter

>> No.60906770
File: 13 KB, 396x300, Barf.jpg [View same] [iqdb] [saucenao] [google] [report]


>> No.60906773

These are the same people who write
#include "stdio.h"
#include "iostream.h"

>> No.60906783

Oh god, I can see the jpeg artefacts.

>> No.60906792

Why are you so insecure?

>> No.60906799
File: 32 KB, 500x492, v-uncommon-trippin-balls-pepe-2674369.png [View same] [iqdb] [saucenao] [google] [report]

Sure. Yep. You said it. Boy, you sure told me.

>> No.60906809
File: 3 KB, 225x225, images (3).jpg [View same] [iqdb] [saucenao] [google] [report]

>he thinks he seen some shit
>he ain't seen nothin yet

>> No.60906815

>Why are you so insecure?
Eliza: why do you ask?

>> No.60906817

According to wikipedia, it was 2005.

>> No.60906824

Ben Bitdiddle has invented a test to determine whether the interpreter he is faced with is using applicative-order evaluation or normal-order evaluation. He defines the following two procedures:
(define (p) (p))
(define (test x y)
(if (= x 0)

Then he evaluates the expression
(test 0 (p))
What behavior will Ben observe with an interpreter that uses applicative-order evaluation?
What behavior will he observe with an interpreter that uses normal-order evaluation?

>> No.60906829
File: 2.22 MB, 512x384, 1405798826325.gif [View same] [iqdb] [saucenao] [google] [report]

/dpt/ friends, please be kind to each other :c

>> No.60906842

dumb frogposter

>> No.60906846


>> No.60906852

I want to do some really bad things to this loli.

>> No.60906861

>functions with no arguments
Only shitty languages allow this.

>> No.60906867

if you were an oldfag you would have known about digg, reddit etc

>> No.60906869
File: 51 KB, 500x347, large.jpg [View same] [iqdb] [saucenao] [google] [report]


Be me.
Attempt to engage fellow /g/entlemen in Socratic discussion.
Receive only childish insults.

Redditor: 1 Me: 0

>> No.60906871

Dude, she is like 7 or so, wtf. This shit is not legal.

>> No.60906883
File: 110 KB, 640x640, 1493255507347.jpg [View same] [iqdb] [saucenao] [google] [report]


>> No.60906884

t. has never even heard of functional programming

>> No.60906885

You forgot Slashdot.org, junior.

>> No.60906888

First heard of reddit around 2010, it was irrelevant before that.

>> No.60906891

And? I'm a toddlercon after all.

>> No.60906897
File: 75 KB, 346x326, 1493257691502.jpg [View same] [iqdb] [saucenao] [google] [report]


>> No.60906898

Proper functional programming languages do not allow functions with no arguments. This is some impure state-changing bullshit.

>> No.60906901
File: 95 KB, 900x641, 1492103852787.jpg [View same] [iqdb] [saucenao] [google] [report]

I did a thing in Haskell

>> No.60906913

This post is illegal in the UK. If you are in the uk right now, you can be legally arrested and get buttraped for the next 10 years.

>> No.60906920

I mostly use HN for tech news these days, but it's really same circlejerk crowd as reddit. One of these days I've write my own news aggregator.

>> No.60906925

It isn't a function

>> No.60906932

Usenet/nntp is still the best place to talk about tech.

>> No.60906934
File: 19 KB, 266x272, 14932523478922.jpg [View same] [iqdb] [saucenao] [google] [report]


>> No.60906943
File: 154 KB, 637x900, danbooru-1894182.jpg [View same] [iqdb] [saucenao] [google] [report]

Thank god I don't live in the UK then.

>> No.60906950
File: 24 KB, 254x266, 149325298781247.jpg [View same] [iqdb] [saucenao] [google] [report]


>> No.60906953

>dodging the question

In applicative order, this stalls because the arguments (including the loop (p)) are evaluated before applying the function. In normal order, the expressions are only evaluated when they need to be immediately reduced, which never happens to (p) because of the branch.

>> No.60906954
File: 54 KB, 1024x768, 1471304516573.jpg [View same] [iqdb] [saucenao] [google] [report]

I will buy you your own Navi lain, now shut up, someone is wrong on the wired.

>> No.60906961
File: 595 KB, 1036x1500, 01.png [View same] [iqdb] [saucenao] [google] [report]

Thank god indeed.

>> No.60906963

>>dodging the question
What question?

>> No.60906970

>What behavior will Ben observe with an interpreter that uses applicative-order evaluation?
>What behavior will he observe with an interpreter that uses normal-order evaluation?

>> No.60906974
File: 515 KB, 1049x1500, 02.png [View same] [iqdb] [saucenao] [google] [report]

>> No.60906979

How is that changing state? Mathematically, there is no difference between a constant and a constant function - and any constant function can be expressed as a function of zero arguments.

>> No.60906987
File: 496 KB, 1042x1500, 03.png [View same] [iqdb] [saucenao] [google] [report]

>> No.60906993

Implying the Perl community on Usenet wasn't the cancer that drove me away (and ruined the language)...

>> No.60906997
File: 516 KB, 1045x1500, 04.png [View same] [iqdb] [saucenao] [google] [report]

>> No.60907000

what are you even talking about

>> No.60907004

The point is that in a proper programming language both (define (p) ...) and (define p ....) should be the same thing.

>> No.60907013

Thanks papa.

That's true in a pure language, but in an impure language (guess what -- impure languages matter!!) you can think of every function as carrying an implicit argument and returning an implicit result, that being the global state which can change after every invocation.

Also even in Haskell, a loop like
p :: a
p = p

will stall the interpreter, even though "it's a function with no arguments, and therefore a constant value"

>> No.60907015
File: 552 KB, 1033x1500, 05.png [View same] [iqdb] [saucenao] [google] [report]

>> No.60907020


>> No.60907022

>Ben Bitdiddle

>> No.60907026


>> No.60907028 [DELETED] 
File: 590 KB, 1046x1500, 06.png [View same] [iqdb] [saucenao] [google] [report]

>> No.60907042

The boy is cuter and girlier than her.

>> No.60907043
File: 583 KB, 1044x1500, 07.png [View same] [iqdb] [saucenao] [google] [report]

>> No.60907050
File: 1.29 MB, 195x229, 1487929902959.gif [View same] [iqdb] [saucenao] [google] [report]


>> No.60907055
File: 624 KB, 1047x1500, 08.png [View same] [iqdb] [saucenao] [google] [report]

>ywn never get a pitjob from a loli

>> No.60907069
File: 503 KB, 1040x1500, 09.png [View same] [iqdb] [saucenao] [google] [report]

>> No.60907077
File: 501 KB, 1046x1500, 10.png [View same] [iqdb] [saucenao] [google] [report]

>> No.60907089

that's the joke

>> No.60907091
File: 485 KB, 1044x1500, 11.png [View same] [iqdb] [saucenao] [google] [report]

I know you all are fapping.

>> No.60907105
File: 531 KB, 1045x1500, 12.png [View same] [iqdb] [saucenao] [google] [report]

>> No.60907110 [DELETED] 
File: 495 KB, 1039x1500, 13.png [View same] [iqdb] [saucenao] [google] [report]

>> No.60907124
File: 615 KB, 1047x1500, 14.png [View same] [iqdb] [saucenao] [google] [report]

>> No.60907134
File: 601 KB, 1044x1500, 15.png [View same] [iqdb] [saucenao] [google] [report]


>> No.60907146
File: 495 KB, 1044x1500, 16.png [View same] [iqdb] [saucenao] [google] [report]


>> No.60907156 [DELETED] 
File: 596 KB, 1037x1500, 17.png [View same] [iqdb] [saucenao] [google] [report]


>> No.60907167
File: 598 KB, 1047x1500, 18.png [View same] [iqdb] [saucenao] [google] [report]


>> No.60907178
File: 647 KB, 1044x1500, 19.png [View same] [iqdb] [saucenao] [google] [report]


>> No.60907190
File: 469 KB, 1043x1500, 20.png [View same] [iqdb] [saucenao] [google] [report]


>> No.60907212

you're fucked up

>> No.60907231

New to programming

Just downloaded python 2.7 and now going through python the hard way.

new to learning technology in general. didnt even know what powershell was now learning that first ._.

>> No.60907237


>> No.60907249

no, I am not a normalfag, I'm just not as fucked up as you are

>> No.60907269
File: 2.42 MB, 1697x2503, 001.png [View same] [iqdb] [saucenao] [google] [report]

If lolis are fucked up to you, you're a normalfag, bucko.

>> No.60907271

Anyone using kivy/kivent? I'm trying to into it now, but the documentation, especially for kivent, is somewhat lacking.

>> No.60907280

pythonfags fuck off

>> No.60907297
File: 7 KB, 250x250, 1393139469297.jpg [View same] [iqdb] [saucenao] [google] [report]

>if you're not a pedo, you're a normalfag
get help

>> No.60907322 [DELETED] 
File: 2.01 MB, 1688x2500, 002.png [View same] [iqdb] [saucenao] [google] [report]

Sasuga normalfag.

>> No.60907325

>python the hard way
That book is garbage, and Zed Shaw is a hack.

>> No.60907341

Maybe you should learn Python3 instead?

>> No.60907370
File: 1.44 MB, 284x342, 1493891792611.gif [View same] [iqdb] [saucenao] [google] [report]

>lolicon isn't pedo
>reee normalfag, why dont you want to fuck anime toddlers, reeeeeeee

>> No.60907389

Traps > Girls

>> No.60907395

haha I'm a fag

>> No.60907402

not haskell

>> No.60907409
File: 212 KB, 1280x904, 5BYQRZx.jpg [View same] [iqdb] [saucenao] [google] [report]


I've been working on finishing my >java studies

as I finished, I'm trying to switch to Intellij Idea as my main IDE, but I'm having trouble adapting to the way it's GUI system works

it's rather similar on some aspects, but somehow I still can't get it to perform actions (they're called Listeners on it I believe) and to launch the GUI on screen when running the program

I did a quick attempt at letting it create an object with some information, as shown here:

public class La {

private JButton button1;
private JTextField txtAccName;
private JTextField txtName;
private JTextField txtLName;
private JTextField txtPhone;

public La() {
button1.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent mouseEvent) {
Account c1 = new Account(Integer.parseInt(txtAccName.getText()), txtName.getText(), txtLName.getText(),Integer.parseInt(txtPhone.getText()));
JOptionPane.showMessageDialog(null, "Created successfully");

this differs greatly from what Netbeans shows and does, so I'm not sure if I'm doing something wrong or what the fuck's going on here

I'd really appreciate a hand

>> No.60907412
File: 1.83 MB, 1691x2500, 003.png [View same] [iqdb] [saucenao] [google] [report]

I see you are indeed a normalfag.

Only if you're gay.

>> No.60907420
File: 520 KB, 1280x720, 1480186874030.jpg [View same] [iqdb] [saucenao] [google] [report]

Only normalfags dislike traps. Fuck off normalfag.

>> No.60907423


shit, accidentally deleted the part where it said I've been working on Netbeans up 'till now

sleep deprivation does a number on one's ability to write

>> No.60907442

Nice pic

Java is shit, learn Haskell.

>> No.60907453
File: 7 KB, 225x224, tN14vQJ.jpg [View same] [iqdb] [saucenao] [google] [report]

>still insists that anyone who isn't into pedo/loli must be a normalfag
nah kiddo, its a spectrum, kind of like your autism

>not liking traps
psh, normalfag confirmed

>> No.60907465
File: 1.47 MB, 1020x1665, tumblr_olhwb6bjZ11s3ci0uo1_1280.png [View same] [iqdb] [saucenao] [google] [report]

I just picked it because it's the easiest language to get a job with, I'll expand my boundaries after doing so

have another pic fampai

>> No.60907487
File: 1.92 MB, 1699x2500, 004.png [View same] [iqdb] [saucenao] [google] [report]

But anons, I never said I didn't like traps. I just said that you're gay if you like them more than lolis.

>nah kiddo, its a spectrum
Ah, so you're admitting that you're a normalfag.
Also, we all have autism. Why else would we spend our precious time in this shithole?

>> No.60907519
File: 440 KB, 1280x720, 1478114118135.jpg [View same] [iqdb] [saucenao] [google] [report]

Only a normalfag would not admit that traps are the best.

>> No.60907529
File: 27 KB, 447x444, 1438982991127.jpg [View same] [iqdb] [saucenao] [google] [report]

>anyone who doesn't want to fuck anime toddlers instead of traps is a normalfag

>> No.60907538
File: 480 KB, 600x600, __imaizumi_kagerou_touhou_drawn_by_wool_miwol__078e79bd38b3929e0ae007feeaa624c5.png [View same] [iqdb] [saucenao] [google] [report]

Guys I'm really confused. What does any of this have to do with programming?

>> No.60907554

Nothing. There's one faggot forcing gay shit on /dpt/ and /g/ is generally the easiest board to troll so retards will have shitposting fest.

>> No.60907569
File: 255 KB, 600x561, 1487162354738.png [View same] [iqdb] [saucenao] [google] [report]

Traps are programming.

>> No.60907585
File: 273 KB, 600x550, __imaizumi_kagerou_touhou_drawn_by_wool_miwol__fb515745fca2297932bea8351f76a14a.png [View same] [iqdb] [saucenao] [google] [report]

>traps are gay
>traps are programming
s-so... programming... is... gay?

>> No.60907646
File: 268 KB, 489x399, 85505816.png [View same] [iqdb] [saucenao] [google] [report]

Nothing. Dick shitters go back to

>> No.60907773
File: 59 KB, 480x480, 34602056.jpg [View same] [iqdb] [saucenao] [google] [report]

What python module should I use to do something when I press a shortcut key combo?

Everything I've programmed starts from the top and works its way to the bottom? Can it do more than one thing at a time?

>> No.60907845

>Limitations of Lua patterns
>Especially if you're used to other languages with regular expressions, you might expect to be able to do stuff like this:
>'(foo)+' -- match the string "foo" repeated one or more times
>'(foo|bar)' -- match either the string "foo" or the string "bar"
>Unfortunately Lua patterns do not support this, only single characters can be repeated or chosen between, not sub-patterns or strings.
>only single characters can be chosen between.

But I don't see how. I'm looking to sanitize some input where ! and / are forbidden at the start of the string (but I aim to just strip them, not throw away the string).
So I could do that by matching "/-!-%a" in lua (- meaning zero or more if possible, %a meaning letter). But that doesn't catch alternating ! and / like (\!|\/)+\w would in regex.
I've looked at various documentation but I can't find a trace of it. Does anyone have any ideas about why this is?
The hacky solution would be to just do repeated /-!-/-!-/-!-/-!-/-!- for a while so I catch some number of them, that'd work but it's very ugly.
Performance isn't really a concern luckily.

>> No.60907853

traps aren't gay

python is

>> No.60907926

Think of the hierarchy of all possible logical propositions as like the shittiest road system ever: namely, a network of one way streets. A one way street from P to Q exists if and only if P implies Q in all possible worlds.
Traps are gay, so there's a one way street from traps to gay.
Traps are programming, so there's a one way street from traps to programming.
The logic error you're making here is that you're seeing a path between programming and gay, and thinking to yourself, oh, that looks like a path I can mentally traverse. The reason this is erroneous is because one of the streets in that path is facing the wrong way. You're trying to get from programming to traps and then from traps to gay, but you can't get from programming to traps, because it's a one way street and it goes the other way: from traps to programming.

>> No.60908058

html is a superior turing complete programming language to c. c is too bloated what with its classes and such, html is a pure functional language with no state :^)

>> No.60908066

C++ really is about to die, says increasingly nervous looking man

>> No.60908080

Traps ⊂ Gay
Traps ⊂ Programming
∴ Traps ⊂ Gay ∩ Programming

>> No.60908084

c++ is garbage the way it treats whitespace as syntax
use html, it's much faster and cleaner and can do all the same things

>> No.60908087

>tfw you find the coolest papers
Great stuff.

>> No.60908098

∴ either there are no traps or some of programming is gay

>> No.60908122

Traps != programming.
Your logic is flawed

>> No.60908129

>Traps != programming.
That's what she said.
Learn to read.

>> No.60908138

Fair enough. I usually gloss over anything past the first line of anyone talking about traps and tell them to kill themselves.

>> No.60908167

Alright friends, pretty much 'learnt how to program' through Python recently. Understand all the data types, control structures, object orientation; majority of the basics.

What I'm most interested in is predictive learning and all that shit. For a little fun I sort of want to analyse penny stocks (on the ASX because I'm in Australia). Is there any places that you guys know of for accessing this data for free, or for little cost at least; even if it's like 20 mins delayed or something. I guess even archived, but recent, data would even work for what I'm planning on doing.

Surely some companies might just have some realtime code that you can import in and just call for a certain amount of data you want? Or am I thinking that this is all a lot more open than it actually is? That'd have to be the way 'real time' data works right, seeing as you can't just read in a .csv file if it's constantly being updated?


Any easy way to access penny stock data (ASX specifically), for free (or for not too much)? And any useful ways for dealing with this constant flow of information within Python?

>> No.60908177
File: 80 KB, 600x582, 1450744086047.jpg [View same] [iqdb] [saucenao] [google] [report]


>> No.60908180

Check if there is an available API that you can access the data for.

>> No.60908182

Search for it:

>> No.60908194

Exactly what kind of abuse do these go through?

>> No.60908224
File: 41 KB, 599x548, ##squad.jpg [View same] [iqdb] [saucenao] [google] [report]

instead of saving images they want to share, there was a period of time where people just took a picture of their screen and then cropped it. A sufficiently popular picture would go through this process hundreds if not thousands of times. Seems like people finally learned, now, or maybe facebook/instagram/snapchat/whateverthefuck made their UI easier for people, idk.

>> No.60908236

yes, faggot.

>> No.60908289

No, just traps are.

>> No.60908343

Thanks friends

>> No.60908355


>> No.60908414


def is_gay(x):
return 'traps'==x


Pretty cut and dry to me, fellas

>> No.60908559

Nice m3me.

>> No.60908581

(defun gayp (x)
(eq x 'you))

(gayp 'you) => t

>> No.60908612

whats up with all the weeb porn in this thread? there are different boards and shit for that.

>> No.60908619

/g/ doesn't have mods.

>> No.60908622
File: 455 KB, 653x568, 1466969439649.png [View same] [iqdb] [saucenao] [google] [report]

says right here "anime imageboard"

>> No.60908697

> implying java ever gets you an end result
> implying java doesn't become an unmaintainable mess

>> No.60908702

>I'm trying to switch to Intellij Idea
lol fuck off with that shit i'm not even a freetard but there is nothing wrong with eclipse

>> No.60908705

anime watching losers are also the type to have nothing better to do than post anime all fucking day, what a surprise.

>> No.60908710

>tfw rewrite your Python code in C++ using Boost. It's fucking slower.

>> No.60908722

ye no shit
C++ users avoid Boost because it's so much slower than the standard library.

>> No.60908729

I'm dealing with custom datetime requirements and I thought boost's datetime would fit. What's a good C++ date time library?

>> No.60908748

C++ is garbage. Use C instead.

>> No.60908896

where are the fucking mods? nsfw loli ITT and crap like this: >>60892947

>> No.60908911

/g/ never had mods.

>> No.60908917

this board doesn't have mods, although hopefully some benevolent force is keeping track of the sickos who post shit like that.

>> No.60908958

import std.stdio, std.range, std.algorithm;

void main(string[] args)
if (args.length is 1)
.map!(f => f.File("r").byLine)

import std.stdio, std.conv, std.range, std.algorithm;

void main(string[] args)

import std.stdio;

void main(string[] args)
import std.algorithm, std.range, std.conv;


>> No.60908964


>> No.60909014


>> No.60909044

New Python user here. What is the most common way to run Python when sharing scripts/programs? Are those not its intentions? Like with JS you can embed your game/code in a web page and send someone the link, in java you can send someone an executable jar file. Does Python not have this? I love Python for just opening up and starting work right away unlike most other languages though.

>> No.60909065

d looks interesting.
does the module/import system work well?
how long are the compile times?
how annoying is the gc/the libraries that use it?

>> No.60909066

I haven't used python in a professional setting but I just use https://anthony-tuininga.github.io/cx_Freeze/
>you can just send someone a jar file
Not really. That relies on the JVM being installed. You can create java executables that contain the JVM and run an instance of that for your program. That's the common way you'd ship java without requiring too much of the environment. cx_freeze is similar i believe (haven't looked into details).

>> No.60909088

For simple scripts, you would most commonly require that the someone you are sharing the script with has a compatible version of python installed.

This is not that different from jar binaries--those require that the JRE is installed.

There are ways to compile python programs to binaries (such as .exe) though. Usually the compilation will output multiple files, and so for larger projects you might consider using an installer.

>> No.60909108
File: 35 KB, 480x439, 1493597267589.jpg [View same] [iqdb] [saucenao] [google] [report]

Actually, my mistake. JAR probably is not a binary.

>> No.60909117

Anon GC isn't annoying unless you're a very specialized individual. And if you are that kind of individual then it's pretty awful right now. You can't use very large parts of the standard stuff. But you cna still catch all of that easily by marking @nogc (or i believe there's a compiler flag) so it's not really annoying besides what you're lacking.
Most of the GC utilizing features are harmless to programs though. It's if you rely on the GC for your allocations that you'd really begin to care.
Feels great
>compile times
Way better than C++ but I find compile times for virtually every language underwhelming. It's objectively good though.

>> No.60909123

>still haven't found a solution
string.rep("/-!-", 30)..
That's not too bad though.

>> No.60909126

Why of course. Although it doesn't have a state-of-the art build system like Rust's cargo and module system

use std{stdio, algorithm, range}; would be really nice. But it's better than writing header files

>> No.60909145


On linux though you can run Python without being installed or am I being dense? You still have to have the library? I recall a kid at my uni being able to call and run his programs from the command line in a really nice way to do a lot of tedious stuff or if he just needed a random number or some sort of lists sorted.

>> No.60909162

Most distros already have python installed

>> No.60909173

>On linux though you can run Python without being installed
It's installed by default on a lot of distributions. Just like gcc
>being able to run his programs from the command line
Probably this:
But there's also other ways to do it.
You just put
#!/usr/bin/env python
at the top of your script.

I haven't thought about it much but maybe you can set up file extensions associations for terminals so they run without you needing the shebang.

>> No.60909196

Explain a brainlet the "Function recurrence" part please

>> No.60909217

you describe an element in terms of other elements
>(a[n] =) "a[n-1] + a[n-2]"
and give it some initial state

>> No.60909258

Basically a way to write these simply:

>> No.60909303

What are some projects to start that is worthy to put on my resume? I'm always coding something but its always filthy shit like malware or something related to organizing my porn stash.

>> No.60909318

>He claims to program in C++
>He actually just programs in C-with-classes
>He can't even into template metaprogramming, the true style if C++ programming.

>> No.60909337
File: 14 KB, 203x248, 83421.png [View same] [iqdb] [saucenao] [google] [report]

>she (male) thinks template metaprogramming is special, noteworthy or a good feature

>> No.60909346

>template metaprogramming
nicely meme'd

there's plenty of things you can do without using templates let alone doing metaprogramming with them

>> No.60909350

Enjoy doing unnecessary computations at runtime.

>> No.60909352

What are some efficient sorting functions that don't guarantee perfect sorting? The goal is to achieve an ordering that's coarsely correct and improves over time. Ideally I'd have a max delta. I don't want the order completely wrong at any point. But if maybe 50 elements or so are scambled but they're sorted with regards to external elements that'd be great. I'm only on multi-core machines so no need to constrain to non-parallel bigO.

Also how do people find algorithms based on their requirements?

>> No.60909359

enjoy doing unnecessary computations at compile time.

>> No.60909363

If I didn't want to do unnecessary computations at runtime, I would simply evaluate the expression at compile time, not use an awful fucking system where you've got compile time expressions and run-time expressions

>> No.60909374

>Enjoy doing unnecessary computations at runtime.
Are you serious man? Have you even used templates? Templates are one of the biggest compile time hogs in existance. You could run an entire metaprogramming preprocessor on the language (which many do actually) and still save time compared to C++ templates. They're extremely bad at that.

>> No.60909382

>don't guarantee perfect sorting
It's not a sorting function if that's not true.
Maybe you just want to do the first few iterations of shellsort or something?

>> No.60909387

>He can't even read

>> No.60909392

New thread:

>> No.60909397

>what is constexpr

>> No.60909403

Oh, so basically you don't have a chance in hell of being right even.

>> No.60909406

>What is an approximation algorithm

>> No.60909414

What kind of malware do you write? It's something i've always been interested in, but not interested in enough to go out of my way and do it.

>> No.60909415

>Approximating a sorting algorithm
The fuck?

>> No.60909428

That's literally what he asked for. Are you simple, dude?

>> No.60909467

>Also how do people find algorithms based on their requirements?
by not being clueless spoonfed babies

just do insertion sort and kill yourself

>> No.60909475

So you know the answer to my question then.
Because if you didn't that'd imply you're a clueless spoonfed baby.
Great anon.

>> No.60909481

maybe i do, maybe i don't

>> No.60909500

I don't particularly care because you've established you're not particularly friendly. And I think that implies a lack of correctness, had it affirmed many times.

>> No.60909534

kill yourself ungrateful retard who couldn't even bother to google it

>> No.60909551

>ungrateful retard
You've given me nothing so i have nothing to be grateful for.
You're probably wrong about lots of things.

>> No.60909583

you're a fucking joke dude go have fun with your approximately sorted shit

>> No.60909585

(p) is defined as a recursive procedure with no arguments/.when evaluated, it will fall in an infinite self-evaluating loop.(test) procedure is defined as a procedure with two arguments.because the interpreter uses applicative order evaluation, when test is called, first it 'looks at'(evaluates) the two arguments ( x y) and when y (p) is evaluated, (p) is called and the program falls in an infinite loop.given an interpreter using applicative order of evaluation, the body of the (test) procedure will never get the chance to be executed.with a normal order evaluation interpreter, the interpreter doesn't look at the arguments, unless it is needed, so the test should be executed and (test) should return 0. (if) conditional is a special form, because it also evaluates an expression only if needed.(if #f (p) 13) returns 13.

>> No.60909821

What should I code. I can never think of anything useful to code and improve

>> No.60909870

Its was just one actually, and it was my biggest project to date.
When executed it copies itself to the system folders and set it to launch on startup.
Then I can connect to it whenever I want and perform a set of commands like file/folder manipulation, download/upload files, take screenshot, etc
Its been ages that I don't mess with it though

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