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

Best Language in 2017

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: 285
Thread images: 18

File: golang.sh-600x600.png (69KB, 600x600px) Image search: [Google]
golang.sh-600x600.png
69KB, 600x600px
Best Language in 2017
>>
C
>>
>>60025072
you already posted it
>>
English
And C
>>
>>60025072
>Slower than Java
>>60025076
>Security vulnerability : LoC ratio around 1:2
>>
>>60025276
For well written code it's 0
>>
>>60025305
>2017
>well written code
>>
File: file.png (6KB, 585x104px) Image search: [Google]
file.png
6KB, 585x104px
>>60025072
>>60025084
>a gimped language specifically designed for retards
>>
>>60025305
For non-existent* code
>>
test
>>
It won't be the best language until JetBrains finishes their new IDE, Gogland.
>>
>>60025072
The best language to learn in 2017 is Elixir. If you do web dev or you're writing a socket server that must serve lots and lots of clients with a low latency, there is simply no contest. The OTP handles concurrency better than any other platform. It has no issues like https://github.com/golang/go/issues/10958. The language itself is a great vehicle for really learning functional programming because it forces you to write functional code. Just be aware that if you want to compute pi up to 10000000 digits Erlang/Elixir will do it as slowly as Python, Ruby and Perl. There may be a JIT coming within a couple of years but this is how it is right now.
>>
>>60025393
Yeah, us HASKELL 1337 are much better than all these lamerz. I bet they don't even write programs that don't use any IO.
>>
>>60025720
it's going to be interesting to see who picks up elixir, it might be too hard to learn for php pajeets / javascript hipsters because it's functional
>>
File: meme snob meme bob.png (261KB, 700x500px) Image search: [Google]
meme snob meme bob.png
261KB, 700x500px
why don't we use natural language for computer programming?

computer {
open firefox
visit website boards.4chan.org/g/
click reply
type
[comment]
fill out captcha and click post
}
>>
>>60025720
But why not clojure?
>>
>>60027733
(((((((((((((((((because)))))))))))))))))))))
>>
File: 1492886864994.jpg (72KB, 688x519px) Image search: [Google]
1492886864994.jpg
72KB, 688x519px
>>
>>60025657
Man, ShitBrains have some loyal shills, don't they
>>
>>60027689
Am I the only one who finds OOP harder than functional?
>>
It's still Lua.
>>
>>60025076
>>60025097
>C
Software redflag
>>
File: 1492745598750.gif (458KB, 256x256px) Image search: [Google]
1492745598750.gif
458KB, 256x256px
>>60025072

> For Hobby

C

> For money

PHP, Python, Javascript.
>>
>>60027720
Fuck braces
>>
>>60028846
OOP is harder than functional programming
>>
I still am really enjoying Go. It's not very fancy, but it gets the job done.

In my opinion, anyone designing languages in 2017 needs to design them in a focused and opinionated manner.

This is coming from someone who writes JavaScript for a living, so I'm aware of what happens when you don't...
>>
>>60029273
>Tfw Go is the new C
Enjoy
http://nomad.so/2015/03/why-gos-design-is-a-disservice-to-intelligent-programmers/
>>
>>60025072
go
>>
Typescript
>>
>>60030884
no
>>
>>60025393
That means it's C like, not that it's gimped or designed for retards, unless you would consider the likes of Torvalds, Theo, Terry, Knuth and so on to be retards.
>>
>>60031064
Implicit interface implementation makes my dick hard
>>
>>60025072
Go, Rust, Erlang, Elixir
>>
>>60028846
Are we talking pure functional, or the situation like ML/Erlang/Lisp?
>>
>>60031070
sex
>>
>>60031100
wrong
the answer is python
now you may say: but python is shit
well suprise its the swamp where mediocre masses accumulate and that alone will keep it relevant way to long
>>
>>60031310
best != relevant
>>
>>60025072

