News for hackers. Stuff that matters.

benmos

Re:Making My Own Wedding Rings on Tuesday July 09, 2024 @06:11PM (#40921794)
Hope it’s permissible for me to post this… but if you’re looking to do this in the UK, these guys are great: https://maps.app.goo.gl/PtJpTBpkiDBSzFki7?g_st=ic
Re:Algebraic Subtyping (2016) [pdf] on Tuesday March 07, 2017 @04:08AM (#13809186)
I don't think that's really humour - that's an important piece of information.
Re:Database versioning best practices on Monday August 10, 2015 @03:08PM (#10036566)
Curious why you'd recommend that. It seems to me that it costs you something (convenience of standard VC practice on code) and gains you little.

I'd recommend checking out the linked presentation above - for things like stored procs you have the option of installing multiple versions simultaneously (e.g. under different names or 'Schemas') - obviously you can't do that for the main schema itself. This is why I think a hybrid approach makes more sense.

Re:Database versioning best practices on Monday August 10, 2015 @02:28PM (#10036316)
I think this post only gives half of the story. The thing is you need to manage not just your schema (and reference data) but also your DB code - i.e. stored proc etc.

For schema, the approach recommended by the OP seems sensible - check diff scripts into VC and consider them immutable (see also http://www.depesz.com/2010/08/22/versioning/ for a lightweight Postgres approach).

For stored procs etc, I think you need an approach much more akin to normal code - here you want to be able to leverage your VCS just as you do with normal code - so for these you want to consider them mutable.

One of the best presentations I've seen on this topic is:

http://www.slideshare.net/OleksiiKliukin/pgconf-us-2015-alte...

Re:Functional Programming in Haskell by Examples on Tuesday April 28, 2015 @03:35AM (#9450899)
Nix (and NixOS, NixOps etc) is totally, totally awesome (only downside is that it's not a statically typed language itself). Just be warned that it does have a non-trivial learning curve of its own though.
Re:What it's like to use Haskell on Thursday March 27, 2014 @03:36AM (#7479080)
Ah, right, that makes sense - thanks.
Re:What it's like to use Haskell on Wednesday March 26, 2014 @04:26PM (#7476364)
I take it you mean OS-level threads then?
Re:What it's like to use Haskell on Wednesday March 26, 2014 @04:00PM (#7476157)
"we added a tracker for the number of suspended Haskell threads" - would you mind sharing how you did that? I couldn't see any obvious GHC APIs for it.