[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: 328
Thread images: 48

File: 1495304790432.png (45KB, 741x643px) Image search: [Google]
1495304790432.png
45KB, 741x643px
Previous thread: >>60499056

What are you working on, /g/?
>>
>>60502997
"The most powerful programming language is Lisp. If you don't know Lisp (or its variant, Scheme), you don't know what it means for a programming language to be powerful and elegant. Once you learn Lisp, you will see what is lacking in most other languages." -Richard Stallman
>>
Furst for Go
>>
>>60503008
hit a GC pause?
>>
NO go DISCUSSION ALLOWED BELOW THIS LINE

------------------------
>>
>>60502997
Why haven't you learned Go yet?
https://github.com/golang/go/wiki/FromXToGo

Start here:
https://tour.golang.org
https://www.golang-book.com
>>
>>60503003
>king neckbeard's opinion
>relevant
>>
>>60503003
>Once you learn Lisp, you will see what is lacking in most other languages.
they are lacking the lack of types?
>>
Should I learn Rust?
>>
>>60503054
no. C++ is all you need to be a successful employed programmer.
>>
>>60503047
Lisp has types.
>>
File: paulg-3f2f4e41.jpg (34KB, 200x200px) Image search: [Google]
paulg-3f2f4e41.jpg
34KB, 200x200px
>>60503003
>>
>>60503038

Go is a shit lang. Discuss!
>>
>>60503064
you can't get a job with plain c++, you need visual c++, c#, java, sql, and visual basic
PLEASE NOTE I AM NOT SAYING THESE ARE GOOD LANGUAGES THEY ARE SHITTY PAJEETLANGS
you need them anyway because all employed programmers are employed by big businesses and all big businesses are shills
>>
Hi lads, quick question.

I'm using Python to do a simple script that will move files and rename them, however when moving a file to a new folder with shutil.move() it can be that a file with the same name already exists, I just want to know if there's any easy way around it so the file his not replaced, like to add a number or something in the file name instead? Since with shutil.move() it'll just replace the file and the other one is gone.

I know you can check if the file already exists on the folder, want to know if there's any other easier way to avoid getting other files removed from the folder.
>>
>>60503126

>you can't get a job with plain c++, you need visual c++
Depends what you're doing with C++. Many tasks do not need Microsoft's extensions.
>>
File: Capture.png (39KB, 636x269px) Image search: [Google]
Capture.png
39KB, 636x269px
reminder that lisp is a toy language, at best a babby's first cs101 language, and that lisp is unsuited for big boy software development
>>
>>60503054
No, go is the official language of /dpt/.
>>
>>60503184
I'm okay with this. Thanks, I'm going to go program lisp from now on.
>>
>>60503008
>>60503042
Fuck off
>>
File: curve.webm (2MB, 800x800px) Image search: [Google]
curve.webm
2MB, 800x800px
I made a Hilbert curve in openGL using geometry shaders. I can only do 10 iterations, though.
>>
>>60503304
I pooped today using the loo. I can only do 10 poos before I must poo in street, though.
>>
>>60503042
Rob, how is going my man
>>
>>60500680
Nah I'll admit I'm american. We're just working with Raspberry Pi and that's based in the UK.
>>
>>60503304
post code please
>>
>>60503304
seems nice. can I control individual pixels with shaders? I wanna do something like cornwell's game of life.
>>
>>60503595
>can I control individual pixels with shaders?
yes
>>
>>60502997

niggering my own asshole
>>
>>60503595
conway's game of life?
>>
>>60503636
>t. pajeet
>>
File: 1494893713714.png (129KB, 314x278px) Image search: [Google]
1494893713714.png
129KB, 314x278px
>>60503595
>cornwell's game of life.
>>
>>60503681
>conway
yes.
>>
>>60503595
>cornwell's game of life
beef will never be the same
>>
>>60503568
let me clean it up first.
>>
>>60503692
>>60503711
I mixed the names ok
>>
File: cirno.png (48KB, 372x343px) Image search: [Google]
cirno.png
48KB, 372x343px
>>60503737
>>
File: 1455618924714.jpg (38KB, 435x587px) Image search: [Google]
1455618924714.jpg
38KB, 435x587px
What are the requirements for a language to be considered anime-complete?
>>
File: php.jpg (46KB, 502x370px) Image search: [Google]
php.jpg
46KB, 502x370px
first for php
>>
>>60503595
Yes, it's called a fragment shader.
>>
>>60503773
Lain
>>
>>60503823
You mean the ability to program Lain in it?
>>
>>60503831

Yes.
>>
How do I learn to distinguish constants from variables?
>>
>>60503845
What were you going to mean by that?
>>
>>60503845
Look at their declarations
>>
>>60503845
>mouse over variable name
>intellisense shows its definition
>>
>>60503845

CONSTANT_IDENTIFIER
variable_identifier
>>
Is it ok to wear "Code Artisan" t-shirt in public?
>>
>>60503897
Only with a skirt and programming socks.
>>
>>60503845
Your IDE likely applies a different style to them.

>>60503896
good except you shouldn't use underscores for normal variables.
>>
>>60503897
if you're in san francisco sure
>>
File: 824.jpg (35KB, 600x645px) Image search: [Google]
824.jpg
35KB, 600x645px
>>60503897
You must wear this hat tho
>>
>>60502997
Creating some small infosec related script in Python. I figure that if I cant be an infosec professional (Im too systematic, I think, to do shit like appsec or websec), so I'll put my software autism to use and create _tools_.
>>
>>60503914

I like to distinguish them from function identifiers.
>>
>>60503945
i saw just the top part when scrolling down and thought it was the blacked meme
>>
>>60503003
>Richard Stallman
Stopped reading at this exact spot.
>>
>>60503945
why is she crying
>>
>>60503954
fair enough
>>
File: 000182.png (97KB, 271x268px) Image search: [Google]
000182.png
97KB, 271x268px
>>60503969
Because she is overwhelmed by the social interaction
>>
>>60503967
So at the end, right?
>>
>>60503994
baited for that exact response my lad
>>
>>60503994
At the end relative to the beginning? Yes.
At the end relative to where I started reading? No.
>>
I don't feel anything...
>>
i'm starting from the bottom up.

so...

f-first for html
>>
>>60504034
Try writing in Javascript! You will feel pain!
>>
File: 1456549892687.jpg (91KB, 702x397px) Image search: [Google]
1456549892687.jpg
91KB, 702x397px
Is C a dialect of Rust?
>>
>>60504058
No, but Lisp is a dialect of Lisp.
>>
Anyone using AWS? How does AWS actually work? I want to deploy a Go web service storing data to a database to the cloud. I'm guessing I need an EC2 instance but it doesn't have persistent storage so I need S3 to mount the filesystem containing my software. And then I need RDS for the database?

If all that is needed AWS went from kind of cheap to kind of expensive compared to a VPS instance. I guess not having to maintain the database is kind of a plus.
>>
>>60503914
>good except you shouldn't use underscores for normal variables.
Surely depends on the conventions of the language?
>>
I really feel like i just hit a millstone, automating the web browser is fucking dope
>>
>>60503862
Python doesn't have constant declaration.
>>
>>60504105
>>>/g/wdg/
>>
>>60504126
Truly garbage.
>>
>>60504126
>Python
Trash language, what it does is probably wrong.
>>
>>60502997
great image lol
>>
>>60504086
just use digital ocean lol
>>
>>60503736
Just post a github repo and clean it up as you go
>>
>>60503304
hiblert
>>
>>60504186
It's basically a VPS provider with some dynamic scaling but it requires reboots to do that? The pricing is interesting though with monthly plans.
>>
File: 1493993741056.jpg (117KB, 1280x720px) Image search: [Google]
1493993741056.jpg
117KB, 1280x720px
I think I'm the best programmer in this thread. Just saying.
>>
File: dlang_chan.jpg (139KB, 470x545px) Image search: [Google]
dlang_chan.jpg
139KB, 470x545px
>>60502997
Threadly reminder that dlang-chan is not dead; she's going to have her GC tumor removed (eventually); and she's super duper cute and easy to prototype in! Say something nice about her, /dpt/!
>>
>>60504290
Do you use Lisp? If not, then you are wrong.
>>
>>60504086
Aws and azure are so confusing, damn
>>
>>60504304
I use what you could call a dialect of it.
>>
>>60504290
How about you prove it, faggotface?
>>
don't reply to it
>>
>>60504327
It's self-evident.
>>
>>60504361
Just as I thought. Go back to your desktop general posting your programming socks.
>>
>>60504356
???
>>
>>60504373
>Just as I thought.
Why did you ask for a proof if you already knew it was true? Seems like a dirty lie to me.
>>
>>60504290
github?
>>
>>60504398
To confirm my suspicions, of course.
>>
>>60502997
>What are you working on, /g/?
official /dpt/ tetris game.

Would like an advice from a c++ expert, please.
>>
>>60504416
I don't use such trash.
>>60504421
No. I don't think it does.
>>
Reminder that "hacker" is a white male keyword

https://twitter.com/sarahmei/status/865414033989525504
>>
File: 1480974326806.png (518KB, 974x974px) Image search: [Google]
1480974326806.png
518KB, 974x974px
Thigh-highs or stockings, /dpt/?

>>60504460
I prefer cracker.
>>
>>60504429
If you have nothing to show then you are irrelevant
>>
>>60502997
Writing a queue-based processing system in Crystal. I had an in-memory queue library in place first called Dispatch, but then realized that it doesn't let you see what's in the queue, let alone alter it if needed. I switched over to sidekiq and realized that I can't have everything running out of a single application. I'll need a redis instance, a process for the API portion, and a separate process for working the queue. Not a huge deal, but I was originally expecting to have all of this in a single application
>>
>>60504468
Why not both?
>>
File: 37832570_1c6ee43b29_z.jpg (72KB, 500x375px) Image search: [Google]
37832570_1c6ee43b29_z.jpg
72KB, 500x375px
>>60503595
>cornwell's game of life.
oh my fucking god
>>
File: test (4).png (532KB, 602x699px) Image search: [Google]
test (4).png
532KB, 602x699px
>>60503304
That's pretty cool anon. Did you use recursion?
>>
>>60502997
So what? All of them are above the average
>>
File: 979838993856695837.png (42KB, 370x320px) Image search: [Google]
979838993856695837.png
42KB, 370x320px
>tfw you can't comment the code of your personal projects because you think it will 'pollute' the code
>mfw I have thousands of lines of uncommented code on several different projects, and they are all open source
I wonder what people think when they stumble upon one of my codes
>>
>>60504491
I never claimed I was "relevant". I just stated a simple fact.
>>
>>60504546
Currently I am working on a hello world project in x86 asm which has inline C codes.
>>
>>60504546
Coming back to a complex old project for me always has been a headache without comments so i learned to do them just because of that
>>
>>60504546
>>60504566
>codes
>>
File: 32re.png (146KB, 370x320px) Image search: [Google]
32re.png
146KB, 370x320px
>>60504566
>>60504598
Fuck off!
>>
$# is the best language. Prove me wrong.
>>
>>60504546
most code should unironically be readable without comments. if it's code meant for other people to use you should document the exposed API but the code itself shouldn't need a lot of comments
>>
>>60503788
Get on the composer train or get out of the way
>>
File: chen_spit.png (52KB, 325x216px) Image search: [Google]
chen_spit.png
52KB, 325x216px
>>60504546
>ever feels the need to comment your code
Definitive sign of a brainlet.
>>
>>60504622
>unironically
>>>/b/
>>
File: battleship.png (11KB, 461x353px) Image search: [Google]
battleship.png
11KB, 461x353px
Hello. What's the most efficient AI for battleship? I mean one that will win in the least amount of moves.
So far I check the board in a checkerboard like pattern, (as the maximum ship length is 2).
Can anyone think of more features I should incorporate into my code to minimize the average amount of moves needed to solve battleship on a 10x10 grid.
>>
>>60504677
How many moves ahead does it account for?
>>
How drunk do I need to get before Go starts seeming like a good idea?
>>
>>60504677
http://io9.gizmodo.com/5910188/an-algorithm-to-help-you-play-the-perfect-game-of-battleship
>>
whats a strptime alternative in windows?
>>
>>60504735
Interesting linked article. I have the feeling that you can improve quite a bit on the last algo by incorporating actual player data
>>
Why is ocaml so fucking hard though?
>>
>>60504869
All ML inspired languages are BDSM hell. They put the programmer in shackles.
>>
>>60504086
EC2 has persistent storage options.

You can also detach and remount the volume on other instances.

The setup can be confusing, and you'll need to be wary of costs as AWS explicitly does not offer you a way to terminate services when you reach a budget threshold.

AWS is generally more expensive than other providers, such as Digitalocean.

One of the main advantages with AWS is the synergy between their services and the SDKs they offer for using them. I don't know how well Go is directly supported.

You may be better off with Google's equivalent as they likely have first-class Go support.
>>
>>60504521
I wanted to use recursion and found a recursive algorithm to use but it required constantly modifying the vertex buffer so I just went with an iterative algorithm.
>>
https://www.youtube.com/watch?v=3U3lV5VPmOU
>>
>>60504801
cmon i bet there's some c fags in here
>>
>>60504468
cut off just before the ankle bone and jeans with holes tucked into white high-top shoes. cyberpunk programmers > trap programmers
>>
>>60504869
>>60504889
Do you have a double digit IQ? Serious question here.
>>
File: 2017-05-11_Min-All.png (44KB, 414x865px) Image search: [Google]
2017-05-11_Min-All.png
44KB, 414x865px
>>60502997
Hmmmm....
Where would my degree fall?
It's a Bachelor's in Business with a Major in Info Tech.

Here's what the last 2 years of College looked like for me.

I mainly ducked out in the Maths dept. If I didn't hate Calc so much, I woulda been CS
>>
>>60504968
What on earth is info tech?
>>
>>60504935
Sorry man, it's a meme. Only beginner to lower-intermediate programmers use C on this board.

You'll want a C-specific forum or embedded software forum for those kinds of questions.
>>
>>60504951
I mostly program in Lisp but the whole ocaml ecosystem is clusterfuck. You have like ten different binaries for getting dependencies, compiling and running your programs.
The syntax is also very different.
>>
Rust is a meme language
>>
>>60504951
A programmer should be free to write what they want. They should be free to shape a programming language into the mold that fits the problem. Conforming to a compiler slavemaster is the antithesis of this line of thought.
>>
How good is this shit? I seriously need a good book on data structures.
>>
>>60504935
Well, you mean C fags that use C on Windows

How about https://msdn.microsoft.com/en-us/library/fe06s4ak.aspx

If you need exactly that function you can grab an open source implementation of it, as obviously it's not included in MS's runtimes.
>>
>>60505035
CLRS
>>
>>60504975
It's usually reserved as a SME (Science, Maths, and Engineering) curriculum thing, but I didn't think Computer Information Systems (CIS) was technical enough.

Essentially, IT is possible without all the Maths and Science courses.

If I would have preferred to do a straight CS degree, it'd have required Calc II, Calc III, and Diff Equations. I think I also woulda needed 1-3 more Science courses.
But from the CS curriculum, I think I'm only missing 3 or 4 courses, including some Innovation course, something about Geo Data, and like 1 or 2 others.

>TL;DR: My College allows students to sort of "build" a degree.
>It's CS, but without the extra Maths and Sciences.
>My highest Maths were Calc I and Discrete
>My highest sciences were Engi Phys I and Geology
>Other than that, I mostly followed the CS curriculum
>>
>>60504904
Good to know about the termination. It seems there is sufficient Go support with AWS. AWS is tempting due to how easy it is to increase performance when needed, AMI, ease of backups and so on. I only have any real load one third of the day during weekdays and close to none during night and weekends but it's not like I can shut down the instance anyway. A micro instance might be overkill to start with and they are kind of expensive.

I'll check out Google's offerings too. They probably offer competitive pricing.
>>
>>60504997
>the whole ocaml ecosystem is clusterfuck
That's just because the language is fucking trash. But that doesn't mean it's "hard".
>The syntax is also very different.
That doesn't mean it's hard or "puts the programmer in shackles", which is a phrase so meaningless it could be applied to every single language with enough word games.

>>60505026
>A programmer should be free to write what they want.
No language except trivial ones where every single program does one thing can possibly fit this description.
>They should be free to shape a programming language into the mold that fits the problem
No language can fit every problem. You have to be genuinely delusional to think otherwise.
>Conforming to a compiler slavemaster
This is what I mean when I say you have an extremely low IQ. People with a higher IQ are usually able to enforce their desires through the compiler/type system. Stupid people such as yourself simply lack this basic ability. Also this sounds a lot like retarded leftist rhetoric, not that I'm surprised.
>>
Which one is better for Rust? IntelliJ or VS code? I've been using VS code up until now
>>
>>60505026
*tips*
>>
>>60505074
I hope you realize that static type systems are not the future.
>>
>>60504428
i'm fucking that ms-specific makefile off to hell and writing my own scons project for it, but i'll probably keep it to myself

once i have it building sanely on windows+mac+linux i'll probably actually work on the code
>>
anyone know any resources good for learning AVLs and practicing with them?
>>
>>60503025
kek
>>
File: 1492099673616.jpg (290KB, 800x820px) Image search: [Google]
1492099673616.jpg
290KB, 800x820px
>>60505102
>>>/g/wdg
>>
>>60505102
>static type systems
There are no other type systems. Which reduces your post to "I hope you realize that type systems are not the future", which I don't even understand the intended meaning of.
>>
>>60505121
>>60505122
Cry all you want, but dynamic typing is the dominant paradigm. It's simply superior.
>>
>>60505146
>dynamic typing
That's a self-contradiction, I don't think it can be the "dominant paradigm" (whatever that's supposed to mean).
>>
>>60505146
>muh dynamic typing
Say goodbye to performance
>>
>>60504618
...cashbang?
>>
>dynamic typing is the dominant paradigm
>microsoft rolls out typescript
hmmmmm
>>
>>60505090
Atom
>>
>>60505090
Not using rust
>>
>>60505190
Thanks for the tip, NSA
>>
File: 1492808256696.png (89KB, 1215x895px) Image search: [Google]
1492808256696.png
89KB, 1215x895px
>>60505198
>>
>>60505198
Rust is as safe as Javascript
>>
>>60505090
eclipse
>>
>>60505160
Your assertions are incorrect. Please seek help.
>>60505173
Citation needed.
>>60505177
>typescript
Why bring up a dead language?
>>
>>60505220
>muh sjwzilla
>>
File: 1492124080691.png (315KB, 1876x559px) Image search: [Google]
1492124080691.png
315KB, 1876x559px
>>60505220
>>
>>60505107
thanks, i am also avoiding that makefile. i am compiling with

COMP -std=c++14 -pedantic-errors -Wall -Wextra -lsfml-graphics -lsfml-window -lsfml-system src/*.cc


where COMP is either g++ or clang++
>>
>>60505220
Wait can I just say that I'm gay or do I need to prove it somehow?
Also are gays marginalized or are they majority now?
>>
>>60505220
>diversity travel funds
AHAHAHAHAHAHAHAHAHAHAHA
>>
>>60504968
I guess you can call it software engineering or something
>>
>>60505257
>implying other languages are safe
>>
File: fucking_kek.png (133KB, 328x395px) Image search: [Google]
fucking_kek.png
133KB, 328x395px
>>60505220
>literal affirmative action
HAHAHA AND PEOPLE STILL TAKE RUST SERIOUSLY?
>>
>>60505257
C truly was a mistake
>>
>>60505275
those literal faggots believe rust is safe because reasons
>>
>>60505257
THIS is the power of C
>>
>>60505268
Hmmm, ok.
>>
>>60505286
Rust doesn't have double free
>>
File: 1469470485929.png (72KB, 236x231px)
1469470485929.png
72KB, 236x231px
>>60505257
>wow look it's a bug in a C program, the language must be the issue
>>
>>60505220
>/pol/ shit
>>60505257
>Actual concern

gee, I wonder why C tards are so insecure
>>
>>60505295
>neither does Go, and you don't hear people saying Go is "safe"
>>
>>60505295
wow it's fucking nothing
>>
>>60505311
>135 security exploits in 2017
>>
>>60505067
If you plan on doing more than tiny hobby projects, I would recommend avoiding falling into the trap of relying on custom AMIs.

They can get out of date very quickly, leading to a length patch/update time if you want to get security updates for your software when spinning up the AMI.

You should prefer startup/init/install scripts, or containers, to custom AMIs. (if you later go with Elastic Beanstalk at all, it has more integral support for this in its 'ebextensions' stuff.

You may also be interested in bandying things together with Lambda. Google has a similar technology as well.

In terms of costs, a very important thing to remember with cloud providers - and this is true of all of them - is that moving data out of their services (exfiltration or serving data to customers) is more expensive than putting it in. That's where the runaway costs can get you.

In any case, good luck with your project.
>>
>>60505039
CLRS is a fucking phonebook of algorithms and you suck for recommending it.
>>
>>60505308
Who are you quoting?
>>
>>60505308
>neither does Idris, and you don't hear people saying Idris is "safe"
>>
>>60505316
so? rust doesn't magically prevent people from making mistakes
>>
>>60505308
Whoops didn't mean to greenbelt that
>>
>>60505327
It magically prevents people from making a double free
>>
>>60505324
t. brainlet
>>
>>60505298
Bugs and C go hand in hand
>>
>>60505333
this is how much i care:
>>
>>60505344
>Lose argument
>Close eyes
>Close ears
>Open mouth and yell:
"I dun care X-DDD"

Typical /g/ autist
>>
>>60505333
That's not a language problem, it's an implementation problem
>>
>>60505324
t. couldn't understand CLRS
>>
>>60505351
Yeah, 45 years of implementation and it still has this issue
>>
>>60505324
>CLRS is a fucking phonebook of algorithms

That's sort of the point. It's a reference.
>>
>>60505349
>muh no double free
doesn't mean rust is "safe" by any sensible definition of safe
>>
>>60505340
So what, bugs go hand-in-hand with a lot of shit.
>>
>>60505366
You really suck at debating. You proved it when you posted /pol/ garbage not long ago. Just fuck off if you can't handle proper argument
>>
>>60505326
What's the rate of garbage produced by Idris?
>>
>>60505376
fuck off you delusional literal fag, you're the one who sucks at debating, you convinced absolutely no one that rust is safe with your no double free "argument"
>>
File: 1488248151444.jpg (233KB, 503x662px) Image search: [Google]
1488248151444.jpg
233KB, 503x662px
>>60505257
>>
>>60505362
Because implementors care more about speed than security
>>
>>60505394
>This upset over losing an argument in an anonymous image board
>>
>>60505409
>projecting this hard
>literally just shitposting and fishing for (You)s
>>
>>60505408
Forty-fucking-five years
>>
>>60505305
This
>>
enjoy your retarded autistic daycare-tier shitposting thread
>>
>>60505220
>Be autistic lincuck
>Use firefox
>Get insecure by fags and sjws
>Have no real argument
>>
File: 1491956116016.jpg (529KB, 1152x2048px) Image search: [Google]
1491956116016.jpg
529KB, 1152x2048px
>>
>>60505388
It's implemented in Haskell, so at least 1 GB/s
>>
>>60505464
Is that the base garbage production rate? Can I overclock it to 6 GB/s?
>>
>>60505463
and then the joker kills them?
>>
File: hags_kek.png (355KB, 599x291px) Image search: [Google]
hags_kek.png
355KB, 599x291px
>>60505463
Do they think those (((languages))) make the kid look smart or something lmao that's beyond pathetic.
>>
>>60505487
Looks smarter than your autistic weaboo-/pol/ garbage 2bh
>>
>>60505463
typical that a SJW would have such a poor taste in programming languages
>>
>>60505472
When you call Idris without any arguments, it by default does this. The garbage production rate grows exponentially with the number of types and proofs written in a program passed to it.
>>
>>60505463
it's not shaded the same but that redhead's face reminds me of inCase

she better have a dick
>>
>>60505494
>triggered rustfag
LMAO
>>
when you've just finished learning a language what do you do to test that you know it?
>>
If /pol/ hates Rust, I love Rust.
>>
on python, is there a way to get the gpu to share the load involving non math functions
>>
>>60505509
t. literal mentally ill queer
>>
>>60505508
Claim everything else is shit and show your language is the best.
>>
>>60505494
>weaboo-/pol/ garbage 2bh
Your kind isn't allowed over here.
>>>/b/
>>
>>60505506
kawaii anon chank die suki desu uguuu ~ <3
>>
>>60505519
t. Mentally ill neo-nazi fat faggot
>>
File: 1491599606850.jpg (226KB, 1200x900px) Image search: [Google]
1491599606850.jpg
226KB, 1200x900px
>If /pol/ hates Rust, I love Rust.
>>
>>60505534
don't forget to take your hormones
>>
File: gate keeper.jpg (16KB, 480x360px) Image search: [Google]
gate keeper.jpg
16KB, 480x360px
>>60505522
thanks ugu~~~~
>>
>>60505536
wtf i hate rust now
>>
>>60505373
C makes it easy for you to fuck up.

C++ offers reliable safety measures built in to the code because of OOP
>>
>>60505551
don't forget to take your pills
>>
>Rustfag(s) literally getting triggered left and right like an actual tumblrina
LMFAO
>>
>>60505565
Who are you quoting
>>
I wouldn't say reddit. I would say ifunny or 9gag. Which make reddit look like heaven.
>>
>>60505565
>LMFAO
>>>/b/
>>>/r/abbit
>>
>>60505561

OOP is not the reason, RAII is the reason.
>>
File: 1481339338497.png (266KB, 339x589px) Image search: [Google]
1481339338497.png
266KB, 339x589px
>>
File: 3567654efbea65f2645bd127cb994a52.jpg (139KB, 1200x900px) Image search: [Google]
3567654efbea65f2645bd127cb994a52.jpg
139KB, 1200x900px
>>60505561
>OOP
>>>/out/
>>
>>60505565
Rust is literally SJW incarnate
>Conform to my way or fuck off
>>
File: Capture.png (17KB, 524x301px) Image search: [Google]
Capture.png
17KB, 524x301px
>>60505562
>>
>>60505597
If OOP was bad, no one would use it.
>>
>>60505579
You can't have proper RAII with dynamically allocated variables without OOP

Prove me wrong
>>
>>60505576
>>>/mozilla/
>>>/reddit/
>>>/anywherebuthere/
>>
>>60505604
Suicide is the ultimate red pill
>>
File: yuyu_laugh.png (63KB, 528x405px) Image search: [Google]
yuyu_laugh.png
63KB, 528x405px
>>60505583
>this is the Ruby/Rust userbase
The jokes fucking write themselves.
>>
>>60505317
>If you plan on doing more than tiny hobby projects, I would recommend avoiding falling into the trap of relying on custom AMIs.
Plan is to make some money out of it on the side. Helping an old employer (small time business) to reduce costs, reduce complexity, increase uptime, simplify maintenance and allow future growth. A simple start once and forget service basically. Not sure if micro/nano instances are enough yet but coupled with a RDS or cloud sql service it should probably be enough. The current database increases with 300 rows a day on average and have some 5000 requests for data.

The current dedicated complicated windows setup some consultant setup for him is overly expensive, complicated, hard to maintain and difficult to scale given current tech used. It needs to be more or less fully automated.

>They can get out of date very quickly, leading to a length patch/update time if you want to get security updates for your software when spinning up the AMI.
I see that's a good point.

>You should prefer startup/init/install scripts, or containers, to custom AMIs. (if you later go with Elastic Beanstalk at all, it has more integral support for this in its 'ebextensions' stuff.
So use standard AMI and mount an EBS containing my software then. The container service seems interesting too.
>You may also be interested in bandying things together with Lambda. Google has a similar technology as well.
Seems interesting. Definitely will check it out.

>In terms of costs, a very important thing to remember with cloud providers - and this is true of all of them - is that moving data out of their services (exfiltration or serving data to customers) is more expensive than putting it in. That's where the runaway costs can get you.
Not much data is moved but it's best to keep a check on it.

>In any case, good luck with your project.
Thanks! You've been most helpful.
>>
>>60505617
kek
>>
File: molestation.gif (2MB, 320x173px) Image search: [Google]
molestation.gif
2MB, 320x173px
>rust
>ever

https://github.com/rust-lang/rust/pull/25640
https://github.com/rust-lang/rust-buildbot/issues/2
https://github.com/rust-lang/rust/issues/28059
>>
>>60505617
W O K E
O
K
E
>>
>>60505617
fucking moron, i bet you believe everything about the holocaust too

http://www.jpost.com/Arts-and-Culture/Entertainment/How-did-Hitler-really-die
>>
http://www.strawpoll.me/13008435
>>
Ocaml or just standard ML?
>>
File: 1486586820925.jpg (22KB, 500x396px) Image search: [Google]
1486586820925.jpg
22KB, 500x396px
>>60505617
>>
>>60505611

If OOP means classes with ctors and dtors then you're correct.
If OOP means polymophism, inheritance and virtuals then you're wrong.
>>
>>60505647
Neither.
>>
File: vult.jpg (61KB, 552x828px) Image search: [Google]
vult.jpg
61KB, 552x828px
>>60505634
>>
http://www.strawpoll.me/13008444
>http://www.strawpoll.me/13008444
http://www.strawpoll.me/13008444
>http://www.strawpoll.me/13008444
http://www.strawpoll.me/13008444
>http://www.strawpoll.me/13008444
>>
>>60505339
>>60505354
No. I do understand CLRS. It is a reference book. Giving someone a reference book to teach themselves is like giving someone an engine schematic to learn how to change their oil.
>>
I think we need to put R*st users in camps.
>>
>>60505617
lel, wtf I love suicide now
>>
>>60505654
What would you suggest?
>>
>>60505686
nice samefag
>>
>>60505692
>>60505686
Samefag
>>
>>60505687
Something that isn't a massive meme
>>
>>60505674
everything up to the chapter on red black trees is a pretty easy introduction to algorithms that could be self taught by a bright high schooler
>>
>>60505699
t. couldn't self-teach red-black trees
>>
>>60505694
>"""meme"""
And why would I care about that?
>>
>>60503153
if os.path.exists(file):
rename file
move file
else:
move file

is as easy as you're going to get. Honestly i don't know how you can call that not easy
>>
File: 1490296496833.jpg (25KB, 641x530px) Image search: [Google]
1490296496833.jpg
25KB, 641x530px
>>60505709
avl's are simpler
>>
does anyone have any advice for me
>>
>>60505813
Yes.
>>
>>60505813
here you go, free advice: actually post what you want advice on first
>>
>>60505813
Staple your scrotum to your inner thigh.
>>
>>60505813
don't fall for the rust/haskell/idris/lispmeme or whatever shitlanguage the queers are shilling at the moment
>>
>>60505826
>meme
>>>/v/
>>
>>60505826
except rust. you can fall for rust. just equip your programming socks first
>>
>>60505311
https://www.cvedetails.com/cve/CVE-2017-8890/
>>
>>60505834
rust is made by literal queers, it's not better than C++

>>60505841
kill yourself
>>
>>60505834
>except rust. you can fall for rust
Only if you have purple hair, face full of piercings, identify as legendary dragonkin and don't take not shit from CIS males.
>>
Idris actually looks really neat and makes me want to try FP again, but it'll probably flounder like every other improved Haskell derivative.
>>
File: 1488869296301.png (228KB, 3316x1896px) Image search: [Google]
1488869296301.png
228KB, 3316x1896px
>>60505848
>Actually post a live and fresh example to show double-free is a concern
>HURR DURR KILL YOURSELF
>HURR DURR YOU ARE A FAGGOT
Hmmm
>>
>>60505867
I don't think it's that similar to H*skell, except for syntax.
>>
>>60505870
doesn't mean rust is """"safe""""
>>
>>60505870
>>60505883
Fuck off to >>>/b/
>>
>>60505883
Safer than whatever the fuck you are using, kid
>>
File: 1326225560586.png (44KB, 205x210px) Image search: [Google]
1326225560586.png
44KB, 205x210px
>>60505333
>It magically prevents people from making a double free
Are you asserting that double frees are the only errors that any programmer could ever make? Really?
>>
>>60505867
from what i hear idris is even more arcane than haskell
>>
>>60505876
It's basically Haskell plus dependent types, minus laziness.
>>
>>60505917
keep enjoying your false sense of """"safety"""" delusional rust fag
>>
>>60505928
he's literally delusional, like all transgender sickos
>>
>>60505935
Which means it's not similar at all. Nobody with even basic knowledge of both of their type systems would claim that.
>>
>>60505928
Nope. However it's really hard to make unsafe codes compile in Rust

>>60505936
>>60505951
Are you really that desperate?
>>
https://doc.rust-lang.org/reference/behavior-not-considered-unsafe.html
>>
>>60505959
>It's basically Haskell plus dependent types, minus laziness.

I don't think you're actually disagreeing with me; I'm saying the type system is really the only major difference. It's an important difference but the languages are similar in basically every other respect.
>>
>>60505305
>>60505870
C apologists in a nutshell
>>
>/dpt/
>What are you working on, /g/?
>thread full of programming language shitposting
>>
>>60506054
Have you seen the last two threads?
>>
>>60506054
leave while you can or you'll be stuck here forever pretending to be a retarded fag because getting (You)s is your only source of attention
>>
As a black individual, will I ever get my place in technology related fields?
>>
>>60506144
Being black is an advantage in tech fields
>>
>>60506144
Review phones
>>
>>60506144
Be a Ruby programmer
>>
>>60506153
maybe in san francisco because you have insane politically motivated faggots playing with their daddy's money
>>
File: Screenshot_2017-05-21_09-41-01.png (5KB, 472x198px) Image search: [Google]
Screenshot_2017-05-21_09-41-01.png
5KB, 472x198px
>>60505260
hi anon i did an autismo
>>
Anyone know about writing AI that can play videogames? I did an AI module at uni but didn't cover it. Only PDDL + Prolog + general knowledge.
>>
>>60506213
""""AI"""" is a meme. do you mean writing a bot for a specific game?
>>
>>60506229
Yeah
>>
>>60506213
probably look into the TAS scene for speedrunning and the mario bots
>>
>>60506213
controller->sendInput(rand())
>>
>>60506242
If you have no way to access a game API you have few choices. You can roll with simple image recognition (pixel area really) and send mouse and keyboard events to the game. That makes for a simple bot. A more advanced way would be to use cheatengine to find pointers in memory to pretty much anything. Then use that information to create a bot.
>>
>>60506180
I live in Ohio, which is by no means a liberal state, and I see all the time on job postings, research opportunities, and scholarships stuff like "underrepresented minorities are ESPECIALLY encouraged to apply"
>>
>>60506213
I mean, it's not like we can give you a post that will suddenly imprint you with knowledge on a massive field of science and mathematics. Go look up the A* and minimax algorithms. You'll need to know about graphs and trees. Have fun.
>>
>>60506311
The simple bot idea sounds good. How would I start linking what's on the screen to an input to a function? Which languages would you use for it and how could they be linked in one project?
>>
>>60506321
>"underrepresented minorities are ESPECIALLY encouraged to apply"
This trend is everywhere quite frankly. In my experience these postings are created for
1. Companies that want to boos their PR game
2. Temporary period, people that are not good for the job they got tend to quit soon enough

It's a win-win for companies or organizations. 4chan is too autistic to understand these marketing tricks.
>>
>>60506343
I know about all of those but I don't know how to turn what was essentially knowledge for a test into something that I can use in a real project
>>
>>60506360
boost*
>>
>>60506343
I for some reason don't really consider A* to actually be an AI. It's just a search algorithm you can't train.

>>60506346
I think you can achieve all that in Autohotkey for the most simple solution.
>>
>>60506380
AHK maybe, but I'm also thinking of something that I could write about on a resume. Do you know of any languages that could do this kind of thing that would also be recognised by employers?
>>
>>60506380
Trainable AI isn't really the best thing to use for games.
>>
Doing the ml meme coursera course in python

I spend more time figuring how to plot nicely than write actually code.
>>
I'm learning PHP
>>
>>60506411
Pretty much any language can screengrab and send mouse/keyboard events with win32 API. How about using C++ then? Maybe have to use directx to capture screen at decent frame rate.

>>60506424
Depends on what you want to achieve. Using a neural net to make a perfect flappy is one example.
>>
>>60506360
this is a burger thing. in reality it's not good PR. no one cares or they actively despise it.
>>
New thread: >>60506490
>>
>>60506480
>it's not good PR.
Anon. If it was not a good PR, no company would actually invest on it. Think!
>>
>>60506502
k

http://www.dailywire.com/news/13267/marvel-depoliticize-its-comics-after-social-frank-camp
http://variety.com/2017/biz/news/kendall-jenner-pepsi-commercial-protest-twitter-controversy-1202023140/
http://www.huffingtonpost.com/entry/controversial-super-bowl-ad-84-lumber_us_5897d1c6e4b0406131378003
http://fortune.com/2017/02/05/budweiser-super-bowl-commercial-immigration-boycott/
https://www.forbes.com/sites/jeffkauflin/2017/02/06/why-audis-super-bowl-ad-failed/
>>
>>60505736
if os.path.exists(file):
rename file
move file
>>
>>60502997

isometric voxel engine, whereby 1px on screen = 1 voxel

fun project
>>
File: topkek.png (60KB, 1921x1003px) Image search: [Google]
topkek.png
60KB, 1921x1003px
>>60507505

attached pic, have to render at 960x540 instead of 1080 and scale by 2 due to current rendering limitations. working with a shitload of data every frame
>>
>>60506698
i was going to say that but the the moving and renaming are both done in the same function
Thread posts: 328
Thread images: 48


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