News for hackers. Stuff that matters.

vapourismo

Re:Learn You a Haskell for Great Good on Wednesday August 22, 2018 @03:23AM (#17816978)
I wouldn't really consider stack to be a great tool. There is Stackage which may be useful but the tool itself falls apart quickly when used to compile more than a single package executable.

That being said, one should have looked at these:

  - cabal Nix-style builds
  - ghicd for continuous type-checking
  - stylish-haskell for light code formatting
  - brittany for slightly more invasive code formatting
  - hlint for linting
I don't see how that is a big problem.
Certainly it isn't the most attractive solution - still it is possible and works well.

When it comes to moving things across FFI barrier, that is also very possible as there are all kinds of types (including stable pointers) in the Foreign.* modules that map onto C types.

You'd be surprise how much weirder it gets when everything is evaluated eagerly.
GHC can produce native libraries just like C or Rust.
How do airplanes work?
Re:Seven years of Go on Thursday November 10, 2016 @10:44PM (#12927513)
What is your argument?
Re:Seven years of Go on Thursday November 10, 2016 @10:43PM (#12927507)
So, Go with a more expressive type system is a worse Go?
Re:Show HN: Another C++ Lua Wrapper on Sunday July 05, 2015 @07:38AM (#9833214)
I've found that most libraries implement the wrapper around C++ functions in the most terrible way. It ranges from userdata types wrapping std::function objects to wrapping the lua_State, which the users have to interact with themselfs.

Luwra uses inlinable functions and templates almost exclusively. That way (best-case scenario), each wrapped field/method/constructor/function implies only one generated lua_CFunction, which invokes the Lua API to retrieve the values and finally call the wrapped function with them. And all that, during compile-time, which in my opinion is the best part about it.

Re:Show HN: Another C++ Lua Wrapper on Sunday July 05, 2015 @07:24AM (#9833195)
Also variable templates, which are crucial to generating the metatable name for user types.
Re:Show HN: Another C++ Lua Wrapper on Saturday July 04, 2015 @06:07PM (#9831753)
Hope it works for you - love to hear some additional feedback.
Re:Germany’s great tuition fees U-turn on Wednesday October 01, 2014 @10:37AM (#8394672)
400€ per year or per semester? Where? I am at the Institute of Technology in Berlin and I payed 290.37€ this semester, which includes 179.40€ for public transport.
May I have fries with that?