Lisp
>>
>>60031310
Now if only Python could handle concurrency, which is like the problem of 2017.
>>
>>60025072
javascript.
>>
>>60028846
OOP gets vastly more simple and maintable if you are using dependency inject, are you using dependency injection?
>>
Is HTML/CSS a good first "language" to learn?
What about Python?
>>
>>60025396
WHY IS YOURE CODE A POINTER?! LOL!
>>
Scala
>>
>>60029334
>tfw two intillegent fore go
>>
>>60031517
HTML/CSS are not programming languages.
Python is fine.
>>
>>60027733
- OTP
- All tail calls are optimized
- Memory lower usage
>>
>>60028014
Worth every penny you paid for it.
>>
>>60029334
Go is, in fact, a service to intelligent programmers, so they don't have to fuck with code written in languages that need intelligence but invariably gets used by complete dumb asses and the inexperienced.
>>
File: crystal.png (129KB, 1038x1085px) Image search: [Google]
crystal.png
129KB, 1038x1085px
>>60031689
Go is kill
>>
Programming noob here. I've chosen Python to be my first programming language because it's simple as fuck. Is it really useful? And btw, what would be a good next language?
>>
>>60031721
Besides recommending Go, I actually don't like it. Its merit is, IMO, is that it's a great compromise language -- good for business (idiots can't fuck shit up, is actually being used) and it actually handles concurrency at least somewhat sanely. I'd gladly choose it as a "work with others and get shit done" language, but don't use it for personal projects.

But if I'm not using Go, it's not going to be Crystal either. It'll be Elixir/Erlang, not Crystal.
>>
>>60031751

See: >>60031100
>>
>>60031751
If you want jump straight to Rust (or C++, but Rust will be more useful later on in life) or you can go to something more simple like Java
>>
>>60031822
this
>>
>>60031689
>invariably gets used by complete dumb asses and the inexperienced.
Yes, that is exactly why Mr. Pike designed it the way he did. It works well for him and it probably works great for large teams full of n00bz and/or mediocrities working on their 10 MSLOC codebase at your neighborhood megacorp. If you're in charge of this kind of team, go ahead, pick Go. Luckily, not all programming is like that. There actually are small teams where everybody is senior or team lead-level and knows what he is doing. These teams will benefit from a more expressive language, especially if they work at in an environment where they need to iterate fast, like a startup.
>>
>>60031831
Rust is too hard for your first statically typed programming language.
>>60031751
Learn enough C to write a Tetris with SDL graphics (https://www.libsdl.org/).
>>
>>60031864
you have got to be joking Rust is easier than C retard
>>
>>60031887
>typical rust user
Don't you have white males to bully on Twitter?
>>
>>60031908
Nice mental gymnastics
>>
>>60031908
No I'm just trying to say that C is very hard for a new programmer to learn, f you're going to say Rust is too hard, you must know that C is harder than Rust for new programmers by a considerable amount.
>>
File: 1487620014363.jpg (1MB, 2576x1932px) Image search: [Google]
1487620014363.jpg
1MB, 2576x1932px
>>60031937
C is literally a 300 page rhyme book for little kids
>>
>>60025072
lel
https://github.com/ksimka/go-is-not-good
>>
It's PHP
>>
>>60031952
Are you serious
>>
>>60031965
Jesus christ that's a lot of negativity.
>>
>>60031952
you can't be serious
>>
>>60031965
>weird mascot (gopher)
kek
>>
File: 1488604742603.png (740KB, 1834x1200px) Image search: [Google]
1488604742603.png
740KB, 1834x1200px
>>60031973
>>60031995
I am
>>
>>60031965
For all the flaws Go has, it's still the best.

There are two type of languages: Those people hate, and those no one uses.

The fact that Go gets so much hate shows how popular it is, and it's indeed objectively better than Java, C++, PHP, Ruby, Python, JS, TypeScript, Swift, and Rust.
>>
>>60031952
>t. C shill
>>
>>60031887
C is fucking easy compared to Rust.

If you're coming from Python, your stuff will probably compile without too much trouble, and you'll be writing simple programs without much effort. You can probably do a learntris in your first couple days. Sure, to build solid, large C programs is probably harder than Rust, but that's usually not the part that makes learning a language "hard," and comes down to experience.

Fuck, Python is basically C with the hard parts removed and OOP basics bolted on top. 90% of Python code looks extremely like C code with types and pointers removed.

With Rust, you'll be tackling a lot of concepts not used by a majority of languages, both from the C++ side (things left out of Python and Java), but also from the ML/Functional side, which'll blow the brains out of anyone used to just Python. Then they'll be fighting with the borrow checker for their first couple weeks. It'll probably be a week for a Python-only dev to do learntris in Rust.
>>
>>60032008
you don't have to use those features, you know
>>
>>60031965
>Download canceled: Go-1.8
>>
>>60032018
sorry dad
>>
>>60032025
Try doing Rust strings without slices.

Try doing a tic tac toe game without using any ownership/borrowing principles.

Try idiomatic collections without functional concepts and generics.

Rust is a PLT-heavy language, and it makes no apologies for it. It's what makes Rust so great. That also means it's hard as fuck for the person who's only worked with Dynamic languages or just programmed in Java their whole career.
>>
>>60031887
>>60031937
I disagree. A new programmer who has only used Python will find himself fighting the borrow checker, hard. It may turn him off static typing altogether. In toy programs written in C he can ignore the undefined behavior and the occasional memory leak. He will get some segfaults, but he is already used to his programs failing at runtime because of Python.

Then again, I was going to recommend D at first since it has a GC on top of the usual low-level stuff, but decided to go with C because there is more learning materials for it. Yeah, a statically typed language with GC is probably a better option than either Rust or C for a novice.
>>
http://dtrace.org/blogs/wesolows/2014/12/29/golang-is-trash/
Oh man, he's mad
>>
>>60032009
With logic like that you should definitely stay with Go.
>>
>>60025072
Javascript.
It will be here in 100 years time
>>
>>60032071
>>60032018
>>60032008
>>60032069
I'm sorry for arguments caused I admit defeat
>>
>>60025072
like it or not , its javascript and php haha get fucked
>>
>>60032112
>tfw confronted with the truth.

I want to suicide.
>>
>>60032071
D is a language I would love to love but cbf because it's DOA.

Even D's creator pretty agrees with this sentiment.
>>
>>60032150
Why, it's nice to prototype stuff quickly with Node.js
>>
>>60032166
>Even D's creator pretty agrees with this sentiment.
[citation needed]
>>
>>60032168
Why is Node even related to js when its mostly written in C/C++? Why did people want to invent thing that allows you to execute js on server-side?
>>
>>60032220
https://www.quora.com/Which-language-has-the-brightest-future-in-replacement-of-C-between-D-Go-and-Rust-And-Why
>>
>>60032112
JavaScript is totally fine


as a compilation target
>>
>>60031751
Java but the leap form Python -> Java is hard and necessary. Then do: Java -> Haskell
>>
The answer is always C#
>>
>>60032345
*F#
Sorry, the keys are close.
>>
>>60032359
>>60032359
>>>60032345
>*F#
>Sorry, the keys are close.
quoting for truthery

give me union types or give me death
>>
C++ best language since C++11
>>
>>60025072
The answer to that is rust. I wonder what you meant by your pic though.
>>
>>60025072
Lisp
>>
>>60032018
Coming from python, your C program will segfault and you'll have no clue what's going on or how to solve it. You will immediately drop C.
In rust, your program will fail to compile because the borrow checker is not satisfied. You will be pointed to the exact line where the problem happens with a well-explained description of the problem, and even sometimes a solution suggested by the compiler.
>>
>>60032069
Rust is unironically smaller than C. It just happens to be better designed. You say "ownership/borrowing principles" and we can raise you "segfault principles" "buffer overrun principles" "use after free principles" and a dozen others (and they'll all be just as [sic] as yours).

Beside, tic tac toe wouldn't need any care for ownerships at all. Try mentioning mutable trees instead, these are somewhat tricky. Mutable trees with callbacks being even worse.
>>
>>60032737
>Rust is unironically smaller than C.
I wish it was true
>>
>>60025072
The one that gets the job done and that you're comfortable using.
>>
>>60032967
Comfort is overrated. Programmers shouldn't get too comfortable or they'll be obsolete.
>>
>>60032009
It's popular because Google shills it.
If they could pay people to bundle Go with their applications like they did with Chrome, they would.
>>
>>60025072
C# is easily the best language.

It's the most capable for web server and normal applications, industry accepted and has reflection built in.

The most important thing is it's the most aesthetic language of all.
>>
>>60032834
Then be happy, your wish is reality.
>>
>>60033036
Explain
It has traits, which alone makes it big
>>
>>60027784
I unironically enjoy the syntax of lisp family languages.
( S ( E ( X Y ) ) )
>>
>>60031557
HTML/CSS is Turing complete, so technically...
>>
Best language since 2009 you mean.
>>
>>60033055
Sorry, I don't have time to explain to retards that square pegs do not enter smaller round holes.
>>
>>60033242
>HTML/CSS is Turing complete

If that's the case, then let me see the HTML/CSS code that calculates the sum of the first 100 prime numbers.

No JavaScript allowed, of course. You said only HTML and CSS.
>>
>>60033230
(((lisp)))
>>
>>60025720
But where are the jobs? That's the only thing that matters for a language.
>>
>>60025072
clearly, which is why it's funny people pool buffers so hard in this shitty language because muh Gee Cee avoidance and abuse interfaces to all hell because literally no fucking generics/templating.

not to mention it's yet-another-llvm-backed language that isn't even faster than the JVM + Java 9 in any appreciable way and Java 9 actually has useful abstractions and features, like generics.
>>
>>60033026
>C# is easily the best language.

I'm mostly a C/C++ guy, but I did do an app in C# a few years ago, and I was pretty impressed. Definitely better than Java.
>>
>>60025720
except that is wrong.

BEAM is slower than aids and based on a concurrency model that's as shitty and as "new" as smalltalk.

literally any well written JVM language will rekt your BEAM aids at concurrency.
>>
Rust for system programming, Angular for web.
>>
>>60031751
You want to learn a statically typed programming language.

I would suggest Haskell. Mainly because it's design philosophy is very different from Python's, (functional vs imperative, super strong static typing vs dynamic typing), yet has a bunch of similarities like using indentation for blocks and being free of boilerplate.
>>
>>60027733
because we live in 2017, where we can have rich syntactic grammars and not have to write our own AST to actually get shit done.

lisp-like cancer should remain in the realm of configuration languages like yaml.
>>
>>60033341
Hey I didn't say I could program jack shit in it, but it is Turing complete regardless. Besides, I bet you could do some crazy shit with the css animation stuff making cellular automata to calculate arbitrary shit if you really wanted to.
>>
>>60033446
Also it's GCed, so you don't have to worry about any memory leaks (like C) or borrow checker (like Rust).
>>
>>60027720
because human language is too complex and feature rich to actually represent in any kind of structure.

also the last time they tried that, it was called COBOL and it sucked ass.

also human languages are partially context sensitive.
>>
>>60033502
>> also human languages are partially context sensitive.

So are most programming languages.
>>
>>60033491
Instead, you have to worry about memory leaks, memory explosions, and GC pauses.
>>
>>60033507
wrong.
>>
>>60025072
Fear
>>
>>60033432
you don't know what you're talking about pajeet
BEAM was built from the ground up for concurrency.
>>
>>60025072
yes
>>
>>60033768
ya because "lightweight" (((virtual machine))) processes and an IPC bus is such a new concept that's so great.

you are like babby who eats up HN memes.
>>
>>60033815
who said it was new?
>>
>>60025393
I will never understand why people treat Go's simplicity like it's a bad thing, as if being easy to learn, read, and write/use is somehow a bad trait. People claim this as an advantage when talking about learning C but Go has the additional advantage of being easy to write as well as learn/read.
>don't use this, it's too easy!
>why would you need to be productive, are you some kind of codemonkey? It's better to spend decades on a project and dedicate your time to audits instead of writing multiple things
>don't you know automatic memory management is bad, ignore everyone complaining about C for user created security flaws
>why not use rust, it's just as safe but twice as complex
Nobody ever talks about how nice the standard tools are too, the documentation system alone is worth it for me, even if developers don't write their own commentary the ability to see callee's, type information, etc. are fantastic when working with third party projects, standard build system, standard formatter, standard compiler, standard test suite. It has everything you need and it works exactly the same on every platform and every project. No dicking around with John Doe's special snowflake build system that only works on hp-ux which you can read all about using this custom documentation generation system.

Go has alleviated so many frustration points for me that it's unreal.
>>
>>60025072
arabic
>>
>>60025084
This. Also, Lua for scripting.
>>
>>60034248
I know both Lua and Python for scripting purposes, but I haven't personally used Lua in a while. Why is it any better/worse than Python?
>>
>>60025072
Java, winner every year since its inception.
>>
>>60034283
You can learn Lua from inside out in a matter of a couple weeks of intense learning. Without the standard library (it is a good educational task to remove it) Lua is only 10000 lines of C, and with standard libs, it's 15000 lines of C. Python with the standard libraries is 50x larger, and it would take you months, if not years not learn the language to the same extent as Lua.

If you put yourself to the task of writing a full Lua/Python interpreter, and then compare their capabilities, you would see that Lua is just superior, because white the capabilities are very similar, the codebase size difference is HUGE.

Python is just a bloated Lua with a bloated standard library.
>>
>>60033432
>literally any well written JVM language will rekt your BEAM aids at concurrency.
What does this even mean (aside from you not knowing how to use "rekt")? How will it "rekt" BEAM's lightweight threads with preemptive scheduling? Besides, if you knew your JVM you'd know that concurrency doesn't have to, and shouldn't, be approached as a language-level feature. Quasar (http://docs.paralleluniverse.co/quasar/) proves it. But even Quasar isn't preemptive. HotSpot simply can't give you the guarantees that BEAM gives.
>>60033382
>yet-another-llvm-backed language
It isn't. Go's primary compiler does not use LLVM.
>>
>>60034415
Dedicate half a day to dig through Lua source and half a day to dig through Python code, and then compare how much of the languages you now understand.
>>
>>60033516
In practice few developers need to worry about GC pauses. GC is a good trade-off for most. But yes, space leaks are a real issue in Haskell that strict languages like Idris, OCaml and F# don't have.
>>
Spanish
>>
>>60034009
Obviously, the people who criticize Go for its simplicity do not think that the simplicity actually helps your productivity. They argue the opposite: that Go is too simple in ways that limit productivity. They usually agree that Go makes it is easy to write 100s of lines of code, but say that it is better to have a language that allows you to create your own higher-level abstractions to replace those 100s of lines with just dozens.
>>
>>60034541
Esperanto
>>
>>60034009
Because it lacks semantics that allow for a powerful, expressive language, that makes it quick and easy for you to say what you mean.

For example, look at Go's situation with generic programming.

It's like trying to talk about politics without having words like "egalitarianism" and "individualism." Sure, you can express the same concepts verbosely, but it's just fucking easier to use specific words.
>>
chapel
http://chapel.cray.com/
>>
>>60025276
>>Slower than Java
100% false

>>60025393
>easy lang equals lang for retards
pure elitism
>>
File: DSS1.jpg (454KB, 1200x1198px) Image search: [Google]
DSS1.jpg
454KB, 1200x1198px
>>60033507
https://en.wikipedia.org/wiki/Chomsky_hierarchy
>>
>>60031875
You spell "Nim" weird.
>>
>>60025072
If you want to learn Go, start here:
https://tour.golang.org
>>
>>60034656
Can it compile to both CPU and GPU instructions?
>>
>>60025276
http://benchmarksgame.alioth.debian.org/u64q/go.html

Generally speaking it's faster, and even when it isn't it's infinitely memory efficient
>>
>>60034796
Also look at https://github.com/kostya/benchmarks#brainfuck-v20
>>
>>60034009
It's simple but it's also lacking.

>>60034681
You got that the wrong way 'round.
It's not "for retards" because it's "easy". It's "easy" because it's designed "for retards".
All higher level constructs have been deliberately not included in the language just so that there's less to abuse.

Here's a relevant quote:
UNIX was not designed to stop its users from doing stupid things, as that would also stop them from doing clever things.
— Doug Gwyn
>>
>>60034784
Not really sure what you mean but currently it compiles first to C so if you can compile C to GPU instruction then yes.
>>
>>60027720
because thats a terrible idea. just look at applescript.
>>
>>60033910
it's still shit to threading and shared memory.

message passing and isolated processes will never beat threaded, mutex locked shared memory concurrency.

this is a literal fact.
>>
>>60034796
>>60034832
any Go program that uses regexp will call C code... which will make the whole program slower.
have this in mind when looking at benchmarks
>>
>>60033432
So is your problem with Elixir/Erlang the language or the BEAM VM?
>>
>>60034860
I meant if the compiler automagically chose whether to generate code for the GPU or the CPU depending on the type of computation. How is that language in practice, anyway?
>>
>>60034888
Beat them at what?
>>
>>60034926
Seems to have okay standard library you know like java or I assume D.
Easy interface to C. I like the type inference.
Compiling is slow at least when compared to C. No idea how the compile times compare to C++.
Objects are created with new and freed with delete but records are reference counted. The allocator scheme seems really customizable.
The language aims to be good at parallelism and distributed computing but the only features that seems to support is that you have loop constructs where iterations can be run in parallel.
I use emacs and the emacs support is ok, no idea about the other IDE tooling.
>>
>>60034888
except that message passing can happen over the network, which is the power of the BEAM VM erlang/elixir.

there's a reason why the worlds telecom networks run on BEAM and not fucking java
>>
>>60033432
it outperforms all JVM language frameworks in benchmarks though
why are you butthurt?
>>
>>60035228
but muh numbeh crunching!
>>
>>60035243
Well that's actually a valid point, plus Elixir/Erlang are useless outside network / web dev due to a lack of libraries and memetic language constructs

I'm using Phoenix to write a few web apps now but I'll get back to C as soon as I'm done, I wouldn't use this language for anything non-pajeetic
>>
>>60035287
>Memetic
>Pajeetic
Neo-/g/ is a failure.
>>
>>60035287
> criticizes a language for being useless outside of the domain it's specialized for

You'd be bordering on autism here if you didn't make the web app / C distinction.
>>
>>60035356
you don't have to try so hard to seem like an oldfag man, we'll accept you as you're, welcome to 4chan
>>
C# or Java
>>
>>60035420
whichever you enjoy more
>>
>>60035420
Java has too many compromises in its overall paradigm due to lack of foresight and needing/trying to adapt to programming trends.

For example, look at the type erasure issue in Java's generics, its crippled functional aspects, Streams just don't quite hold up to LINQ, etc.

Overall, C# devs had more foresight and it's overall just a better integrated language.

In reality, it doesn't matter too much after you get used to the idiosyncrasies. Java has the advantage JVM vs. mono. There's more varied JVM languages compared to CLR languages, if you want to spread your wings later.
>>
>>60034009
Because it's not simple in the sense of transparent (like scheme is), it's simple in the sense of devoid of any features. It's actually a much more complex language than C or scheme yet isn't half as usable as either.
>>
>>60034895
>Go regex wil call C code

This is false. It just uses identical syntax to C, nothing more. Even Go's compiler is now written in Go.

There are just C bindings for people who need to do embedded work.
>>
Common Lisp
>>
>>60036483
go's compiler is written in c and then automatically converted to go using an external program because gotards are precisely that dumb.
>>
>>60034888
>message passing and isolated processes will never beat threaded, mutex locked shared memory concurrency

Except when reliability and fault-tolerance are absolutely essential. You can't get the same uptime without it. Also, you won't end up with GC pauses littered randomly throughout your program execution.

Plus as the other anon mentioned, message passing allows you to talk to distributed servers that each have independent pools of memory.
>>
>>60036732
>Also, you won't end up with GC pauses littered randomly throughout your program execution.
Is your IQ in the single digits or is it in the no-digits?
>>
>>60036706
No, Go's compiler is now written in Go. It has been that way for well over a year.

You have no idea what you are talking about, and have no facts to back up your assertion.

You sound like a C monkey-programmer.
>>
>>60036778
All higher-level languages are implemented in C at the lowest level. If they weren't, they wouldn't be able to run at all.
>>
>>60036866
lol wat

I bet you're one of those "C is portable assembly!" guys.

A lot of languages are self-hosted, and a lot of languages use Ocaml/other functional languages (so easy for that AST) for their compilers or for bootstrapping.

And using C to bootstrap != "being implemented in C at the lowest level."
>>
>>60032025
doesn't mean that people also don't.
>>
>>60032737
>Rust is unironically smaller than C

stopped reading.
>>
>>60036778
My fucking sides. This is what paid shills look like, people.
>>
>>60032737
You missed the fucking point.

The point is a beginner to Rust would face these barriers. These are *mandatory* to know just to get elementary programs to compile, not things that can be learned through experience.

It's a great language for people who know why these things are the way they are and/or have a lot of experience in other languages beyond Python. For the beginner who's wondering why the fuck he can't use a particular variable, it's just frustrating and demotivating, and he's going to need a lot of background study to figure out how to just do simple shit.
>>
>>60036866
>All higher-level languages are implemented in C at the lowest level

Single digit IQ retard strike again it seems. You seem to lack a fundamental understanding of what C actually is, to be making such wild and untrue claims.
>>
>>60035287
>pajeetic
Shame on you for coining this word.
>>
>>60031812
>>60031822
>>60031831
>>60031864
>>60031875
>>60032327
>>60033446
Thanks for the help, guys. Probably gonna do Haskell => Java => C => C++ => Rust
Maybe not in that order, but I plan on learning those languages
>>
>>60028838
Funny thing is, they make the only IDEs worth a shit (riced out vim is not an IDE), and they still fucking suck.

I got into an argument with one of their devs on a Rubymine bug that still exists to this day. The IDE throws error-level code inspection notices for global variables, even though a global variable, per Ruby, is available anywhere in the program once defined.

tl;dr:
#file1.rb
$op = "faggot"

#file2.rb
require 'file1'
print $op #<-- ERROR: VARIABLE UNDEFINED
>>
>>60037095
Are you just pretending to have brain problems or were you born that way?
>>
>>60025072
Goroutines seem like a nice way to achieve concurrency, without having to use a CSP lib and creating channels for every Process.
>>
Python is the best for coding only.
Other languages are fucking syntax rules.
>>
>>60037238
You could always use Ruby if you don't like explicit lexical closures.

Python is slow and lacks any good concurrency solution.
>>
>>60035420
C#. Java's got the libs, C# has got everything else, including stack-allocated structures, a major reason people like Go. But F# or Scala is the more interesting question.
>>60035562
>type erasure
Type erasure isn't all bad. A common argument is that it helped the developers of JVM languages with a very different type system from Java's like and Scala and Clojure.
>devs had more foresight
I think it was equal parts or more hindsight than foresight. They had years to watch Java grow and saw what didn't work.
>>
File: read nigga.gif (122KB, 200x112px) Image search: [Google]
read nigga.gif
122KB, 200x112px
>>60036866
>>
>>60037137
You should seriously learn something like Elm before taking on Haskell. You can do it in a few evenings. http://elm-lang.org/
>>
>>60037459
>Elm compiles to JavaScript
Stopped reading.
>>
>>60037148
Man, Ruby is pretty weird. If there a difference between
$op = "faggot"
and just
op = "faggot"
at the top level?
>>
>>60037485
Who cares? It's an easy pure language to learn FP.
>>
>>60027720
If you enjoy read only languages, look at AppleScript.

If you like write only languages, look at perl.
>>
>>60037137
>>60037459

No, just go straight ahead with Haskell if that's what you want.

https://github.com/bitemyapp/learnhaskell

Use that to learn it. Other resources pretty much all suck.

Or just learn Lisp (way easier) and all the other cool things about Haskell, you'll pick up 90% of it from Rust (that HM type system).
>>
>>60037697
# Black Perl, adapted for Perl 5 by Jonadab.
# Adapted from Black Perl, as seen in the Camel,
# 2nd ed., p 553

BEFOREHAND: close door, each window & exit; wait until time;
open spell book; study; read (spell, $scan, select); tell us;
write it, print the hex while each watches,
reverse length, write again;
kill spiders, pop them, chop, split, kill them.
unlink arms, shift, wait and listen (listening, wait).
sort the flock (then, warn "the goats", kill "the sheep");
kill them, dump qualms, shift moralities,
values aside, each one;
die sheep; die (to, reverse the => system
you accept (reject, respect));
next step,
kill next sacrifice, each sacrifice,
wait, redo ritual until "all the spirits are pleased";
do it ("as they say").
do it(*everyone***must***participate***in***forbidden**s*e*x*).
return last victim; package body;
exit crypt (time, times & "half a time") & close it.
select (quickly) and warn next victim;
AFTERWARDS: tell nobody.
wait, wait until time;
wait until next year, next decade;
sleep, sleep, die yourself,
die @last
>>
>>60037037
>Makes good counter-argument supporting his favored technology
>MUST BE A SHILL GUIZE!!!1!!!111!!!!
mental illness is a real thing people
>>
>>60037499
Yes, they are distinct variables.
$op = "faggot" #global scope
op = "faggot" #local scope
@op = "faggot" #class instance scope
@@op "faggot" #class global scope


Really the only other strange symbology you see is => which is hash value assignment, and : to denote symbols (basically an immutable enum-like string). There are others, but they're autist tier and not used in real programs.
>>
>>60037835
Sorry, I don't speak Shill. Could you try again in English please?
>>
File: 1335784065502.jpg (30KB, 500x377px) Image search: [Google]
1335784065502.jpg
30KB, 500x377px
>>60037037
Who the fuck would be a paid shill for a FOSS language you gibbering fucktard?
>>
>>60037858
Not even the guy you were arguing with lmao

Seek professional help or talk to mommy and daddy
>>
>>60037863
0.02 rupees were deposited in your account. Kindly do the needful.
>>
>>60037891
Your delicious tears are my sustenance.
>>
>>60037911
>not sure if trolling or legitimately this stupid
Someone want to explain to me why a free-as-in-speech thing requires paid shilling?
>>
>>60037848
>ruby hashes
>not used in real programs
que
>>
>>60037945
..I called out hash syntax as common, and then said "there are others". Learn to read.
>>
>>60037938
It doesn't.

This guy is just a genuine retard. He is that guy who thinks he can write everything in C, and proceeds to write shitty, bug-filled code with mem leaks everywhere.
>>
>>60037938
Windows is free guys! No shilling needed! OSX too! Lalala, shill-free life!
>>
>>60037996
If I wanted to write shitty, bug-filled code with meme leaks everywhere, I'd choose the best language for the task: go.
>>
>>60038009
>he doesn't know what "free-as-in-speech" means
>>
>>60037848
>>60037148
It is rare to see a Ruby user on /g/ outside of the rare dedicated Ruby thread. With Crystal, Elixir, JS, etc. do you think Ruby has a future?
>>
>>60038041
Not him, but Ruby's on life support.

Legacy RoR is the only reason Ruby's hanging on.

It's a damned shame, really.
>>
>>60038041
I'm not too worried about the also-ran clones like Crystal and Elixir, but the wind seems to have fallen out of Rails' sails, and by extension, the rest of the language. I don't see many new rails apps anymore.

Nevermind the fact that Python's community is making some serious speed improvements nowadays while Ruby is just kinda languishing.

It's still my favorite language, it's still a fucking blast to write, but I fear it'll be relegated to niche status once the web mindshare (that brought so many people in) falls below critical mass.
>>
rust
>>
>>60038109
>clones like Crystal and Elixir
Phoenix is a clone of Rails, but Elixir itself is only superficially similar. It is more of a "Jose & co. make Erlang as nice as it can be" type of project.
>while Ruby is just kinda languishing.
Well, there is the promise of https://blog.heroku.com/ruby-3-by-3.
>>
File: 1410864768043.jpg (28KB, 500x375px) Image search: [Google]
1410864768043.jpg
28KB, 500x375px
>>60038285
>they're using a pure Ruby NES emulator as a test case for validating their performance improvements

This kind of thinking is why I fucking love this language.
>>
File: nes.gif (2MB, 320x272px) Image search: [Google]
nes.gif
2MB, 320x272px
>>60038353
Ruby+Truffle is impressive. Behold what its JIT can do.
https://eregon.me/blog/2016/11/28/optcarrot.html
>>
>>60028846
it's more shit to keep track of, yeah. IDE's are required because of this
>>
>>60036866
At the beginning this might be true. But all serious language aim to be self-implementing.
>>
>>60033242
PowerPoint is Turing complete.
>>
>>60025076
fpbp

Lesser languages need not apply.
>>
Yo, "noob programmer" here.

What language will make the most amount of money, through merit alone.

Python blows hard in functionality, so I'm picking up some books on Rust rn.

Is this the right language?
>>
>C
Fortran 95 is better, albeit not for OS shit.
>>
>>60040533
You are much more likely to earn money with Python.
>>
>>60040968
Life's not worth living with Python.
>>
>>60025072
Flip a coin for Rust or D.
>>
chinese
>>
>>60040996
Next time try using Python so solve a problem it's actually suitable for.
>>
>>60041040
to solve*
>>
>>60033242
>>60040272
>Not programming your OS in TrueType or Magic: The Gathering
>>
>>60041040
That's the joke, there isn't one.
>>
>>60041065
Have a gold, funny stranger.
>>
>>60041096
TensorFlow is pretty nice desu
>>
>>60041126
TS is great, but it's better with C++.
>>
File: 1487455694787.jpg (61KB, 600x693px) Image search: [Google]
1487455694787.jpg
61KB, 600x693px
(((Lisp)))
>>
>>60025072
C
>>
>>60041181
Because recompiling is a lot comfier than playing with the data in ipython and being able to graph it with a single line of code.
>>
>>60037137
good way to be shit at a lot of things and good at none desu
>>
C++ and Go
>>
>>60041197
It's actually more like (L i (s '(p))). I can't think of a single relevant case where you encounter (((.
>>
>>60041338
Emacs
>>
>>60040533
>Yo, "noob programmer" here.
>Python blows hard in functionality, so I'm picking up some books on Rust

Yep, makes sense.
>>
>>60041349
Elisp? Really? I can't recall a case, and looking through some of my .el files I can't find a case either
>>
>>60027784
error: expected statement before ‘)’ token
(((((((((((((((((because)))))))))))))))))))))
^
>>
>>60041482
'('('('('('('('('('('('('('('('('('('('('(because)))))))))))))))))))))
>>
>>60025072
There's an elephant in the room...

Her name is Java.
>>
>>60041009
This
>>
File: Racket.png (7KB, 88x85px) Image search: [Google]
Racket.png
7KB, 88x85px
>>60025072
But that's not Racket
>>
>>60033502
>called COBOL and it sucked ass.
Look at this fucking pleb and laugh.
>>
File: Clojure_logo.svg.png (14KB, 220x220px) Image search: [Google]
Clojure_logo.svg.png
14KB, 220x220px
>>
>>60027784
this literally is the best feature of lisp
god I love parentheses, can't get enough
honestly
>>
>>60029235
*lisp for hobby
>>
>>60042150
You could at least say Kotlin.
>>
>>60037727
Wait, rust can be functional?
>>
>>60042994
no, even though it started as a half-assed ml
>>
>>60036706
>
no
>>60034895
>>60036483
Go's POSIX regexp (or was it the non-standard regexp lib everyone uses) is written in C IIRC...
>>
>>60041009
Nah, D still has forced GC in the stdlib. Until that's fixed, it's strictly inferior.
>>
>>60043272
usage of GC is more profitable except for niche scenarios where you need malloc() ********free(n++) autism
>>
>>60043352
Not really, it causes significant issues like global locks. It's true that it's better than manual management for most applications, but until it can be disabled, it's a legitimate, important issue. When it IS disabled, D really won't have all that much over C/C++ anyway so it still won't have a leg up against rust, but it will be worth comparing.
>>
R or python
>>
>>60042380
I recently started evaluating Racket since I wanted a better-performing dynamic language than Python, and as part of it, I benchmarked it against some other languages using a simple program that just calculates a hash code from a large file.

My results were:
C*: 2.9 s
Java: 3.0 s
SBCL: 4.0 s
Racket: 34 s
Python: 324 s
(*With GCC -march=native -O3 -funroll-loops...)

So Racket sits (geometrically) almost exactly between C and Python in terms of performance. On the other hand, SBCL's compiler is breddy gud (and it was entirely without any declarations).

Unfortunately, Racket shares CPython's stupid GIL, which is a pretty big turn-off for me.
>>
>>60044398
Everything has a GIL except a couple weird languages unfortunately. That and leaky GCs make me murderous.
>>
>>60044606
SBCL doesn't. Also, since it's built on the JVM, neither does Jython, which is a pretty strong argument for it over CPython. It's a pity it doesn't support Python 3.
>>
>>60025076
C is eternal
PHP is also eternal for web
>>
>>60044712
C is eternal trash
>>
Perl
>>
File: Screenshot_20170424-060419.png (312KB, 720x1280px) Image search: [Google]
Screenshot_20170424-060419.png
312KB, 720x1280px
>>60031676
>paying for 0s and 1s
>>
>>60025072
Scala
>>
>>60032008
>Resizable arrays appear twice
Brainlet
>>
>>60040533
SAS/R for data
Python/SQL for hacking
C++/C# for games
Javascript/php for web
Java for Android
C/Python for Linux
C#/Java for Windows/Enterprise
Objective-C for MacOS
Swift for iOS
That covers 90% of it.
>>
>>60025072
French is pretty cool
>>
The one I use
>>
>>60034283
Lua is really designed for either late prototyping or implementation, it has nowhere near as much capabilities than python out of the box, but this also gives it it's greatest strength: It's lightweight and fast, easy to add to a C program (literally a few hundred kilobytes) and is easily extended.

Using lua standalone is quite stupid though.
>>
>>60025072
>Best Language in 2017
For me it's Emojicode, the best programming language money can buy.
>>
>>60048115
I see. I also remember using it for an embedded system (ESP8266), which makes sense considering Lua's tiny footprint.
>>
>>60047283
Meanwhile in real life...
>>
>>60048115
>Using lua standalone is quite stupid though.
nah. Plenty of commercial games made using Love2D, and facebook's internal deep learning framework is Torch.

Granted, those are LuaJIT, not vanilla Lua.
>>
>>60048115
Lua is objectively superior to python in every single way but one: library availability. Not that it makes all that much difference because 99.9% of python libraries are so shit they're unusable.
>>
>>60033464

> rich syntactic grammars

No all you have is ugly operator precedence tables and pointless distinctions between forms. Lisp allows you to prevent all this, but people don't get into it because they are indoctrinated into doing things wrong at math/cs classes.
>>
>>60048889
Is this not accurate?
>>
>>60049132
>Not that it makes all that much difference
You're got to be kidding me. Even if 99.9% libraries for Python are crap and only 50% of Lua libraries are crap, the sheer number of good libraries for Python (that 0.1%) makes a fuckhuge difference. I say this as someone who would much rather work with Lua than Python.
>>
>>60049166
You can have a rich syntax with no operator precedence tables. See: https://www.pyret.org/.
Thread posts: 285
Thread images: 18


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