News for hackers. Stuff that matters.
Re:Can I do FP in my language? by crimsonalucard on Saturday August 05, 2017 @04:35PM (#14937764)
You can't even make that guarantee for functional languages. How do I know the built in operators for scala aren't producing side effects without reading the code of the compiler itself?

Additionally you should know that functional programming is a lie. Your computer is an imperative machine with no understanding of functional programming. The compiler transforms your functional program into an imperative one.

Re:Can I do FP in my language? by gaius on Saturday August 05, 2017 @05:25PM (#14938000)
Additionally you should know that functional programming is a lie. Your computer is an imperative machine with no understanding of functional programming

Yet you program a register machine as if it were a stack machine all the time without batting an eyelid!

Re:Can I do FP in my language? by crimsonalucard on Saturday August 05, 2017 @07:54PM (#14938749)
>Because you can't make any guarantees about state in a language that wasn't intended for FP because how do you know what side effects the built-in functions are having

This is your original argument. I said that FP programs offer none of the said guarantees because they are at it's core compiled into imperative programs... You responded with a statement about a stack machine being an abstraction over a "register machine." How does the stack machine statement move your original argument forward...? We're getting side tracked here...

Re:Can I do FP in my language? by hiptobecubic on Sunday August 06, 2017 @01:37AM (#14939915)
You don't. It's entirely possible to write not-at-all-functional code in Scala. One of the many reasons I dislike it.
Re:Can I do FP in my language? by crimsonalucard on Sunday August 06, 2017 @12:55PM (#14942082)
ah never knew that. My mistake. I just chose a random "functional" language as an example.