What's the programming language of choice for/sci/?

What's the programming language of choice for/sci/?

Other urls found in this thread:

coursera.org/learn/programming-languages
quora.com/What-programming-language-should-I-learn-if-I-want-to-be-a-physicist
root.cern.ch/
twitter.com/NSFWRedditVideo

Java

haskell

>inb4 some schmuck says "python"

C++ or get the fuck out

Coq

really want to learn some fp, what's a good starting point?

Vote for Java.

for academic wankery prolog or haskell. C for my microcontroller. javascript for web bullshit. python for a number of small scripts, same with bash but for worse scripts. C# for games and other OO uses, as it is java but not bad. Java for school assignments, where it is forced.

Learn You A Haskell is alright.

APL :^)

J is better imo imo

OCaml or Fortran.
New kids on the block like Python.

Get back to /g/, brainlet.

That kind of depends on your field.

R and Python are big in bioinformatics, though for the really hardcore stuff you'll need C++

It's going to sound like I'm trolling if you've never done it, but implementing your own dialect of LISP can really teach you most of the thought process behind functional programming.

>though for the really hardcore stuff you'll need C++
',:^)
Literally what science related programming requires C++ knowledge? kek. Are you the other C++ fag samefagging?

My negro amigo

Common Lisp

funny how this says "my mom" instead of "my wife/girlfriend"

If you already know how to program, try writing a lisp parser. It's really easy because the grammar is super simple, and you'll end up tackling most of the problems involved in functional programming since you need to cover every syntactic case to make it complete.

>science related programming

Lol

Stop trolling, C/C++ is superior to any of these other brainlet languages. I bet almost every program and most certainly every (good) game on your computer is made in C++.

>science related programming
This is not a cringe thread.

>inb4 some schmuck says "python"

Found the schmuck!

How does the internet come from just a bunch of 1 and 0 code patterns ?

>every (good) game

Let's hope he doesn't have Minecraft. That was brilliant from a money making perspective. God, fucking terrible in Java though, like trying to beat off to good porn, but being required to use sand as lube. It is certainly the best autism trap on the planet.

...

Why does everyone hate python? I know it's easier but it's not that bad

Matlab or Python for scientific progamming

C for any systems/microcontroller type programming
Verilog for hdl

>unironically recommending c++ for ANY application

x86 Assembly

MATLAB

>Forced whitespace

Copy n paste code that uses spaces vs tabs or uses more indentation and nothing works. If you want to script, use Lua.

>t. has never coded in C++ and repeats memes

Brainfuck

Do scientists use verilog?

The is that way

Everything worthwhile is done in C/C++.

I use c++ because it was what my university taught EE majors. I've felt the need to learn another

coursera.org/learn/programming-languages

The machine code of whatever processor I am programming.

What a petty reason to dislike a language. Never such problems with the indentation.

>wasting time getting the code to look pretty before using it
> not being able to quickly rearrange and reuse code

It's shit.

This

Only brainlets code in other languages.

Malebolge.

I use Python to write the Malebolge code.

Octave for simple shit where I don't need optimization.

C for everything else.

t. math grad

julia anybody?

scratch is the only true programming language

C and assembly.

I fucking hate julia. I need to use it for an extra credit assignment (pic related), and I have never felt more anger at a computer screen than when I realize that Julia thinks it's the hottest shit since sliced bread by saying "HEY GUYS! YOU KNOW WHAT'D BE NEAT? IF WE JUST FUCKED DECADES OF CONVENTION AND DID OUR OWN THING. BECAUSE WE'RE WORTH IT"
At least python has syntax that makes sense and a fucking decent documentation.

C++ and Lisp master-race though

I bet you're used to handling lots of coq

Lua is King of scripts

ubuntu

Whatever is best suited to the task. If it's something fairly generic, or an idea that still needs prototyping, Python. If it's something that's more specific than I'd switch, for example if I was writing a program that had a lot of array processing, then I'd probably use Fortran. A bonus with both of them is that they're easy to read, which is a huge advantage when working in a group.

>t. Never had to do any serious programming

Fortran for a lot of simulations because it has the greatest archive of scientific libraries

I use Python a lot, before that it was GNU Octave.
t. EE

Oh and bash for almost everything I want to automate on my home or work computers.

Unless you're making triple A vidya you shouldn't use C++

>lumping c/c++ together
a favorite trick of c++ shills is to try to appropriate the glory of the father

i learned c++ in 1994 and have watched it turn into an unintelligible monstrosity since then

c++ is like madonna, it's reinvented itself for the 4th or 5th time now.
c++ is like microsoft, bloated as fuck trying to be all things to all people.

time to pull the plug.

the least they could do is rename the language at this point.

>Whatever is best suited to the task
bro c++ is suited to ALL tasks!!1

As a java user, what am I missing by not using c++?

PureBasic

