Re: [Haskell-cafe] haskell.org is so fragile

2012-07-13 Thread Gaius Hammond
It would have to be rewritten in Haskell and called Harnish. 


Gaius



--

-Original Message-
From: Bardur Arantsson s...@scientician.net
Sender: haskell-cafe-boun...@haskell.org
Date: Fri, 13 Jul 2012 01:28:30 
To: haskell-cafe@haskell.org
Subject: Re: [Haskell-cafe] haskell.org is so fragile

On 07/12/2012 11:04 PM, Ganesh Sittampalam wrote:
 Hi,
 
 On 12/07/2012 13:06, Takayuki Muranushi wrote:
 Today I have observed that hackage.haskell.org/ timeout twice (in the
 noon and in the evening.)

 What is the problem? Is it that haskell users have increased so that
 haskell.org is overloaded? That's very good news.
 I am eager to donate some money if it requires server reinforcement.
 
 The issue is unfortunately more to do with sysadmin resources than
 server hardware; there's noone with the time to actively manage the
 server and make sure that it's running well. Any ideas for improving the
 situation would be gratefully received.
 
 Today there were some problems with some processes taking up a lot of
 resources. One of the problems was the hackage search script, which has
 been disabled for now.
 

Since I don't have insight into the inner sanctum (aka.
service/server setup) this may be way off base, but how about adding a
Varnish instance in front of haskell.org and its various subdomains? It
could cache everything for 5 minutes (unconditional) and reduce load by
ridiculous amounts.

Regards,


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] bindings for libvirt

2012-01-16 Thread Gaius Hammond
The author of libvirt, Richard Jones, is an OCaml hacker. 


G



--

-Original Message-
From: Michael Litchard mich...@schmong.org
Sender: haskell-cafe-boun...@haskell.org
Date: Sun, 15 Jan 2012 14:05:56 
To: haskell-cafe@haskell.org
Subject: Re: [Haskell-cafe] bindings for libvirt

That's encouraging!

On Sun, Jan 15, 2012 at 1:41 PM, Erik de Castro Lopo
mle...@mega-nerd.com wrote:
 Michael Litchard wrote:

 Due to the direction things are going at work, I have become
 interested in Haskell bindings for libvirt. Noticed that this hasn't
 been done yet.

 Interesting!

 I was wondering if this was due to lack of motivation,
 or if there were some difficult hurdles with libvirt that make the
 project cost-prohibitive.

 Well there are already Ocaml bindings for libvirt

    http://libvirt.org/ocaml/

 so its most likely the former.

 Erik
 --
 --
 Erik de Castro Lopo
 http://www.mega-nerd.com/

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Message

2011-10-21 Thread Gaius Hammond
There's no technical reason why not; Twitter is written in Scala and Facebook's 
chat system in Erlang. 


Would I see *myself* working at one of these companies? Not likely. 


Cheers,


G



--

-Original Message-
From: Goutam Tmv vo1d_poin...@live.com
Sender: haskell-cafe-boun...@haskell.org
Date: Fri, 21 Oct 2011 15:37:42 
To: haskell-cafe@haskell.org
Subject: [Haskell-cafe] Message

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Enterprise Haskell -- help

2011-05-26 Thread Gaius Hammond


On 26 May 2011, at 21:34, Jason Dagit wrote:

On Thu, May 26, 2011 at 1:09 PM, Gaius Hammond ga...@gaius.org.uk  
wrote:



Over in OCaml-land, I have taken it upon myself to address this:
http://gaiustech.github.com/ociml/


Takusen already supports Oracle (and other rdbms) in a resource
precise and good performance way, if that's what you're talking about
implementing:
http://projects.haskell.org/takusen/




Ah, interesting - I was only aware of HDBC and HSQL. Which in turn  
begs the question, why isn't this better known among (us) Enterprise  
dev types?




Cheers,



G




___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] who's in charge?

2010-10-31 Thread Gaius Hammond


On 29 Oct 2010, at 07:33, Gregory Crosswhite wrote:


Also, this is a complete aside but what the heck.  :-)

