← Home ← Back to /sci/

Thread 16824912

47 posts 8 images /sci/
Anonymous No.16824912 [Report] >>16824914 >>16824920 >>16824921 >>16824942 >>16824978 >>16825102 >>16825191 >>16826313 >>16826661 >>16826748 >>16826996 >>16827057
Why don't mathematicians use this language? All I ever see is MATLAB or R. Sometimes Lean or Coq which are respectable. But never Haskell, despite being the premier (non-proofs) language for mathematicians, designed by mathematicians.
Anonymous No.16824914 [Report] >>16824917
>>16824912 (OP)
Because most of the time someone doing something mathematical with code is working with vectors and matrices, and will be doing a lot of numerical work. MATLAB, Mathematica, R, Python are all better for that than Haskell.
Anonymous No.16824917 [Report] >>16825199
>>16824914
Are they?
Isn't the ideal for that stuff Haskell given how clean and breezy point-free style is? You just use a zipper to apply a large composed function to a 2d array/vector, or a (Float * Float) for vectors/points
Anonymous No.16824919 [Report]
Oh wait it already has a matrix monad built-in
https://hackage-content.haskell.org/package/matrix-0.3.6.4/docs/Data-Matrix.html
Anonymous No.16824920 [Report] >>16824922
>>16824912 (OP)
>All I ever see is MATLAB or R.
Kek. Those are statisticians.
Real mathematicians use Fortran77.
Anonymous No.16824921 [Report]
>>16824912 (OP)
There was OCAML before
Anonymous No.16824922 [Report] >>16824970
>>16824920
Why not Haskell though? Legacy code?
Anonymous No.16824942 [Report] >>16824961
>>16824912 (OP)
It was designed by CS monkeys cargo culting math they didn't understand, not mathematicians
Anonymous No.16824961 [Report] >>16826545
>>16824942
Why do mathematicians hate category theory, type theory and lambda calculus so much?
Anonymous No.16824970 [Report] >>16824977
>>16824922
>Why not Haskell though?
All I need is a Gödel number and a UTM.
And a lot of scratch paper.
>Legacy code?
"Sandbox" has an entirely different meaning in maths, Codie.
Anonymous No.16824977 [Report] >>16824986
>>16824970
You didn't answer my question.
Anonymous No.16824978 [Report] >>16824985 >>16826730
>>16824912 (OP)
Mathematicians don't use any programming language.
Mathematicians sit in a circle jerking each other off of how superior they are, while begging for scraps on the sidewalk.

People who use programming languages are people who use mathematics to do useful stuff, not mathematicians.
Anonymous No.16824985 [Report] >>16825276
>>16824978
I think mathematicians are useful, and their theories are cute. Prime numbers and all of that jazz.
Anonymous No.16824986 [Report] >>16825021
>>16824977
Answered both, but feel free to ask follow up questions, Whinoceros.
Anonymous No.16825021 [Report] >>16825095
>>16824986
You're answers are incorrect and incomplete.
Anonymous No.16825095 [Report]
>>16825021
>You're answers are incorrect
Impossible
>and incomplete
That's your understanding. Ask your follow-up questions or stfu.
Tazmily mayor No.16825102 [Report] >>16825104
>>16824912 (OP)
Who said they don't
Anonymous No.16825104 [Report] >>16825130
>>16825102
Me. I did. The mathematician in the thread.
yes No.16825114 [Report]
A
Tazmily mayor No.16825130 [Report] >>16825168
>>16825104
Well then, doesnt it depend on the field?
Anonymous No.16825168 [Report]
>>16825130
Math v. Science thread
>depends on the field
I shit you not. Funniest fucking line I have ever read. A new Hughe Durnahm, I tell you.
Still lol'ing.
My sides.
Ouch.
Anonymous No.16825191 [Report]
>>16824912 (OP)
>all i ever see is MATLAB or R
so you're not really doing work where you should use haskell in the first place
Anonymous No.16825199 [Report] >>16825263
>>16824917
I mean it really depends. If you're doing research then it makes sense that you'd reach for the easiest tool to use, and matlab/python have incredible amounts of support available. Remember the goal is to finish the research so you can get funding for the next project, not to produce clean code. Clean code is the job of the engineers who use your research, if it turns out to be useful.
Anonymous No.16825263 [Report] >>16825380
>>16825199
I find that Haskell is massively preferable to Python for research. It's more expressive, not prone to annoying runtime errors thanks to the type system, and there are a lot of really powerful extensions for the compiler. Linear programming, full blown proof system, etc. All just in your type system alone.