Performance.
All languages are basically the same. Sometimes performance is more critical, so you choose c or c++, but you will spend more time developing your project.
When performance doesn't matter that much, you can choose java, or python or whatever. Development is faster with these languages.
To sum up, choose the right tool depending on the project and requirements.

Exceptions are functional languages like Haskell and Rust. They really do differ a lot from object oriented and procedural languages. But those differences are out of scope of my post.

>Harder = better for programming languages

wat, julia syntax is basically matlab syntax. it makes it so much easier performing matrix operations

correct answer

>mfw brainlets think they need "readability" in code

It's weird cause I started out as a CS guy but these days I avoid programming. I consider it a bit beneath me. Tedious work. But sometimes you have to do it because brainlets don't know how to implement algorithms correctly.

Realistically anything you encounter in math/physics is going to be

>Fortran
>C/C++
>Python
>Matlab

So I try to used those if possible. Fortran is mostly just for legacy code. Python and C++ and Matlab are very popular pretty much everywhere.

That said, I'd probably prefer to use a functional language to sooth my autism but they aren't really widely used from experience.

Just as a sanity check, I checked online to see whether my experience was universal:

quora.com/What-programming-language-should-I-learn-if-I-want-to-be-a-physicist

Sounds like it is.

For anyone starting out, I suggest you focus on Python and MATLAB. Now Matlab is proprietary which sucks ass but you can use Octave, being careful to write code that is portable to Matlab. I think in school you'll be forced to use Matlab because it's very easy to pickup.

However if you have any choice for projects, get familiar with Python, using numpy and scipy. It's a great alternative to Matlab and free as it should be.

Fortran/C++ don't bother with too much until you run into some old legacy code that you might need to modify slightly. I don't think it's a good investment of your time otherwise, though being skilled in either language could be seen as a plus.

This advice applies mostly to Physics (and maybe Math) people.

notepad

batch code

Store.buy(milk)
if store.has(eggs):
Store.buy(eggs)

The joke doesn't make sense.

Gentoo

Fortan or C++ is useful for simulations that require speed though, matlab and python can be slow as fuck

you're talking out of your ass

if you're doing linear algebra operations they all use the exact same libraries

if store has eggs:
buy milk(6)
else:
buy milk(1)

C, although my focus is slowly moving towards mastering Python because it is, despite most people here (including myself in past) hating it, the most important language for AI and machine learning learning

Thanks for the answer.

C is my favorite.

What editor are you using, fucking windows notepad? I've literally never even thought about indentation, just set your editor to use 4sp tabs for .py files and you're done. Any python code you copy + paste will use those settings too, unless you love copying code from pajeets. Holy crap. It's like saying C is bad because semicolons. Fucking pajeets get out

>4sp tabs

Literally cancer. Just use \t like god intended.

epic bait u reaaally made me laff

Python

For higher performance stuff, Fortran

>i learned c++ in 1994 and have watched it turn into an unintelligible monstrosity since then
I find that hilarious. I never really used it until a class in 2009 where I was taught it as it would've been in 1994, and everything from C++98 on is why I actually enjoy coding in it.

C# with mono, running MPI.NET on a GNU/Linux cluster

Life is pain.

2

>2 thousand 17
>he's never dirt jerked it

I'm yet to try out J, thanks for letting me know

No. 2x \t and one space, as god TRULY intended

>Python
I hope you're using version 3.

akshually a programmer must be an expert in contextualizing, so he would likely understand she wants 6 eggs, and not 6 bottles of milk. if he brought back six milks, he would be a CPU, which is the anti-thesis of a programmer in some ways.

root.cern.ch/
It's shit, but it's the standard for analysing particle physics data.

You should learn as much languages as possible but the "tools" you will use the most are the following:
> Python
good for scripting, quick prototyping and implementing high level concepts
> C++
high performance, or for big projects where you want to build everything from the ground up with no dependencies
> Haskell
parallellism, or like python, quick scripting with additional type safety. It is _the_ language for writing parsers and DSLs, so necessary for a lot of specialized applications.

You can combine the three by using C++ as a back-end for a resource-intensive task, python as the front end and haskell for the dependency-handling or parsing of data (the glue of your project).

I personally enjoy Java; however, It's really not well suited for many applications.

>Fortran
wew lad
>easy to read
WEW LAD

just use C or C++, it's not like Fortran will give you such a speed advantage anyway.

J and/or K are the canonical array processing languages. it looks like line noise gibberish but is used in HFT applications because of the speed of these operations. don't use or suggest Fortran to anyone.

>coq

about once a year optimism wins over experience and I try to describe some problem in coq. then I run into the "can't descend recursively on multiple arguments" bullshit, fight a bit with well-founded recursion and give up in disgust because the tricks needed to bring coq to heel now obscure the original problem so much that I can't be sure I'm treating it or treating something else.

also, I've implemented my own programming language for the quick-and-dirty stuff, just to show off. otherwise c++ for fast stuff and ocaml for the intermediate ones between quick-and-dirty and fast.

Bukakode