HNHacker News
TopNewBestAskShowJobs

vlastachu

4 karma · joined January 30, 2015

submissionscomments
vlastachu··on Why I'm Not a React Native Developer
> no basic knowledge how JavaScript is interpreted at runtime

Could you show where author wrong about this?

vlastachu··on LambdaCube 3D
http://lambdacube3d.com/editor.html why type inference (for hints in editor) is so cool? Can I do something similar for haskell (without pain if possible)?
vlastachu··on CIL (.NET bytecode) to WebAssembly compiler
Is it only proof of concept? If no: How they develop compiler to language with incomplete spec?
vlastachu··on Alan Kay on Messaging (1998)
tell me about message passing without concurrency. is it message passing in ruby? and why.
vlastachu··on Use Haskell for shell scripting
> prefixes, default instances

Also bad setters ("record {field = val}" looks nice but useless, as not a function).

I hope the developers of GHC also clearly see the problem and someday will be engaged in it. Then the language becomes much more expressive.

Is that task exists somewhere in roadmap?

vlastachu··on Use Haskell for shell scripting
I'm not good enough haskell programmer, but there is possible solution (records as you mentioned).

    import Prelude hiding ((-))

    data Grep = Grep {isRecursive :: Bool, maxCount :: Maybe Int} --etc
        deriving (Show)
    grep = Grep False Nothing
    --short pseudonim
    r :: Grep -> Grep
    r command = command{isRecursive = True}
    m :: Int -> Grep -> Grep
    m num command = command{maxCount = Just num}
    
    (-) :: a -> (a -> a) -> a
    (-) command flag = flag command
    ourGrep = grep -m 50 -r 
    
    main = print ourGrep -- > Grep {isRecursive = True, maxCount = Just 50}
    
    --then we should write monad which execute that data