Python is fine for small programs, but it doesn't really have anything on Haskell here. Even when it comes to third party libraries, 99.9% chance Haskell has a counterpart and it probably works better there.

I think it really comes down to familiarity. If you already know python, which is likely, then you save yourself the trouble of learning Haskell. But I think the upfront cost is worth it, because the nature of Haskell really does save a massive amount of time when writing non-trivial programs.
Anonymous No.16825276 [Report] >>16826730
>>16824985
Yeah yeah we all suck their dicks to appease them, cause if they got off their high horse and decided to be useful we'd all be out of jobs.
Anonymous No.16825380 [Report] >>16825487
>>16825263
>if i graduate, i will be forever unemployed
Anonymous No.16825487 [Report] >>16825509
>>16825380
if you have published papers in haskell and can't get a job in the finance industry or at facebook or microsoft at the very minimum, you're doing something wrong.
Anonymous No.16825509 [Report] >>16825513
>>16825487
>A->B
I have never had any of those issues.
~A->B
Hence B, regardless. Anything else that Haskell has nothing at all to do with?
Anonymous No.16825513 [Report] >>16825519
>>16825509
you could get a really good job if you advertised you used haskell in your research, so the proposition that using haskell in your research will make you unemployable is necessarily false. if you're concerned with a post academic career, haskell still makes more sense than python.

do you really think you're going to be happy gluing webservers together?
Anonymous No.16825519 [Report] >>16825575 >>16826540
>>16825513
Made over $530K last year with the Gödel numbers last year.
Good luck with your blog!
Anonymous No.16825575 [Report] >>16825846
>>16825519
Your boss made 100x that without touching a keyboard
Anonymous No.16825846 [Report]
>>16825575
>your boss
Lmao
Anonymous No.16826262 [Report]
whoever invented this language is a fucking idiot it was aids just to do hello world
Anonymous No.16826313 [Report]
>>16824912 (OP)
Most mathematicians are not working on programming language theory, so they don't give a shit about category theory or laziness autism.
Maybe you could teach them to use some ML-like language.
Anonymous No.16826540 [Report]
>>16825519
Genuinely interested, could you give more details or a paper?
Anonymous No.16826545 [Report]
>>16824961
>category theory
What are you on about? Category theory is ubiquitous in math.
>lambda calculus
Most mathematicians don't know a thing about lambda calculus, much less hate it
>type theory
Similar deal as with lambda calculus, but I guess it's more well-known. Most mathematicians just view it as a waste of time to reformulate the entire framework of math, when the one we have is very familiar, and it's completely unclear what, if any, advantages type theory might have. If you ask about homotopy type theory, most mathematicians want to avoid it, because it just seems like a shitshow.
Anonymous No.16826661 [Report] >>16826697
>>16824912 (OP)
It's not how they think. I've had heated discussions with them about Haskell (and declarative languages in general) or theorem provers. They really hate that stuff.
I guess because it forces them to make things explicitly algorithmic with a clear path from axioms to result, which would be intuitionistic/constructive math while they prefer to play word games with assumptions.
Anonymous No.16826697 [Report]
>>16826661
Wow. Issues.
Sorry about that gaping wound in your pride. Don't know how it happened, bit you need to get treatment. It's necrotizing.
Anonymous No.16826722 [Report] >>16826727
Semi related: best way to animate physics?
Anonymous No.16826727 [Report]
>>16826722
Me again.
I had in mind python and matplotlib. Basically solve some differential equation(s) and store the solutions in a data structure. Then iterate over it to display something at every point, time, etc. Can I do something like this with Haskell?
Anonymous No.16826730 [Report]
>>16824978
>>16825276
What languages do you use for making math models? Out of genuine curiosity.
Anonymous No.16826748 [Report]
>>16824912 (OP)
they use Idris though, which is based on haskell
Anonymous No.16826992 [Report]
Haskell is the fedora of programming languages
Anonymous No.16826996 [Report] >>16827109
>>16824912 (OP)
big fucking matrices have a handful of highly optimized CPU libraries
Anonymous No.16827057 [Report]
>>16824912 (OP)
Mathniggers are stupid and coding filters them so they have to use baby languages.
Anonymous No.16827109 [Report]
>>16826996
And one of them is massiv, which works even in a distributed computing environment
Anonymous No.16827249 [Report]
I miss Shark Week and this thread sucks.
Not a single line of working Haskell code. I've seen better ethereum contracts from feces flinging monkey lawyers.