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

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

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: 97
Thread images: 9

File: bmy7r1ox3xuy.jpg (56KB, 724x960px) Image search: [Google]
bmy7r1ox3xuy.jpg
56KB, 724x960px
What's the programming language of choice for/sci/?
>>
Java
>>
haskell
>>
>>8884674
>inb4 some schmuck says "python"

C++ or get the fuck out
>>
Coq
>>
>>8884678
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.
>>
>>8884685

Learn You A Haskell is alright.
>>
APL :^)
>>
>>8884696

J is better imo imo
>>
>>8884674
OCaml or Fortran.
New kids on the block like Python.

>>8884679
Get back to /g/, brainlet.
>>
>>8884674
That kind of depends on your field.

R and Python are big in bioinformatics, though for the really hardcore stuff you'll need C++
>>
>>8884685
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.
>>
>>8884725
>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?
>>
>>8884680
My negro amigo
>>
>>8884674
Common Lisp
>>
>>8884674
funny how this says "my mom" instead of "my wife/girlfriend"
>>
>>8884685
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.
>>
>>8884731
>science related programming

Lol
>>
>>8884731
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++.
>>
>>8884731
>science related programming
This is not a cringe thread.
>>
File: th_dancing.gif (178KB, 148x148px) Image search: [Google]
th_dancing.gif
178KB, 148x148px
>>8884721
>inb4 some schmuck says "python"

Found the schmuck!
>>
File: IMG_8358.jpg (92KB, 634x606px) Image search: [Google]
IMG_8358.jpg
92KB, 634x606px
How does the internet come from just a bunch of 1 and 0 code patterns ?
>>
>>8884750
>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.
>>
>>8884674
>>
>>8884752
Why does everyone hate python? I know it's easier but it's not that bad
>>
>>8884674
Matlab or Python for scientific progamming

C for any systems/microcontroller type programming
Verilog for hdl

>>8884679
>unironically recommending c++ for ANY application
>>
>>8884674
x86 Assembly
>>
MATLAB
>>
>>8884989
>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.
>>
>>8884995
>t. has never coded in C++ and repeats memes
>>
>>8884674
Brainfuck
>>
>>8884995
Do scientists use verilog?
>>
>>8884676
>>8884686

The >>>/g/hetto is that way
>>
>>8884995
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
>>
>>8884685
https://www.coursera.org/learn/programming-languages
>>
>>8884674
The machine code of whatever processor I am programming.
>>
>>8885005
What a petty reason to dislike a language. Never such problems with the indentation.
>>
>>8885072
>wasting time getting the code to look pretty before using it
> not being able to quickly rearrange and reuse code

It's shit.
>>
File: OhBaby.png (9KB, 683x354px) Image search: [Google]
OhBaby.png
9KB, 683x354px
>>8885010
This
>>
>>8885089
Only brainlets code in other languages.
>>
Malebolge.

I use Python to write the Malebolge code.
>>
>>8884674
>>8884674
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.
>>
>>8885267
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
>>
>>8884680
I bet you're used to handling lots of coq
>>
>>8885005
Lua is King of scripts
>>
ubuntu
>>
>>8884674
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.

>>8884679
>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
>>
>>8885567
Oh and bash for almost everything I want to automate on my home or work computers.
>>
>>8884679
Unless you're making triple A vidya you shouldn't use C++
>>
>>8885025
>lumping c/c++ together
a favorite trick of c++ shills is to try to appropriate the glory of the father

>>8885008
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.
>>
File: c++.jpg (193KB, 1204x848px) Image search: [Google]
c++.jpg
193KB, 1204x848px
>>8885474
>Whatever is best suited to the task
bro c++ is suited to ALL tasks!!1
>>
>>8885597
As a java user, what am I missing by not using c++?
>>
PureBasic
>>
>>8885730
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.
>>
File: code_quality_2.png (79KB, 531x511px) Image search: [Google]
code_quality_2.png
79KB, 531x511px
>>8885344
>Harder = better for programming languages
>>
>>8885362
wat, julia syntax is basically matlab syntax. it makes it so much easier performing matrix operations
>>
>>8885351
correct answer
>>
File: tfw to intelligent.jpg (9KB, 245x250px) Image search: [Google]
tfw to intelligent.jpg
9KB, 245x250px
>>8885090
>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.
>>
>>8886450

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

https://www.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.
>>
>>8884674
Gentoo
>>
>>8886480
Fortan or C++ is useful for simulations that require speed though, matlab and python can be slow as fuck
>>
>>8886530
you're talking out of your ass

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

if store has eggs:
buy milk(6)
else:
buy milk(1)
>>
>>8884674
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
>>
>>8885833
Thanks for the answer.
>>
C is my favorite.
>>
>>8885077
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
>>
>>8887480
>4sp tabs

Literally cancer. Just use \t like god intended.
>>
>>8884676

epic bait u reaaally made me laff
>>
Python

For higher performance stuff, Fortran
>>
>>8885586
>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.
>>
>>8884754
2
>>
>>8884760
>2 thousand 17
>he's never dirt jerked it
>>
>>8884700
I'm yet to try out J, thanks for letting me know
>>
>>8887483
No. 2x \t and one space, as god TRULY intended
>>
>>8887491
>Python
I hope you're using version 3.
>>
>>8884674
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.
>>
>>8884731
https://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).
>>
>>8884674
I personally enjoy Java; however, It's really not well suited for many applications.
>>
>>8885474
>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.
>>
>>8885474

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.
>>
>>8884680
>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.
>>
>>8884674
Bukakode
Thread posts: 97
Thread images: 9


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