Has anyone else been driven crazy by the way that Java code and  
libraries are documented?  It seems like whenever I try to figure  
out how to use a piece of Java code, the functionality is spread out  
over a huge collection of classes and methods so that it is  
impossible to figure out where things actually happen and how the  
code is supposed to be used.  Am I correct to perceive this as a  
general trend in Java, or is it just the projects that I looked at  
and/or my lack of experience in how Java sources and libraries are  
organize?




Yes I had a bit of a rant about that in my blog recently 
http://gaiustech.wordpress.com/2010/09/27/api-documentation/



It's by no means only Java; automated documentation generators are the  
problem. They add no more value than a smart editor could give you  
anyway, or reading the comments. You need an API reference *and*  
sample code *and* a high level introduction and explanation of intent  
to count as documentation in my book.




Cheers,



G



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ghci - always show types

2010-10-17 Thread Gaius Hammond


On 13 Oct 2010, at 16:55, Ozgur Akgun wrote:


Cafe,

Just a quick question. Either I am hallucinating or there was a way  
of saying ghci to always show types. It was working as if you typed  
:t it after every line of input.


Sorry, I searched but couldn't find the option via google. Hope  
someone here knows/remembers what I am talking about.






Here you go:


Prelude :set +t
Prelude 1 + 1
2
it :: Integer




Cheers,



G





___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] PSA: using MySQL from Haskell programs

2010-09-07 Thread Gaius Hammond


On 7 Sep 2010, at 18:46, Bryan O'Sullivan wrote:

If you are using HDBC-mysql or HDBC-odbc to access MySQL databases,  
you may have run into problems with your programs failing due to  
connection errors. In this blog posting, I describe what's happening  
and how to work around it:


http://www.serpentine.com/blog/2010/09/04/dealing-with-fragile-c-libraries-e-g-mysql-from-haskell/
___



Interestingly a similar issue was posted recently on Hacker News: 
http://news.ycombinator.com/item?id=1661986




Cheers,




G




___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] help me evangelize haskell.

2010-09-04 Thread Gaius Hammond
My usual rhetoric is that one-off, throwaway scripts never are, and not only do 
they tend to stay around but they take on a life of their own. Today's 10-line 
file munger is tomorrow's thousand-line ETL batch job on which the business 
depends for some crucial data - yet the original author is long gone and no-one 
dares modify in case it breaks. So it is just good sense to use sound practices 
from the very beginning. 


One of the features of Perl is that it will try to work even if you make type 
errors (e.g. give it a scalar in place of a list, or a string instead of an 
int). One day, however, it WILL fail. Haskell finds these types of bugs 
upfront, and not when your pager goes off at 3am...


Cheers,


G

--Original Message--
From: Michael Litchard
Sender: haskell-cafe-boun...@haskell.org
To: haskell-cafe@haskell.org
Subject: [Haskell-cafe] help me evangelize haskell.
Sent: Sep 4, 2010 17:38

I'll be starting a new job soon as systems tool guy. The shop is a
perl shop as far as internal automation tasks go. But I am fortunate
to not be working with bigots. If they see a better way, they'll take
to it. So please give me your best arguments in favor of using haskell
for task automation instead of perl, or awk or any of those scripting
lanugages.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


--___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Why does ghci recompile the module compiled in different OS ?

2010-09-04 Thread Gaius Hammond
Are you trying to use the .o compiled on BSD on Linux? They are two  
different operating systems. So the Linux ghci isn't using the .o,  
it's using the .hs. Even getting Haskell binaries to run on two  
different versions of Linux can be an adventure...




http://gaiustech.wordpress.com/2010/09/03/on-deployment/



Cheers,



G




On 4 Sep 2010, at 02:36, zaxis wrote:



Both linux and freebsd has the same .ghci file.

cat ~/.ghci

:def hoogle \str - return $ :! hoogle --count=15 \ ++ str ++ \
:cd /media/G/www/qachina/db/doc/money

the money.hs has many functions i need to use.

On freebsd, i use the following command to compile it:

ghc -c -O2 money.hs
ls

Money.hi  Money.hs  Money.o

When entering ghci, it indeed doesnot recompile the module.

