Better HN
topnewbestaskshowjobs
Log inSign up

vapourismo

15 karma · joined Oct 20, 2013 (13y ago) · 15 submissions

Submissions

comment 8y ago · link · parent

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

comment 8y ago · link · parent

I don't see how that is a big problem.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

You'd be surprise how much weirder it gets when everything is evaluated eagerly.

comment 8y ago · link · parent

GHC can produce native libraries just like C or Rust.

comment 9y ago · link · parent

How do airplanes work?

comment 10y ago · link · parent

What is your argument?

comment 10y ago · link · parent

So, Go with a more expressive type system is a worse Go?

comment 11y ago · link · parent

https://de.m.wikipedia.org/wiki/Unterlassungserklärung

I think that is what you need.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

Also variable templates, which are crucial to generating the metatable name for user types.

comment 11y ago · link · parent

Hope it works for you - love to hear some additional feedback.

13.

Show HN: Another C++ Lua Wrapper(github.com ↗)

24 points · by vapourismo · 11y ago · 12 comments

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

May I have fries with that?