[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: 340
Thread images: 25

File: stallman.png (2MB, 1253x849px) Image search: [Google]
stallman.png
2MB, 1253x849px
What are you working on, /g/?


Previous Thread: >>61029467
>>
File: 8-tips-moms-learning-to-code.jpg (563KB, 1500x1000px) Image search: [Google]
8-tips-moms-learning-to-code.jpg
563KB, 1500x1000px
Friendly reminder that programmer work will become blue-collar work with matching pay within 10 years.
>>
File: old_hag_langs.png (173KB, 600x355px) Image search: [Google]
old_hag_langs.png
173KB, 600x355px
>>61033365
First for Fortran.
>>
File: 1489622554344.gif (425KB, 512x512px) Image search: [Google]
1489622554344.gif
425KB, 512x512px
https://www.jimmycuadra.com/posts/the-highs-and-lows-of-rust-2017/
>>
I'm working on a game. But I'm stuck doing unity tutorials for now.

I want to design so bad but sitting down to learn from videos just kills my motivation. I can "design" all day, but sitting down for a 20-60 minute video tutorial totally ends my progress for the day. :/
>>
Why does storing floating point numbers in a database always store numbers which are off? I've tried double and long double, but still get weird stuff like 1.23365 gets stored in the database as 1.2336499999999999
>>
>>61033441
https://en.wikipedia.org/wiki/Floating-point_arithmetic
>>
>>61033437
congrats on learning that life isn't some fairy tale and shit takes hard work
>>
>>61033493
why would you assume he didn't already know this
not him but i am also a game designer who dislikes having to do hard work
and i should certainly know how i feel about hard work because my dad was really abusive and it was hard work just to live in the same house as him
>>
>>61033476
Right but that's not the problem, its something to do with what I'm doing because when I load the database directly it stores the numbers correctly but when I insert through C++ it stores these.
>>
DRY philosophy is trash
>>
Finished writing my kickstart script so provisioning all my servers will be less tedious now. Wish there was a way to ID network interfaces non-interactively.
>>
File: 1439156238711.jpg (15KB, 250x209px) Image search: [Google]
1439156238711.jpg
15KB, 250x209px
>spent a month writing C# app
>run a memory analysis tool
>see all the garbage that .NET is throwing up
>look at .NET socket implementation
>the lowest possible socket connect call accepts IPAddress as input and creates 2 classes just to connect, instead of just writing the IPV4 long to native
>realize C# is a horrible language made for enterprise shit
>>
>>61033862
>C#
into the trash
>>
>>61033862
>>61033928
what language would you prefer?
>>
>>61033966
Rust
>>
What's the most mind expanding language you guys ever learned?
>>
>>61033980
I've been trapped in an IT groundhog day for the past couple years and too high to google. If I've only used C#, java and TSQL (not the same, I know); what's a good motivation or two to jump to rust?
>>
>>61034015
C, change that to mind narrowing
>>
>>61034067
Go to their official website and check out yourself?
It's basically no GC no manual memory management tier language that has nice FP niceties
>>
>>61034015
rooby
>>
>>61034015
Python I suppose. Freeing might be a better term.
>>
>>61034015
Haskell without a doubt
>>
>>61034134
>freeing
>his language cannot even mix statements and expressions
kek
>>
>>61034015

Don't laugh:
Ruby.

On the surface it looks like a shitty Python clone,but it has so many crazy features and the meta programming is the best I've ever seen in any language.

2nd place is probably Assembly or C because of the "how computers work" meme.
>>
>>61034150
>Haskell
>literally a makefile lang
kek
>>
>>61034160
I only knew java :'(
>>
what is the hardest practical programming language
>>
>>61033980
I took a look at rust and their std::net which doesnt even support async tcp?
>>
>>61034222
Practical programming languages aren't hard to use
>>
my boss has pretty much refused to give us all of the project requirements up front (because he doesn't even know what he wants) so every time my boss proposes a new feature it requires a huge rewrite of the whole system because we had absolutely no idea that he wanted that feature

so i'm doing one of those rewrites.

i've been putting applications in everywhere with no calls.
>>
>>61034166
module Ruby
def method_missing(name, *args, &block)
define_method(name, &block)
end
end
previously_undefined_method do
puts "please kill me"
end
>>
>>61033437

stop watching videos and read a book. videos are the worst way to learn and you should only use them if you are incapable of reading
>>
>>61034271
shit that should be module Kernel not module Ruby
anyway my point still stands: it's a smelly poogarbagelang that doesn't want to exist
>>
>>61033625

How so?

It's pretty smart to know where to look when something doesn't work. Also code duplication is a bad thing.

Of course every "pattern" can be misused. But it's similar to OOP, MVC and GoF stuff: know when to use it and when NOT to use it, and you'll be a good programmer.


>>61034222

C++
>>
>>61034263
You're being paid to write software.
The fact that you're complaining about throwing out work means you're becoming attached to software that you're being paid to write, it's NOT yours, deal with it.
If your company wants to keep wasting money and developer time rewriting the application over and over again, let them, it's not your problem because it's not your code.
>>
what do you guys think of j, apl, and other array languages?
>>
>>61034309
>and developer time
This is the problem.
He is the developer whose time is being wasted.
The fact that it's not his code is irrelevant.
>>
>>61034334
Aren't you being paid to shit out code?
You're being paid to shit out computer code, just write garbage if you know it's gonna get throw out anyway.
>>
>>61034349
>pffrrrrt
>>
>>61034309
yeah when my boss wants new features to be rolled out on a weekly basis, each requiring a complete rewrite of the entire front-end of 3 different websites, and i'm the only one working, it's a bit stressful.

when i say i'm the only one working, i do mean that i am literally the only person employed on the dev team at this company. i do not have a single coworker until the end of august.

so i'd say i have the right to complain about throwing out work when even more work keeps getting piled on. i also have the right to tell you to go fuck yourself. deal with it.
>>
>>61034330
I've only messed around with J for a few hours and it was pretty fun.
>>
>>61034305
>know when to use it and when NOT to use it, and you'll be a good programmer
pretty much, but DRY is being sold as a holy grail, every book and novice tutorial has it right after helloworld, when in reality it's easier, faster and less bug-prone/more future-proof to write multiple special cases vs one that tries to cater to everything.
>>
>>61034389
It's your own fucking fault if you're letting work pile up exponentially because you're too autistic to communicate to your boss that every feature addition means a total rewrite.
If you're really the only dev, they're not going to fire you because it would take longer to hire someone and get them up to speed.
>>
>>61034271

What's your point?
That you can abuse things?

"Method missing" is pretty dark magic, but you can use it for some special purposes.
A thing that comes to mind is an object that delegates calls to a sub object (as "proxy" or "adapter")..

Or if you want to build a testing suite, it can be pretty useful.


>>61034291

It is far from smelly. It is a very good engineered and designed language.


The greatest things about Ruby is that it's such a versatile language. Super comfy for scripting and web stuff is crazy easy. Not only websites, but you can make a webscraper or an API in no time.

But yeah, Python or even Perl can do this, right?

What makes Ruby really stand out is that it's basically "building material". It's pretty much an OOP version of LISP.

You can use it and simply make you own domain specific language. Look at RSpec, Chef, Puppet, Rails or Metasploit to know what I mean..
>>
>>61034453
i did not help create the initial product. i was hired when they had one working site and were expanding to 3. then all the other devs left for internships elsewhere for the summer.

up until now, most of the new features were just small additions that didn't require any rewriting. anytime my boss proposed a feature that did require a significant rewrite, my coworkers would tell him it wouldn't work yet, and put it off until later. well, it's later now, and i'm having to do the rewrites.

all of this would have been avoided if my boss knew what the hell he wanted, and gave us the full list of requirements and features that he wanted the sites to have, instead of giving us this stream of information over time.
>>
>>61034550
you can also use method_missing to create a class that implicitly has attr_accessor for all possible member variables
>>
>>61034437

Of course.

I do not trust any "hoyl grail" anymore, when it comes to programming.
>>
>>61034259
I don't do tcp, ask in their IRC
>>
Is GDI+ still a good option for custom controls in C#? I'm looking into making a syntax-highlighted text box component and I don't want to build it off a TextBox/RTB for performance's sake.
>>
How would you go about doing 2D platformer collision between an entity and the world (static tiles, dont move) and solid entities (most likely static but can move).

There AABB, but how do you ease the load of the program so that it only looks in the radius around the entity?

Using horizontal movement for the question, flipping row and column around would be for vertical movement I suppose.

Do you go down every pixel row, and on each row, check so many column pixels in the given direction and skip checking collision if it is "out of bounds"?
>>
>>61034819
WPF. Look at ActiPro/DevExpress components
>>
>>61033365
I'm not GNU. I'm just Harry
>>
>>61034825
Make a grid? Then another one? Split screen in 4 parts, then those 4 parts in smaller 4?
>>
>>61034892
>WPF
Yeah, no
>>
>>61034905
Hairy*
>>
>>61033862
>ribbit the reddit frog
>>>>/r/abbit/
>>61034166
>meme
>>>/v/
>>61034550
>"""comfy"""
>>>>/v/
>web """stuf"""
>>>/g/wdg/

>>61034550
>>61034573
>>61034825
>ribbit spacing
I don't want reddit stink nearby. Fuck off.
>>>/r/abbit/
>>
>>61035200
>being this autistic
>>
>>61035200
Shut the fuck up you autist.
>>
What OS do you use and why?
I'm just trying to get an idea of what most people use. I'm tempted to go to Windows from Linux since I'm still learning Linux.
>>
>>61035200
It's called hit enter to make it more readable, dicktits
>>
@61035247
It's attention whoring. You're artificially increasing the vertical space your post takes, so people can see it easier.
If you actually paragraphed your shit properly, that would be much easier to read.
>>
>>61034825
Entity vs. world: plain grid
Entity vs. other entities: quadtree
>>
>>61035242
Not programming related, you fucking retard.
Use >>>/g/fglt/
>>
why do haskell programmers get ALL the girls
>>
>>61035236
it's a bot
>>
>>61035334
>recommending the thread that is literally called faglet
>>
>>61035341
STRONG typing
>>
>>61035351
the worst part is this:
it isn't
>>
>>61033397
It's hardly better than blue collar work today. Pay is better than a lot of desk jobs I suppose but no one ever made any real wealth though a dev job, just a comfortable salary.
>>
>>61033980
rust more like bust lmfao
>>
>>61035358
I don't care what fucking thread you use, I just don't want your ilk nearby.
>>
>>61035425
>ilk
why don't you go "ilk" yourself
>>
>>61035425
That wasn't me. I asked the original question.
Sorry.
>>
>>61035242
Ubuntu MATE
>>
>>61035331
does a quad tree apply to the world as well?

how difficult is it to implement a quad tree?
>>
>>61035547
Not programming related, you fucking retard.
Use >>>/g/fglt/
>>
>>61035569
>does a quad tree apply to the world as well?
It could, but it's needless if the world is tiled.
>how difficult is it to implement a quad tree?
Not that difficult at all. It's pretty much just a binary search tree, except that the keys are coordinates, and accordingly the key comparisons are done on two axes instead of one (hence why four quadrants are necessary instead of two halves).
>>
>>61030592
>new has better audio quality than malloc
Applause for C++ programmers.
>>
File: 1475624685457.jpg (58KB, 600x763px) Image search: [Google]
1475624685457.jpg
58KB, 600x763px
>>61033365
Indexer, Private Tracker, Stats, auto-curation. All in docker or serverless. bundled to create everything from single compose file. uses offsite object store cdn to serve .torrent files. Working on a seedbox w/ a transcode detection bot now.
>>
>>61035638
Not programming related. Use some other thread.
>>
61033365
this fat fuck is the next step of perfection
>>
>>61035653
Do you browse /agdg/ by any chance?
>>
>>61035677
I'm not subhuman, so no.
>>
>>61035684
Funny, we had one autist there too that would reply to every single post he didnt like and say "not game dev related
>>
>>61035609
It sounds like this person is loading files off storage for every fill of the soundbuffer. That'd explain why he thinks things are better now that he put it on a ramdisk and found a more optimal memcpy.

What a horrible programmer. It could of course just all be placebo and almost nothing changed. Since they're audiophiles.
>>
>>61035703
>level design is not game dev
>mixel art is not game dev
>source.jpg.png.gif
>>
>>61035653
I'll go ahead and give you more benefit of the doubt than you probably deserve. Explain to me what is not programming-related about implementing indexing and sorting algorithms for an infohash indexer?
>>
@61035703
Oh, so you're one of their kind. Don't reply to my posts again. I don't want to be associated with your ilk.
>>
File: 1473376549946.jpg (29KB, 564x345px) Image search: [Google]
1473376549946.jpg
29KB, 564x345px
>>61035727
>@
>>
>>61035722
Nothing in your post talks about that. Your post might as well belong on >>>/g/wdg/
>>
@61035736
I'm sorry, but you must be confused, redditor.
>>
>>61035739
I don't tend to want to exclude people but in this instance I agree.
I'd probably just walk away if someone spoke to me like that in person.
>>
>>61035739
Do you know what an Indexer does?
>>
>>61035749
>I don't tend to want to exclude people
Your wishes are irrelevant. Non-programming discussion simply doesn't belong here regardless of what you or I think.
>>
Lua a shit.
>>
How do you structure a python project? There's a million different ways that I've seen people do it online, and I've never really made anything substantial in python, so I'm not sure what the best way to structure the files is.
>>
>>61035757
Your post doesn't talk about programming. More than half of it is entirely unrelated garbage. Feel free to delete it and make an improved version.
>>
>>61035749
in real life he's a sweaty weeb you just back-hand him to the floor.
>>61035759
clearly on his period too
>>
>>61035759
Point to the rules anon.
I agree but we don't have a rulebook AFAIK.
>>
>>61035764
>How do you structure a python project?
You don't. You use a language for grownups.

Python is an utter disaster of a language. All of the problems of dynamic languages and none of the advantages that lisp has. Oh and good luck automatically refactoring anything.
>>
>>61035771
>his period
Anon please don't assume people are male here.
>>
File: 1445840063391.jpg (33KB, 625x626px) Image search: [Google]
1445840063391.jpg
33KB, 625x626px
>>61035770
I'll take that as a no. (hint: it's in the name.)
>>
>>61035777
Rules don't have to be written down.
>>
>>61035790
Your post isn't programming related. Feel free to delete it.
>>
>>61035791
No but they need some form of communal or authoritative basis.
You can't just say the rules are one thing on your own.
>>
>>61035801
The rules simply exist. They don't need a justification. Feel free to fuck off to some other place if you disagree.
>>
File: 1475853362167.png (514KB, 532x582px) Image search: [Google]
1475853362167.png
514KB, 532x582px
>>61035798
Feel free to kys
>>
>>61035812
>they're here by nature
Anon it doesn't work like that.
>justification
I never asked for that.
>>
File: NoWayFag.png (320KB, 680x486px) Image search: [Google]
NoWayFag.png
320KB, 680x486px
>looking through languages on gentoowiki
>Ruby
>like example code, love that it has tons of built in features that kind of get me excited to write in it
>"Ruby libraries are called gems."

This is actually the gayest line I've ever read in any programming documentation. I can't even try this shit, Ruby is way too homosex.
>>
>>61035832
>they're here by nature
What do you mean by this? They simply exist as long as this thread exists.
>>
>>61035837
Good call. You were one step away from Koding with Klossy
>>
>>61035786
Ok, that's cute and all, but the adults are talking.
>>
@61035831
Don't post this type of cancer from other boards.
>>
>>61035847
>adults
>talking about python like it's a serious language
Pick one. Python is only good for writing wrong code quickly
>>
>>61035837
Are you mentally ill?
This is about as stupid as calling computers gay because all the binary 1 bits look like dicks and you're running dick code on your CPU every time you write software.
>>
>>61035847
Depends on what you're going for.

If it's a set of microservices I I like to make everything path based via some sort of clustered hub like nginx

if it's monolithic I try to make sure I've got a good entry point for everything and use packaging/modules where appropriate.
>>
>>61035837
>""dank meme""
I don't want reddit stink nearby. Fuck off.
>>>/r/ibbit/
>>
>>61035861
>>>/g/wdg is more appropriate for your kind stranger.
>>
>>61035837
I hope you never find Lua then.
>>
>>61035877
Here's a (You)
>>
>>61035882
Elaborate?
>>
>>61035882
>lua
What's so gay about that?
>>
>>61035861
>>61035889
see >>61035877
>>
File: index.png (83KB, 686x590px) Image search: [Google]
index.png
83KB, 686x590px
I'm reading the Practical Objected-Oriented Design in Ruby book, and I'm trying to solve a problem in terms of messages between objects.

It's C#.
I need to create a Windows Service that's gonna run once every hour.
It should get messages from an IBM MQ query, save the message to a SQL database, and then delete the respective message from the query if it has been successfully written to the database.
In case of any errors, it should log the error to the Windows' Event Log and send an e-mail.

I thought of these interfaces:
interface IRepository<IMessage> {
IMessage Get();
bool Save(IMessage message);
void Delete(IMessage message);
}

IBM MQ and SQL should implement the same interface.

interface ILogger {
void LogError(string message);
}

EmailSender and EventLogger should implement the same interface.

I'm unsure how to design this better. Any tips?
I'd also like to use manual Dependency Injection, and because of that I'm unsure on what object should have knowledge of the concrete classes.
>>
File: 1438667149951s.jpg (4KB, 150x156px) Image search: [Google]
1438667149951s.jpg
4KB, 150x156px
Started development of a blockchain in Elixir. If the bubble doesn't pop, I'll be a crypto millionaire in 2 years. Wish me luck.
>>
>>61035857
Whatever bud.

>>61035861
Ah ok. Seems like the monolithic structure would be more appropriate.
I'm just writing a little day trader bot for ETH as a side project I can put on my resume. Most of the shit I've written is in Go or JavaScript, so I figured I should branch out a little in an attempt to get some interviews.
>>
>>61035922
>taking oop seriously
I wish you the best anon.
>>
>>61035910
>>61035877
see >>61035889
>>
>>61035860
My CPU isn't gay, gems on the other hand are pretty fucking gay.

>>61035868
In my experience the anons on IRC that get defensive about using the word DANK or "meme spouting" or "dumb frogposting" are always the ones that are normalfag, reddit posting SJW europoors/canucks.

>>61035882
I don't remember anything that sounded homosex in LUA, unless you think LOVE is homosex, but that's a third party lib. Tables are basically 90% of what I remember from LUA.
>>
>>61035937
I think you'd be about twelve times as productive if you used Lisp instead of Python
>>
>>61035946
>löve
But that's just cute though.
>>
>>61035747

On 4chan, we preface our replies with >>. You must be used to Twitter or Discord. Please use the proper reply format next time.
>>
>>61035936
fbi is cracking down on crypto's gl m8
>>
>>61035946
>""DANK""
>""dumb frogposting""
>""meme spouting""
So basically you're admitting that you're a redditor then?
>>
>>61035946
I don't see how ruby could be considered gay at all unless every keyword was something fruity like "sparkle" or "glitter" or "penetrate".
>>
@61035961
I'm sorry, but you must be confused, redditor.
>>
>>61035937
this is a nice doc:
http://python-guide-pt-br.readthedocs.io/en/latest/writing/structure/

this is helpful. Just think about if you want to pip it all or tar it or what not.

I like Go as a language quite a bit more but their packaging at the moment is lacking. I get that it's all decentralized but it's honestly shite.

I do a lot of clisp and C too. Quicklisp is nice but managing deps for C at scale is a nightmare.
>>
File: 1423962695193.gif (20KB, 543x600px) Image search: [Google]
1423962695193.gif
20KB, 543x600px
>>61035962
Wow, I'd be worried if I didn't live in a 3rd world shithole far away from the FBI.
>>
>>61035956
No.
>>
>>61035980
>ribbit spacing
Your kind isn't welcome here.
>>>/r/abbit/
>>
>>61035983
Don't you want to be twelve times as productive?
>>
>>61035980
Meh, I'm not too concerned with pipping it or anything. I just want something up on my github that I can show employers; however, I guess it would be more beneficial in the long run to set it up "correctly"

Personally I like Go, but I understand a lot of the gripes with it. It works well for what I do now, but by no means do I think it's the end all be all of languages.
>>
>>61035956
>>61035983
I actually re-did some of my python microservices in lisp and ran them in docker. sbcl runs amazing in it.

if you can get past Lisp's initial strangeness, it's really fun to prototype in.
>>
>>61035989
nobody cares faggot
>>
>>61036006
if it's to impress employers, just make sure it's in the typical packaging format, and make everything PEP8. That's more than I see looking at most client's production code.
>>
>>61036022
Your kind isn't welcome here.
>>>/r/abbit/
>>
File: 1489903178971.jpg (82KB, 450x253px) Image search: [Google]
1489903178971.jpg
82KB, 450x253px
>>61036006
>Personally I like Go
Well, I feel sorry for you
>>
>>61036030
Ah yeah, PEP8... wew. Thanks for the tips bruv.
>>
>>61036054
eh I mean it's python. You can make it look clean and that's about it. It has some syntactic sugar and anything *fancy* like recursion would be memory intensive so what more can you say than organize it well and make it easily maintainable?
>>
>>61035860
wtf i hate computers now
>>
File: 1495020440510.png (181KB, 385x385px) Image search: [Google]
1495020440510.png
181KB, 385x385px
>>61036072
>""fancy""
>recursion
>>
>What's so great about Rust? In short, it greatly increases my confidence that my programs are going to do what I want them to do without limiting expressiveness
> without limiting expressiveness
AHHHHHHAHAHAHA nope
>>
>>61035979

I don't have a Reddit account. See how your backlink isn't red and underlined? That means you did it wrong. Go back to Twitter.
>>
>>61036087
lol. it's not really fancy I just know a lot of people that feel good about themselves for using it. It's always costly and probably gets compiled down to something iterative anyhow.
>>
>>61036103
It only gets converted to an iterative loop if the compiler recognizes you're attempting to do tail-recursion, which is a state in which the entire stack frame can be overwritten with no loss of state because it's all being carried over into the next function call.
>>
>>61036072
Yeah. I'm currently going through hell trying to decipher an old coworker's JS. I've become a stickler for clean and readable code now.
>>
Anyone got any experience with the Mu data type?
>>
>>61036099
Why do people continue to respond to these posts? You know full well they are doing it on purpose.
>>
File: 1495602877955.jpg (68KB, 1039x638px) Image search: [Google]
1495602877955.jpg
68KB, 1039x638px
>>61036103
>lol
>It's always costly
>>
>>61035968
The last time I went to reddit was a thread that had detailed instructions on how to dump fruit from bags that you take on embark for dwarf fortress. I literally never use reddit and literally only use 4chan. Maybe you should try not being buttmad at memes you don't like, Pepe was a part of 4chan long before reddit ever started posting him. Nothing is sadder that being a child that stops liking something because some faggot wants to imitate you and that somehow makes whatever you liked before "uncool".

I can't fathom why people dislike Pepe beyond that. Fucking redditors and normies can "repost the funny pics" all they like but because their website is NOT anonymous and is NOT ephemeral in nature they'll never understand the true significance of memes that have taken the form of being almost living idols/gods. Asuka might as well be a real girl that exists, she has a personality that extends beyond evangelion as an immortal part of the sites history and character because of her association to Moot and the shitposting between reifags and her. Pepe exists at this level too. Dumb frogposter is something that exists only on 4chan, the person posting an image of an angry Pepe reeeing is taking the mask of a dumb frogposter for that post. The person posting a picture of what appears to be THE GRINCH IN A MASK HOLDING A GUN is taking the persona of a fed up Beta ready for the uprising, and a Pepe directly inhaling memes while crying is clearly an anon taking the mask of a poster whose life is drowning in memes so much that he doesn't even know what he's escaping from anymore.

This type of mask donning associated with reaction images is a natural part of the site that basically no other web community shares. If you just want blocks of text with highly detailed hobbyist/topic discussion perhaps I'd advise you to see a development forum instead of posting on an anonymous Indonesian sculpting bazaar.
>>
>>61036223
>I literally never use reddit
>The last time I went to reddit
>>
>>61036223
>The last time I went to reddit
Stopped reading right there.
I don't want reddit stink nearby. Fuck off.
>>
/dpt/ what is a language that meets these criteria?
Does one exist?
>mainstream (so no D or Rust for example)
>compiled
>has traits
>has bindings graphics and audio librar(ies) on Linux
>free and/or permissive license
>expressive without being hideous
>doesn't have to be fast but at least not the slowest language ever made
>>
>>61036223
>Pepe was a part of 4chan long before reddit ever started posting him
so were ragecomics, are you going to post some of those too?
>>
>>61036263
Scala
>>
>>61036263
>>has bindings graphics and audio librar(ies) on Linux
excuse me, bindings for*
>>
>>61036245
>>61036242
Are you telling me when you google for specific issues you filter any reddit link? I still feel disgusted whenever I click on one but if I need to solve a problem I'd rather just see if their answer works instead of posting in some thread and wasting an anons time.
>>
>>61036269
thanks I'll check it out
>>
>>61036281
I'm sorry anon
>>
How come people on /g/ aren't posting using their public GPG keys and signing their messages?
>>
>>61036291
I'm not important enough to require cryptographic authentication of my public communications on a macedonian passport counterfeitting forum
>>
61036291
Because we dont need Ids, reddit
>>
>>61036281
he's trolling
scala is shit
what is it you want to build?
>>
>>61036300
but it's cool, anon
>>
>>61036279
>Are you telling me when you google for specific issues you filter any reddit link?
Yes, I have self-respect.
>>
>>61036267
They died naturally. Maybe Pepe will die too someday. Fags getting buttmad and posting "dumb frogposter" won't kill Pepe though. Personally I'm hoping Apu will usurp Pepe. I find the fact that some retards can't even tell the difference between Apu and Pepe amusing. He's the natural evolution, the alterations are a mixture of accepting being a "dumb frogposter" eg, him being retarded, and separating from reddits missuse of Pepe.
>>
>>61036314
How much do you weigh? If its anything over 190 lbs you don't have self respect. You better not drink or smoke either.
>>
>>61036352
118lbs, I'm 5'10
>>
>>61036399
>5'10"
>118lbs
You don't have self-respect.
>>
>>61036429
That's not for you to decide. Nor is it programming related. Take it to >>>/trash/.
>>
>>61036429
I'm very particular about what I put into my body. I don't drink, smoke, or drive, and I run every other day.
>>
>>61036303
engine for 2D adventure games
I've made it in C++ before but it was shit because back then I didn't know anything about anything
I kept trying to do it in C for awhile but I've given up
I'm now trying to do it in Ruby which is obviously a huge step down in terms of performance but I'm just prototyping
>>
>>61036352
Not him but is not having self respect bad?
I weigh 400lbs
Is this bad? (if one is a programmer)
>>
>>61036439
confirmed for anorexic manlet
>>
>>61036484
Hey lay off the guy, 118 at 5'10 is only within the underweight range by about a point and a half.
>>
>>61036527
This disgusting creature, on the other hand: >>61036478
Should kill itself.
>>
>>61036527
If you do not have a normal BMI, you are a degenerate.
>>
File: nnnn.png (23KB, 847x519px) Image search: [Google]
nnnn.png
23KB, 847x519px
i don't get it why the internal path length is 11
help?
>>
>>61036484
>anorexic manlet
>>61036540
>disgusting creature
>>61036548
>you are a degenerate
None of this is programming related. This is a thread for the discussion of programming and related topics. If you do not desire to discuss programming, I politely request that you leave the thread.
>>
>>61036263
>>61036269
How is Scala more mainstream than Rust?
>>
>>61036564
Count how many steps it takes to get to each internal node, then sum them. Example: lowest left node takes 2 steps to get to it.
>>
>>61036568
Politely requesting for anything is for losers who wish to be doormats. If you had not been polite, I would have left. Deal with it.
>>
File: ipl.png (4KB, 249x203px) Image search: [Google]
ipl.png
4KB, 249x203px
>>61036564
>>
>>61036647
>>61036610
i was counting 10
why theres a 1 on the first subtree on the right?
>>
>>61036683
>>61036647
fuck me, i'm a stupid, i get it know
>>
>>61036683
Node level, 1 + level of parent node, root is level 0.
>>
Doing google summer of code lmao

Just learned the union find data structure to sort stuff into components
>>
>>61036568
>>61036646
Wow, I can imagine fedoras on both of you
>>
>>61036752
What do you imagine on me, anon-kun~
>>
>>61036269
>scala
>mainstream
>scala
>compiled (jvm doesn't count)
>scala
>not hideous
>>
>>61036724
How does one take part in it? When do I need to apply?
>>
>>61036794
a miniskirt so show off your shaved legs

>>61036800
The application window is only open for a month, march to april or something, but it's good to prepare before that. Basically you're getting paid to independently develop for an open source org but you have a mentor you can consult. You have to submit a detailed project proposal, outlining what you want to do and the timeframe in which you'll do it. It's not hard to get into but it really helps to talk to the host organization and convince them that they need what you want to do and it's worth mentoring you. Communicate with them and write a detailed plan as if you've already been hired to do it and it's bound to succeed.

I'm coding some math stuff for a computer algebra system and my mentor reviews my code, helps me decide what methods are most important, and gives me tips on how to speed things up.
>>
>>61036882
>but it's good to prepare before that
l-like?

>You have to submit a detailed project proposal
I thought that each foss project had specific "missions".

I will try to apply next year then I guess, good luck anon.
>>
>>61036263
OCam.
>>
>>61036263
Lisp
>>
>>61036976
The last l somehow ran away. Anyways I use it for most of my stuff, it's great. It has CoC which is infinitely more powerful than anything like traits.
>>
Can one implement coroutines in pure Lisp?
>>
>>61036915
Before the applications open, the host organizations are announced. Pick one (or more) or talk to them about what you can do for them.

>I thought that each foss project had specific "missions".
There's lots of things to do within them.
For example, gentoo is hosting 4 projects this year. https://summerofcode.withgoogle.com/organizations/5705782168387584/
>>
>>61036263
Haskell
>>
>>61037001
Thanks
>>
>>61037001
The Netrunner foundation will take part next year.
>>
>>61037000
https://orthecreedence.github.io/cl-async/2012/11/07/missing-coroutines-in-common-lisp.html
>>
>>61037032
ta
>>
>>61037031
Holy crap. I thought that was just a meme.
>>
>>61037054
>meme
>>>/v/
>>
>>61037057
>implying
At least /v/ was able to pull together and make Katawa Shoujo. If the Netrunner Foundation becomes a real thing, I'll be impressed, but I'm not holding my breath waiting.
>>
>>61037075
>games
>meme
>>>/v/
>>
>>61036568
How is it not related to programming? All fatties are stupid, selfish, lazy, and weak minded. They're not even human enough to deserve to exist, much less to be able to program anything, so telling them to kill themselves is very much programming related.
>>
on github do people

appreciate when you fix weeks or months old issues nobody else wants to fix

even though your code is naturally as a beginner badly written?
>>
>>61037145
No no and no.
If you do submit an actual fix and it's written poorly I'm gonna rewrite it completely.
>>
>>61037165

but I did the main work. stop stealing my credit
>>
How do I get my feet wet with contributing to open source projects?
>>
>>61037173
You're submitting a derivative work off a GPL licensed project, releasing your changes under the same license, I'm just making a derivate off your work and adding it to my codebase.

Though in reality, if you're really a novice, you're not going to fix anything meaningful.
>>
>>61037193

it's meaningful to me
>>
>>61037086
Wow ano(rexic)n. That's such a cool worldview, you must be really edgy and hardcore.
>CUT MY LIFE INTO PIECES
>THIS IS A PLASTIC SWORD
>>
>>61037224
It's not your project.
And unless the change introduces enough code to make you the majority author, you shouldn't be angry when people modify your unsolicited garbage code.
>>
>>61037175
Typo fix in the documentation
>>
>>61037175
fork project
add generic Code of Conduct
pull request with your changes
they won't reject you, ever
don't forget to keep the dead fork on your profile to make your github look good
>>
>>61037273
>>61037295
I guess I should of rephrased my question.

How do I go about selecting a project to work on? I feel like I'm not good enough, or too nervous to actually contribute any actual code.
>>
>>61037175
Check out the github pages for plugins you use in your editor, and see if there are any easy fixes. Most plugins have simple scripting languages, so low-hanging fruit should be easier to help with.

And if you're dumb enough to venture into vimscript, god help you.
>>
>>61037310
just make non-code changes, you nancy
every programmer conference that forces women speakers features a slew of talks on how to contribute without knowing how to code
>>
Skia vs SFML. What's the difference between them? Which one is better for 2D drawing(things like data visualization graphs not games)?
>>
>>61033862
Wtf? Use dotnetcore and run the same tests. C# is the future of programming thanks to companies realizing the majority of programmers can't properly dispose objects in c++. Garbage collection in c# is very useful.

If you're following tutorials on dotnet, you'll need to replace the majority of your code. Additionally, entity is slow AF and I'd highly recommend using dapper (unless you suspect your app will be maintained by plebs).
>>
If I wanted to post from a desktop program how would I pass the captcha to user then pass response back to 4chan?
>>
how do I become a hacker?
>>
>>61033365
some wordpress backend php shit
>>
>>61037464
look up buffer overflow go from there child
>>
>>61037086
Before you accuse others of being unable to program, why don't you show us some of the code you have written?
>>
i always wondered how open source projects turn into power struggles

are programmers tame and wise?
>>
>>61037576

* do not
>>
>>61037464
>>61037483
>>61037576
>>61037580
Not programming related.
>>
>>61037576
>>61037580
Most people aren't dicks and respect the decisions of the lead developer.
>>
>>61037586
Not programming related.
>>
what's the average IQ of programmers?
>>
>>61037659
They're usually pretty stupid. So I'm guessing about 70-75.
>>
File: hereyougo.gif (88KB, 10000x10000px) Image search: [Google]
hereyougo.gif
88KB, 10000x10000px
If you don't use golang, then you can't accomplish pic related.
>pic related
>>
>>61037692
Why do people still post that image? It does nothing.
>>
>>61037759
1
>>
>>61034416
yeah i think it could be pretty neat even though it's strengths don't apply in every area
>>
write a lambda calculus interpreter (any variant is ok) in your language of choice and post it

GO
>>
Can anyone help me with >>61037263 ?
>>
>>61035837
Ruby is a gem, so why not?
>>
>>61034222
Cpp is pretty hard, this is why brainlets always shit on it
>>
>>61035837
you don't need to try anything besides C++

this industry is so fucking shit, there are so many garbage languages which are just idiotic wastes of your time
>>
Anyone have the current /g/ programing roulette image?
I'd be grateful if someone posted it.
thanks
>>
>>61038473
https://better-dpt-roll.github.io/
>>
>>61036263
C++
auto solves the <<<<...>::asdlol>::cunt>>> hell
>>
>not writing C in your Haskell
main = do 

a :: Ptr CInt <- malloc (sizeOf (int))

if a == nullPtr

then do

putStrLn "ERROR: out of memory."
exitFailure

else do

poke a 25
printf "%d\n" ((*) a)

free a

exitSuccess



int = undefined :: CInt
malloc = mallocBytes
(*) = peek
printf str p = p >>= print


Output: 25
>>
>dude what if we take this """pure"" language and write it like impure trash from the 80's lmao
>>
>>61038612
why do we even need C when you can write your C in Haskell instead?
>>
>>61038713
I think you mean D.
>>
whats a good discrete mathematics book for someone that knows up to intermediate linear algebra
>>
>>61034259
https://tokio.rs/
>>
>>61038940
>>
>>61038981
Is this a shitpost or are you serious. I saw this and it has goodish reviews but I can't trust a cover art like that man
>>
File: 4zduxp6lb85z.jpg (201KB, 929x3380px) Image search: [Google]
4zduxp6lb85z.jpg
201KB, 929x3380px
>>61033365
yeah
>>
>>61033397
All I want is enough money to pay for a happy personal borderline pedobait woman to deepthroat me every morning and be in possession of her body and treat her with compassionate dickings.

So a Filipino GF who is a sexual goddess and a sucker for genuine affection.
>>
File: 1494445144683.jpg (34KB, 396x388px) Image search: [Google]
1494445144683.jpg
34KB, 396x388px
>tfw friend is rockstar and you're code monkey
>>
>>61038998
Just get concrete mathematics by Our Donald.

>and it has goodish reviews
It does not.
>>
>>61033437
is this bait?
>>
>>61038998
I never read it, but if it has good reviews than it ahould be fine. The duck thing is a joke on that a lot of math books are titled like x with y.
>>
>>61033580
keep it to yourself freak
>>
>>61035200
thank you
>>
So, I just want to rant.
I am working part time, and was dumb enough to do too many classes.
Now it bites me in the ass.
We have assignments on Java, some mandatory, others not.
I have no time for the non-mandatory assignments, even though they would help me a lot in getting to understand the programming language and thus help me in getting done with the rated assignments much more comfortable and easier, since I get the experience of coding.
I have not the time, it sucks.
Or in more concise words: I crashed down and burned two years ago and I am still getting back to myself after admitting defeat and getting treatment last summer.
I seem to have a huge palate of issues hindering my development as a human being and in hindsight, as a programmer.
What do I do in this case?
I am gonna spend 6 hours a day with the use of the pomodoro technique in order to not let my brain turn to mush and get this assignment done until the next deadline on tuesday.
Hopefully I can get in enough to finish that shit.
I can't wait for summerbreak and actually devote time to learn something instead of just passing tests after tests.
>>
>>61039140
who the fuck cares just do your job holy shit
>>
>>61036279
stay away it's for mental retards
>>
>>61039164
I just wanted to let it out of my rotten ass.
Now I feel much better and get to work.
>>
just realised I want fewer features in any programming language I use rather than more
>>
>>61033580
It's this how you end up making a game like depression quest?
>>
>>61033437
Take this advice >>61034285
but keep in mind that's not true for everyone, while most people do well with books some do better with lectures. Everyone learns differently and there's a lot of methods, paces, and driving factors.

I personally do well with lectures, but do poorly with dense books, somehow I do much better with hypermedia though, I think it's less the hyper aspect and more the layout of modern web pages compared to typical textbooks, no physical pages gives you a lot of freedom to layout the content in a more palatable(subjective) way.

All that said, it's very important that you find out what works for you then seek out resources for the field you're interested in. There's no sense going to lectures if you're deaf, no sense buying books if you're blind, you have to find what works for you specifically.
>>
>>61039061
work on a side project instead of posting in this shitty thread
>>
>>61033580
>>61033437
wow you are such fags

go see a doctor about ADD or something
>>
File: miwUuDe.jpg (77KB, 1168x804px) Image search: [Google]
miwUuDe.jpg
77KB, 1168x804px
kek
>>
What does full stack development mean and should I do it?
>>
>>61039616
front and back end
>>
>>61039616
it means you get to do everything also you're being paid minimum wage also fuck off I could hire 10 pajeets to do what you do, stop asking for a raise
>>
>>61039616
It means you write un-TCO-able recursion instead of loops so your stack is always full.
You should definitely do it.
>>
>>61033625
I agree. Functions are a meme, standard library is a meme.
Just use assembly and copy paste any code you need to reuse.
>>
>>61036263
C++.

>Is mainstream
>Is compiled
>Has (type_)traits
>Has SDL2
>I don't know about license, I'm pretty sure everyone can use C++ in all situations
>Expressive features
>Is faster than C

Yep, C++ is the language you're looking for.
>>
File: 1496114727751.jpg (33KB, 400x562px) Image search: [Google]
1496114727751.jpg
33KB, 400x562px
>>61039593
Nice image, you fucking redditor.
>>
>>61039882
>Has SDL2
That's a C library.
>I don't know about license, I'm pretty sure everyone can use C++ in all situations
You're an idiot.
>Is faster than C
This is objectively wrong. C consistently beats C++ in most situations.
>>
>>61039893
>C consistently beats C++.
With the exception of qsort*

>That's a C library.
Fine, SFML then, But I like SDL2 better.
Also that doesn't really mean anything, C++ is compatible with C.
>>
>>61039882
>>Is compiled
Or not

>>Has SDL2
Just like every language with C bindings.

>>I don't know about license, I'm pretty sure everyone can use C++ in all situations
Because languages do not have licenses.

>>Is faster than C
You are aware that this is retarded, right?
>>
>>61039907
>Or not
What do you mean """or not"""?
It has the ability to be compiled to the native architecture and in pretty much all cases it is, fucking idiot
>inb4 wasm or some other crap

>Just like every language with C bindings.
And? it answers his question, bindings to a graphics and audio library, which SDL2 is.

>You are aware that this is retarded, right?
Nope, sorry. But C++'s expressiveness allows the compiler to optimize C++ programs better than C programs.
C++ is either faster, or the same speed, but never slower than C.

>inb4 muh virtual methods
They cost the same in C.
>>
>>61039893
>>61039907
Not him but in the real life C++ is often faster than idiomatic C because of templates, and it's just as fast in the worst case. That's not surprising considering both languages use the same optimizations and code generators.
>>
>C
>Python
>Javascript/HTML5/CSS
>Haskell
>Java

Any languages that I should add on to this? Also any non-programming language tools I should master? I'm refering to something like learning to correctly use JSON or SQL or some sort of application GUI lib for any of those languages that makes life 10,000 times better. I'm a hobbyist so the languages job opportunity is not a consideration.
>>
>>61039965
>Doesn't even have restrict pointers
>Claims to be faster than C
>>
>>61039936
>It has the ability to be compiled to the native architecture
Just like every fucking language.

>and in pretty much all cases it is
It does not mean that it has to be you dumb fuck, "compiled" is not a property of the language, stop talking about shit you have no idea about.

>And?
It's not a C++-only feature, SDL2 (other than the fact that it's shit) is NOT written in C++, it is written in C and can be used by every single language that can call C functions (literally every useful language).

>But C++'s expressiveness allows the compiler to optimize C++ programs better than C programs.
A proper C compiler would be able to optimise both C and C++ the same way.

>C++ is either faster, or the same speed, but never slower than C.
This is retarded.

>>61039965
>templates
If you want some form of "generic programming" better use a proper language that does not need the useless monstrosity of templates, like a Lisp or an ML derivative.
>>
>>61039981
>MUH MICROOPTIMIZATIONS
>>61039983
>Lisp
>generic programming
Making everything dynamic doesn't make it's "generic", it only makes it shit.
>>
>>61033365
Masturbating to my compiler's diagnostics.
arnaud@debian:~/dev/pasclang/build$ cat program.pp 
program
var a : integer;
function b(n : integer) : integer ;
begin
n := 4
end;
function f(a : boolean) : integer;
begin
if a = true then
f := 5
else
f := 3
end;
begin
a := b(2+2, 5);
b := f(-3);
c := a[3]
end.

arnaud@debian:~/dev/pasclang/build$ bin/pasclang program.pp -f
warning:
unused variable n in function b

error: at line 15
wrong number of arguments in call to b

a := b(2+2, 5);
^^^^^^^^^
error: at line 16
unexpected type int[0] instead of bool[0]

b := f(-3);
^^
error: at line 16
undefined symbol b

b := f(-3);
^^^^^^
error: at line 16
unexpected type int[0] instead of bool[0]

b := f(-3);
^^
error: at line 17
undefined symbol c

c := a[3]
^^^^^^
>>
>>61039966
Scheme, Idris, Mercury

>Also any non-programming language tools I should master?
TeX/Troff, sh/bash/zsh/whatever, Emacs, tmux/screen

In order not to waste your time you should probably remove
>Java
>Javascript
>Python
(It's not like anybody needs to learn python anyway, after you have learned the above languages + C you will know what most python code does)
>>
>>61039981
>what are compiler extensions
>implying restrict pointer even matter in most cases
>>
>>61040000
>dynamic
Define dynamic. This is a property of the implementation instead of the language in most definitions.
>>
>>61039906
>sepples is compatible with C
c.h
#include <stdlib.h>
static void fuck_sepples()
{
int *p = malloc(sizeof(int));
}
>>
>>61040024
>c.h
>>
>>61040015
>>what are compiler extensions
Something bad and unportable

>implying restrict pointer even matter in most cases
Yes, they do.
>>
>>61039983
>Just like every fucking language.
There's a big difference between languages that are designed to be interpreted and languages that are designed to be compiled.
If you think this is stupid, then you are stupid if you honestly think Python was not designed to be interpreted.
C++ is designed to be compiled, fucking idiot.

>It's not a C++-only feature, SDL2 (other than the fact that it's shit) is NOT written in C++, it is written in C and can be used by every single language that can call C functions (literally every useful language).
Yes, fucking and? I'm fully aware of that, retard. That's not the fucking point.
Remember that most of C is valid C++ too, so it's completely fine to list SDL2. In fact his question was BINDINGS, and SDL2 certainly has bindings.

>A proper C compiler would be able to optimise both C and C++ the same way.
Is GCC a proper compiler? what about LLVM? What is a proper compiler to you?
Because both GCC and LLVM can optimize C++ better than C.

>This is retarded.
You're retarded.

>better use a proper language that does not need the useless monstrosity of templates
>He thinks templates are useless
Blub paradox.
>>
>>61039906
>With the exception of qsort*
You are a retard.

>>61040024
int class;


>int *p = malloc(sizeof(int));
Please use
int *p = malloc(sizeof *p);
next time
>>
>>61040024
mad C fag can't handle C++ blowing his language the fuck out
>>
>>61040029
try to include that in your sepples code.
pro tip: won't compile.
>>
>>61039965
"Real life" C++ leads to horrible design decisions, producing stupid, inefficient code.
>>
>>61040054
>I'm a parrot
>>
>>61040058
Who said this?
>>
>>61040022
Any Lisp implementation still has to support eval-ing a string from user input at any time, making any attempt to be "static" laughable, it's basically over-engineered python.
>>
>>61040042
>You are a retard.
Oh okay, nice argument. I'm completely defeated now.
http://martin-ueding.de/en/articles/qsort-vs-std-sort/index.html

>Literally all the C fags can come up with is "ur retarded"
lmao
>>
>>61040054
No, bad programmers lead to horrible design decisions, producing stupid, inefficient code. There is just a much stupid, inefficient C code out there.
>>
>>61040039
>Blub paradox.
Exactly what happens to C++ programmers. They use this cancerous bullshit and try to defend it instead of moving to a proper language with type inference and parametric polymorphism.

>Because both GCC and LLVM can optimize C++ better than C.
Not too long ago a head developer of GCC said that the C subset of C++ has exactly the same speed as the C++ subset of C on GCC. Are you claiming that he is lying?

>Remember that most of C is valid C++ too
Until you do a malloc, lol.

>and SDL2 certainly has bindings
For literally every language.

>C++ is designed to be compiled, fucking idiot.
C++ can be compiled and can be interpreted. There are no interpreted and compiled languages as this is an implementation properties you niggerface.
>>
>>61040077
Only the worst of programmers would possibly pick C++.
>>
>>61040085
>type inference
Harmful.
>>
>>61040065
>Cfags are the same people spouting the "who said this?" meme
C programmers really need to be banned from this board.
>>
>>61040066
>Any Lisp implementation still has to support eval-ing a string
False, proof that you know nothing about lisp.
>>
>>61040086
>I'm out of arguments
It was nice to talk to you.
>>
>>61040090
Just like your AIDS-filled penis.

>hurrrr muh dependant types
Having a slightly weaker type system for type inference is worth the trade-off.
>>
>>61040093
http://www.lispworks.com/documentation/HyperSpec/Body/f_eval.htm#eval
>>
>>61040110
You do realize none of the examples pass strings to eval, right?
>>
>>61040071
Yes, in gcc and clang qsort is slower than std::sort, so what? It makes no point about the language per se, only the implementations.
>>
NEW THREAD
>>61040119
>>61040119
>>61040119
>>
>>61040101
>muh dependant types
Irrelevant, I'm not a dependent types advocate.
When you'll realize type systems exist to help the programmer make less mistakes, having the compiler hide your fuck-ups will become way less interesting.
>>
File: 1478679456590.jpg (133KB, 1275x715px) Image search: [Google]
1478679456590.jpg
133KB, 1275x715px
>>61040110
>there is literally no string in that whole page
>>
>>61040137
dumb animeposter
>>
>>61040085
>Are you claiming that he is lying?
No, I'm claiming that the C++ parts of C++ are more efficient than the behavioral C equivalent.

>Until you do a malloc, lol.
You mean auto coercing void pointers, which is a bad thing anyway.
malloc works fine, I used it quite a few times in C++ code, although you shouldn't.

>For literally every language.
Including C++. What point are you trying to make exactly? I'm just answering the original question.

>C++ can be compiled and can be interpreted. There are no interpreted and compiled languages as this is an implementation properties you niggerface.
Yep, you are definitely retarded.
No point in arguing with you anymore.

I'm sorry, but if you believe that interpreted vs compiled are not considered in the design phase of a language, then you are severely retarded. You don't deserve C.

>>61040090
No it's not, fucking retard.
>>
>>61040121
>only the implementations.
It says something when two competing implementations produce about the same results.
It says something about the expressiveness of C++ vs C.
It suggests that C++'s expressiveness makes it easier to optimize, which makes sense when you think about it, if you're not a completely braindead Ctard blub.
>>
>>61040146
>No it's not, fucking retard.
"More" features is not "better" when said "more" goes against what type systems stand for in the first place.
>>
>>61040120
>>61040137
>They don't even know their lisp
http://www.lispworks.com/documentation/HyperSpec/Body/f_rd_rd.htm#read
I have no idea why you are arguing, every lisp implementation has to support REPL at any point. Even if it's a compiler, it still has to bundle the entire evaluator with your code just in case. And it can't possibly generate fully specialized code because of the possibility you're gonna inject new code what inserts a string in a list of ints.
>>
>>61040164
>"More" features is not "better"
Never said that, and I agree with you.
I only like more features when said features are good.

>when said "more" goes against what type systems stand for in the first place.
Huh? type inference breaks none of that.
If you think type systems are about explicitly typing out the typename, you're wrong.
If you think type inference is dynamic typing, you're a fucking idiot.
All type inference is, is inferring the type of something from context, such as the return type of a function or expression.

It also greatly helps in generic contexts.
>>
>>61040146
>No, I'm claiming that the C++ parts of C++ are more efficient than the behavioral C equivalent.
You will need to prove it.

>inb4 shitty benchmarks
You will need to prove that independently of any implementation the C++ parts of C++ can be optimised better than C.

>You mean auto coercing void pointers, which is a bad thing anyway.
Nice damage control, carposter.

>Yep, you are definitely retarded.
>No point in arguing with you anymore.
Losing the argument?

>>61040161
>It says something when two competing implementations produce about the same results.
That whatever algorithm they use to optimise std::sort (probably the default template algorithm) is better than whatever algorithm they use to optimise qsort (probably the default function-calling algorithm).

>It says something about the expressiveness of C++ vs C.
No, you are a retard if you think so. See above.

>It suggests that C++'s expressiveness makes it easier to optimize
No, it just suggests that they do not optimise C function calls as much as the templates.
>>
>>61034166
in order:
Lisp (Scheme to be more specific)
Haskell
Assembly
>>
>>61040180
>I know nothing about type theory
--You
>>
>>61040101
What? Having dependent types doesn't affect inference for non-dependent language fragment.
Thread posts: 340
Thread images: 25


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