Scientific Programming Thread

Crazy_Nice
Crazy_Nice

What are you computing, Veeky Forums?

Attached: 1515213392926.png (325 KB, 604x1640)

All urls found in this thread:

try.github.io/levels/1/challenges/1
git-scm.com/book/en/v2
services.github.com/on-demand/downloads/github-git-cheat-sheet.pdf
see.stanford.edu/Course/CS106A
veekyforums.com/thread/9623512/science
cl.cam.ac.uk/~sd601/papers/mov.pdf

Harmless_Venom
Harmless_Venom

/g/

Emberburn
Emberburn

/g/
Not science or programming.

Deadlyinx
Deadlyinx

Im learning C++ at uni. Shits cool, working on programming a pacman clone for a proyect.

TurtleCat
TurtleCat

matlab gets so ass once you stop doing strictly linear algebra stuff

python is leagues better

GoogleCat
GoogleCat

Using malloc at all?
I remember a c# class (we programmed in c++ but exclusively had to use c# libraries) where they got pissy at me for using vectors instead of malloc (even though dynamic shit wasn't in the curriculum)

whereismyname
whereismyname

GNU
unrelated
proprietary software has no place in science

Supergrass
Supergrass

proyect
build wall

Need_TLC
Need_TLC

Will start my PhD this fall on direct numerical simulations of textured surfaces. Quite hyped for it, the lab I’ll be working at seems to use a lot of C++ and Fortran with MPI, though I’d also like GPU parallelism to be part of my research.

Harmless_Venom
Harmless_Venom

Fortran
Might as well just kill yourself now

Poker_Star
Poker_Star

AMPL dawg, what else would you ever use?

Carnalpleasure
Carnalpleasure

Python master-race reporting in.

Spamalot
Spamalot

Been trying to simulate diffusion across a cell membrane with pumps and channels. I think the 1D case is working. Eventually want to try doing a couple of neurons in a "test tube". There's a lot of models out their with things like voltages as the main state variables, but I've been curious as to how things would work with ionic concentrations as the main focus. Thing it's going to take a lot of work to get it to that level though.

Mathematica 11.3 is really great by the way.

Attached: membrane.png (114 KB, 1262x749)

takes2long
takes2long

This.

Flameblow
Flameblow

I'm currently doing membrane simulations as well! At the moment I'm mostly just getting up to speed with current simulation methods in my advisor's field, but also rewriting a bunch of his old Tcl routines in python and improving them. Looking at simulated buckled membranes to determine their bending rigidity.

BunnyJinx
BunnyJinx

Looking at simulated buckled membranes to determine their bending rigidity.
Does that mean you're trying to model the dynamics of the membrane geometry? I hadn't thought to do that, but I guess if you want to look at things like development and pathologies it'd be pretty essential, no? What's the field?

StonedTime
StonedTime

Have a few questions

1 how can i learn github/git? youtube vids. the best way?
2 can c++ do everything fortran can?
3 how do you do long simulations? i dont get it. some code i see is like 5,000 lines. I wrote a very simple code for the interaction between plasma and the atmosphere using finite element method. It was barely 500 lines. I did get an A on it but it seemed so short

Raving_Cute
Raving_Cute

Lines of code are a bad way to judge complexity. Git is fairly simple and you could probably learn it from the O'Reilly book which you can easily get for free. Have yet to mess with Fortran.

BinaryMan
BinaryMan