ghci

...
Ok, modules loaded: Money

However, when i use the same module in archlinux, the ghci does  
recompile

the module:

ghci

...
[1 of 1] Compiling Money( Money.hs, interpreted )
Ok, modules loaded: Money.

Any suggestion is appreciated!

-
e^(π⋅i) + 1 = 0
--
View this message in context: 
http://old.nabble.com/Why-does-ghci-recompile-the-module-compiled-in-different-OS---tp29619740p29619740.html
Sent from the Haskell - Haskell-Cafe mailing list archive at  
Nabble.com.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ghc in macports

2010-08-12 Thread Gaius Hammond


On 12 Aug 2010, at 12:52, Hans Aberg wrote:

 its not for those that also installs standard distributions, it  
seems.


But what's wrong with the binaries listed here:
 http://haskell.org/ghc/
Fairly easy to install.




Yes and no; on OSX 10.5.8 it works better to install GHC from the  
binary then build Platform yourself. On 10.6 it seems to be OK.




Cheers,



G




___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: Haskell in Industry

2010-08-11 Thread Gaius Hammond


On 11 Aug 2010, at 08:30, Ketil Malde wrote:


ng on FP in general as well.

But as I interpreted this thread, the premise was not about the  
morality

of specific sectors, but rather that finance takes away too much of
the FP talent.  My opinion is that we should rather appreciate  
business

or organizations willing to fund FP - perhaps especially for evil
organizations, where funds would otherwise go to more nefarious
purposes.




Investment banking has long been at the forefront of adopting niche  
languages ... I know people who worked on APL in banks, and now J (http://www.jsoftware.com/ 
) and Q (http://kx.com/Products/kdb+.php). Even Perl was big in the  
finance industry, before the web brought it into the mainstream. If  
you want to work on real world problems (and asset allocation is a  
real problem) then this is the place to be... Until the rest of the  
world catches up.





Cheers,




G



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] finding out which gcc is hard-coded into a ghc?

2010-08-06 Thread Gaius Hammond


On 6 Aug 2010, at 18:05, Günther Schmidt wrote:


Hello,

how can I find out which gcc a ghc is hard-coded to use and is it  
possible to override it?






See this page: 
http://www.haskell.org/ghc/docs/6.12.2/html/users_guide/options-phases.html




Cheers,




G




___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] haskell platform questions

2010-07-12 Thread Gaius Hammond

Hi,




This is still happening with the current DMG on the website, my  
solution has been to install GHC from the DMG, then get the source for  
Haskell Platform (haskell-platform-2010.1.0.0.tar.gz) and build it  
myself.





Cheers,




G





On 22 Mar 2010, at 04:02, Warren Harris wrote:

I downloaded the new haskell-platform-2010.1.0.0-i386.dmg today...  
ran the uninstaller, ghc installer and the platform installer. When  
I run ghci, it seems to work fine, but when I try cabal, I get this  
crash:


$ cabal --version
dyld: unknown required load command 0x8022
Trace/BPT trap

Any suggestions? (I'm on 10.5.8). Maybe I'll try the macport install  
process instead.


Thanks for your help,

Warren


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Where can I get GHC for Solaris?

2009-07-07 Thread gaius hammond
Quoting John Ky newho...@gmail.com:

 Hi,
 
 Anyone know where I can get the GHC compiler and libraries for Solaris?:


I'm using this one: 
http://www.haskell.org/ghc/download_ghc_683.html#sparcsolaris


Cheers,


G



-- 


-
Visit Pipex Business: The homepage for UK Small Businesses

Go to http://www.pipex.co.uk/business-services

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Facebook puzzles allow for GHC solutions

2009-05-27 Thread Gaius Hammond


On 27 May 2009, at 19:45, Bulat Ziganshin wrote:


actually, of 5 compiled languages there, 3 are FP, and only 2
remaining are the most popular languages on planet - C++ and Java

so this list shows their huge respect to FP




It is well known that Facebook are heavy Erlang users.


http://www.facebook.com/note.php?note_id=51412338919


They haven't made public AFAIK what they're using Haskell for.


Cheers,



G


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe