roryc89
Re:The lost cause of the Lisp machines
on Thursday November 20, 2025 @04:22AM (#45990716)
In most FP languages it is simple to print to screen and get a random number.
Pure functions often exist in practice and are useful for preventing many bugs. Sure, they may not be suitable for some situations but they can prevent a lot of foot guns.
Here's a Haskell example with all of the above:
import System.Random (randomRIO)
main :: IO ()
main = do
num <- randomRIO (1, 100)
print $ pureFunction num
pureFunction :: Int -> Int
pureFunction x = x * x + 2 * x + 1
Re:3D video conferencing is now possible with realfaces.org
on Friday January 30, 2015 @06:20AM (#8971498)
This is a link to a live demo. The website is at http://realfaces.org