where they got pissy at me for using vectors instead of malloc (even though dynamic shit wasn't in the curriculum)
Are C++ vectors not dynamic?

Soft_member
Soft_member

Havent had the need to learn/use malloc yet.
Keep in mind this is literally my first programming course.
Theh literally teach us functions, how to pass by reference, arrays, matrixs (however theyre called in english) and recursion and have us program a game now. They didnt even tell us what libraries to use. So im learning everything as I go.

haveahappyday
haveahappyday

Please go back to /pol/.

Techpill
Techpill

Python, R, Mathematica and lastly C

WebTool
WebTool

Theoretical/computational biophysics is what you'd call the broad field I guess. We mostly do coarse-grained molecular dynamics simulations, but also a lot of analytic work in continuum-elastic theory, with the Helfrich Hamiltonian

askme
askme

mathematica
mathlab
These do belong here
discussion over the FSF and GNU philosophy
These don't belong here

Techpill
Techpill

Anyone here use Singular, MAGMA or Macaulay2?
Symbolic calculations over the rationals is an absolute joy.

Need_TLC
Need_TLC

I wrote a very simple code

Well there's your answer. The third-party radiative transfer code I'm using is something like 45,000 lines. And that's coupled to our simulation which is another 60,000 or so. Things get complicated very quickly..

Nojokur
Nojokur

Only heard of MAGMA, what are the other two typically used for? I agree with your sentiment on infinite precision arithmetic; it feels like how computation was meant to be done.

TurtleCat
TurtleCat

kek

Crazy_Nice
Crazy_Nice

python for actually doing things.
julia for fucking around

TalkBomber
TalkBomber

That's nice, user, but can you go into more detail on the "actually doing things" aspect? Are you scientifically computing something?

w8t4u
w8t4u

The other two are meant to help with algebraic geometry calculations. You can do all kinds of cool stuff with ideals and modules.

Playboyize
Playboyize

julia is leagues better than python. Literally no reason to use python.

Burnblaze
Burnblaze

LabVIEW
I took courses in C and C++, and Matlab and python and why do they make us learn this piece of shit

Attached: unnamed.jpg (58 KB, 900x900)

CouchChiller
CouchChiller

racket
It's a very cool lang, but where in the world does anyone use it for science?

Need_TLC
Need_TLC

everyone majoring in STEM should get a minor in CS or at least take several programming courses. it's just too valuable of a tool to not be taken advantage of.

Methnerd
Methnerd

YouTube vids suuuuuuuuuck for learning code. Find a text based tutorial, there's plenty.

Large projects don't come out of thin air. They all start as small projects studying one use case that expand to cover more. Writing code that can be easily abstracted for bigger projects as you need it is a skill you'll pick up as you go.

StrangeWizard
StrangeWizard

In what way?

Inmate
Inmate

C#
Malloc
kys nigger

Attached: IMG-9380.jpg (133 KB, 500x333)

Garbage Can Lid
Garbage Can Lid

closed source*

New_Cliche
New_Cliche

Who /NetLogo/ here?

Attached: 1490137443281.jpg (393 KB, 1920x1080)

hairygrape
hairygrape

Why is VHDL not on there you fucking plebs?

Also:

/g/

Methshot
Methshot

Fuck off commie.

Raving_Cute
Raving_Cute

Because it's not a programming language, it's a hardware description language.

likme
likme

Why is it so hard to program? I had to drop out of CS into Math because I struggle so hard with programming. Even years into my math degree and potentially a math phd I can't program.

Attached: Jan-Matejko--Sta-czyk.jpg (629 KB, 2500x1870)

lostmypassword
lostmypassword

os transformation, restoration and reboot

kizzmybutt
kizzmybutt

Is python taking over as the most popular programming language?

I've been pretty resistant when it comes to learning it. I prefer Java but it seems all of the statistics/machine learning pros use either python or R. No bullshit, is worth learning?

Emberburn
Emberburn

I prefer Java

/g/catalog#s=tfo

Attached: Jshit.jpg (210 KB, 1024x768)

Flameblow
Flameblow

I prefer Java
but why?

WebTool
WebTool

What do you find hard about it?

BinaryMan
BinaryMan

I can't make anything
I understand boolean and conditionals and loops
But I just can't put it together to make something

I failed out of my colleges python class
I failed out of the Java course
But I did well in computer architecture and operating systems

I'm trying to teach myself common lisp now from the land of lisp book

AwesomeTucker
AwesomeTucker

It's just what I happened to pick up while working.

falling for the hate java meme

CodeBuns
CodeBuns

It's not a meme

New_Cliche
New_Cliche

For stats do R and for ML do Python.
Python is dominating every ML library and there isn't as much support for Java in that field at least. Again, this is only in terms of ML & Stats.

Dreamworx
Dreamworx

Java is shit. Use c# at least

Nude_Bikergirl
Nude_Bikergirl

Why is Java shit?

Lunatick
Lunatick

Thanks, have you tried any machine learning in R? I know there are some some libraries but I haven't used them.

Emberburn
Emberburn

sad but true.

RavySnake
RavySnake

What's your recommendation for learning R? Book-wise, I mean. Something to preferentially contextualize it in social science stuff.

Crazy_Nice
Crazy_Nice

What did you try making?

takes2long
takes2long

A calculator

w8t4u
w8t4u

Fortran is still great imho. I would recommend it to anyone.

likme
likme

Nothing will ever overtake C.

PackManBrainlure
PackManBrainlure

1 how can i learn github/git? youtube vids. the best way?
try.github.io/levels/1/challenges/1
for a quick look
git-scm.com/book/en/v2
to better understand
services.github.com/on-demand/downloads/github-git-cheat-sheet.pdf
when you are still trying to remember the commands

Flameblow
Flameblow

GUI or CLI?

TalkBomber
TalkBomber

I don't know what those words mean
I'm using common lisp because everything else seems impossible

Methshot
Methshot

GUI = graphics user interface
CLI = command-line interface

At the beginner level the MOST important thing about a language is its debugging infrastructure. Choose something with an IDE that allows you to step through your programs line by line, monitoring variables as they change.

I started out with Java/Eclipse and going through these lectures from an intro CS course at Stanford
see.stanford.edu/Course/CS106A
but anything with the above mentioned capabilities will work fine.

Starting programming is nightmarish, the only way to learn is to stick with it.

New_Cliche
New_Cliche

right m8

just some this and that veekyforums.com/thread/9623512/science
some physics stuff, coil inductance, Complete Elliptic Integrals
(in C)

CouchChiller
CouchChiller

Can't tell if baiting or incredibly underage.

FastChef
FastChef

Why? only underaged may use C to solve math problems? :P

Raving_Cute
Raving_Cute

Only an underaged would think copying a simple equation into C constitutes "solve math problems".

Harmless_Venom
Harmless_Venom

anyway, you don't know what i did

Inmate
Inmate

?

TreeEater
TreeEater

neural networks for unsupervised text summarization

JunkTop
JunkTop

No one talks about that one time when all the top machine learning researchers signed a letter to leave the top journal because it was proprietary and paid access.

It's a momentous move that caused all machine learning, and therefore deep learning, research to go public access, which caused the flood of open research and open-sourced libraries we see in deep learning, which spurred the current wave of research.

And no one talks about this.

whereismyname
whereismyname

Follow this order:
1. Read an Intro book/tutorial
2. Read a cookbook
3. Read an application-specific book

Soft_member
Soft_member

ABM gets no love on Veeky Forums

It's really a shame because most anons take interest in it whenever a rare thread about it pops up

Snarelure
Snarelure

strictly python because I am not a loser

Lord_Tryzalot
Lord_Tryzalot

this
computers are the best tool man has ever invented
they enable you to leverage your brainpower and memory
must know to do science

VisualMaster
VisualMaster

But you are a loser and choosing python is why.

JunkTop
JunkTop

Lmao at this board, completely comp.sci illerate.
There is no malloc in C#
You're obviously referring to C which is completely different to C# (C sharp).

Idk how U can possibly make this error having done a C course. U must be a special kind of retarded.

lostmypassword
lostmypassword

Bioinformatician here, I'm using mostly R, python and command line tools for everyday work. Occasionally MATLAB for modeling metabolic networks.

Spamalot
Spamalot

R

Fried_Sushi
Fried_Sushi

Scientific document processor, Emacs-like shortcuts for completion of math symbols and formulas, LaTeX integration, fast, ditch MS Word
TeXmacs
CAS and numeric calculations, fast, easy even for brainlets, integrated in TeXmacs
Maxima
Easy prototyping and scientific programming, faster than python
Perl Data Language
Statistical package, convenient
PSPP

PurpleCharger
PurpleCharger

Personal preference.

Illusionz
Illusionz

R for species distribution modeling and geospatial analyses

Gigastrength
Gigastrength

can c++ do everything fortran can?
user, the mov command all by itself can do everything fortran can

cl.cam.ac.uk/~sd601/papers/mov.pdf

Disable AdBlock to view this page

Disable AdBlock to view this page

Confirm your age

This website may contain content of an adult nature. If you are under the age of 18, if such content offends you or if it is illegal to view such content in your community, please EXIT.

Enter Exit

About Privacy

We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. We also share information about your use of our site with our advertising and analytics partners.

Accept Exit