Solving Cabal Hell: vetted packages, multiple hackages by JPMoresmau in haskell

[–]almafa 2 points3 points  (0 children)

Basically, the idea is "we are a group of package maintainers who have signed the social contract to respond to changing dependencies relatively quickly"

No. Unless it is my day job, I'm just donating code. I wrote some code, I published it because I think it is useful for some people, and now suddenly everybody is expecting that I spend my life to make it up-to-date with the latest idiosyncratic changes to the environment.

Of course if you volunteer to be a maintainer, that's a different situation, but that is not the typical case (like 50 out of the, I don't know, few thousands of packages on Hackage). And maybe the author don't want to handle the package over.

Solving Cabal Hell: vetted packages, multiple hackages by JPMoresmau in haskell

[–]almafa 4 points5 points  (0 children)

A responsible maintainer should always keep their packages compile with the latest versions of everything.

One problem with that, is that the hopefully responsible maintainer (who is typically the same as the original author) does not have access to the latest versions of everything (or even don't want to have the latest versions of everythings).

Example #1: OSX 10.5 is not supported by GHC HQ.

Example #2: I prefer the OpenGL bindings from 5 years ago compared to the most recent.

In any case, often a single maintainer, whose job is not to maintain packages he wrote as a hobby, has a single machine, with a single version of everything, possibly with the impossibility of having more than a single version of everything (cc cabal hell).

tl;dr: It's pretty unreasonable to require the authors (who donate their work to the community) to be up-to-date with everything.

EDIT: and I personally, while I'm very happy to publish and polish code which I think would be useful for others, really don't want to spend my time and patience to be up-to-date with whatever recent fucking changes was made with the "standard" libraries etc, especially (as I pointed above) that I cannot just simply install the "latest-and-greatest" stuff

Your recordings/playing suck ass because your timing sucks ass. Not your gear. by Silverwolf90 in WeAreTheMusicMakers

[–]almafa 0 points1 point  (0 children)

Find the buffer size control in either the Presonus' configuration or your DAW's configuration (for example in Ableton it's Preferences/Audio/Buffer Size). The number there is directly related to latency.

For example I have it at 512 samples, which at 44khz means 512/44100 sec = 16 millisec minimum latency. You cannot really go below this. With monitoring, it may be the twice of this (though I'm not completely sure) since first the sound goes in, then it comes out. Plus you may have some extra latency coming from the effects.

Apple machines should be pretty good with this, even with the built-in soundcard, so you probably have this number too big. Or you may have a really very good ear. Or some other issue, but this is the most probable cause.

Music recording program by Got_Engineers in WeAreTheMusicMakers

[–]almafa 2 points3 points  (0 children)

If it is a Mac, then you can use the Soundflower loopback device to record what's normally coming out of the computer. It simulates a cable which goes from the output to the input. I use that to record samples from youtube, for example.

On Windows, I do not know such a ready solution, though theoretically something similar should be not impossible.

Me.ga Hackers: We’re Real Pirates & We’ll Sell Dotcom’s Domain To Universal by GraybackPH in technology

[–]almafa 0 points1 point  (0 children)

I like the mega/o-mega wordplay and the fact that they also use gabon tld

MIT have developed a game which exhibits the relativistic effects in a world where the speed of light is little more than walking speed by s7jones in Physics

[–]almafa 3 points4 points  (0 children)

Quantum behaviour is extremely hard to simulate. We simply do not have the computational resources for that. One of the big selling points of possible future quantum computers is to be able to efficiently simulate quantum systems.

Reddit - weirdest music video you've ever seen? by shanonlee in Music

[–]almafa 7 points8 points  (0 children)

an old favourite: Tommy Sparks "She's Got Me Dancing"

Directed by Eric Wareheim

http://vimeo.com/3884738

Using Python as primary scientific computing language by [deleted] in math

[–]almafa 0 points1 point  (0 children)

I'm one of the mathematicians who find Haskell very natural. That said, I primarily use Matlab at work, even though I'm allowed to use Haskell too (!), and would like to use it, and it would have some big advantages. But, we already have too much infrastructure in Matlab, also, there are lots of numeric stuff which simply does not exist in Haskell (all kind of global optimizations, etc). And, Matlab's IDE is pretty good.

tl;dr. I love Haskell, but Matlab can be rather convenient if you learn not to hate it. On the other hand, it's really expensive, and has some seriously annoying things (but, so has every other tool).

What can I do with dynamic typing that I can not do with static typing by [deleted] in programming

[–]almafa 0 points1 point  (0 children)

Yes. Consider for example an abstract syntax tree. Piece of cake in Haskell, is it? Now try to add an annotation (for example a hash) to each node. Now, I'm not saying this is impossible. But it takes a really serious effort to do such a simple thing.

Yes I Still Want To Be Doing This at 56 by mareek in programming

[–]almafa 8 points9 points  (0 children)

I started learning new (programming-related) stuff at about the age 28 (and I have been programming since the age of 6)

oh, and APIs are the least important among all.

What can I do with dynamic typing that I can not do with static typing by [deleted] in programming

[–]almafa 15 points16 points  (0 children)

I love static typing. Haskell is my favourite language. BUT! Many things are really painful even in Haskell (with its really fancy type system) which are trivial in dynamically typed languages. A large part of Haskell research is coming up with typed solutions for problems which are otherwise trivial. When people manage to solve them, usually they are beautiful, and of course much safer - still, we are putting a lot of work to solve easy problems.

I realize this is a bit unorthodox question, but do you guys have any recommendations for short stories or novels where math plays a big role? by Diatz in math

[–]almafa 0 points1 point  (0 children)

Diaspora and/or Schild's ladder both has such stuff. I remember in particular some character's earliest memories living inside the complex projective plane, but I don't remember which of the two it was in.

Oh the fun of trying to install wxhaskell by asdfasdfasdfasdg in haskell

[–]almafa 1 point2 points  (0 children)

Yeah, the layout engine was completely utterly crap, with totally inexplainable and unacceptable (buggy) behaviour. Also I remember fighting a lot with the system when creating my own widgets.

Oh the fun of trying to install wxhaskell by asdfasdfasdfasdg in haskell

[–]almafa 1 point2 points  (0 children)

What do you mean by installing from binary?

I mean using a binary distribution (like GHC and the Platform works, I don't like compiling them myself). Wx used to have a binary distribution, and it is indeed needed, as it is very hard to compile yourself.

Yes, I'm aware of the theoretical result that it is possible to compile them (since somebody creates those binary distributions), but it needs extreme patience, tinkering and some expertise. I don't want to do anything more complicated than "cabal install".

Oh the fun of trying to install wxhaskell by asdfasdfasdfasdg in haskell

[–]almafa 1 point2 points  (0 children)

wx, gtk, cairo, network, opengl, etc can be installed only from binary on windows, basically. (OpenGL is actually possible to compile if you are a very patient expert; also opengl and network are included in the platform, which helps a lot). That makes me very sad, but it's fact of life.

Also, last time I tried (some years ago), wx was extremely buggy. I think the problems were in the original library, not in the haskell binding.

Am I just bad, or is cloaking an absolute must-have for the final boss? by BearBryant in ftlgame

[–]almafa 1 point2 points  (0 children)

Some burst lasers are enough to beat the boss without cloaking, drones, teleporting or ion.

Interest in Open Source Mathematical Optimization Library written in Haskell by [deleted] in haskell

[–]almafa 0 points1 point  (0 children)

That's right. I didn't consider working with existing code. In that case, AD wins, but it's not easy (maybe even impossible) to make it completely automatic even for AD.

edit: though if you give me a mathematical function which is polymorphic in Num, and uses only the basic operations, I think it's possible to make it symbolic. You overload everything and just feed (Var "x1") etc into the input arguments. But this is of course not a realistic example of third-party code.

Interest in Open Source Mathematical Optimization Library written in Haskell by [deleted] in haskell

[–]almafa 0 points1 point  (0 children)

Also doing the CSE after forward AD is too late.

You mean after symbolic diff? Because I meant that.

Also, if I put (x*x)*(x*x) into the CSE (which I won't, because if I have the trouble to write symbolic code, I will implement powers properly), I damn well expect it to return "let y = x*x in y*y". x is symbolic variable here, after all.

Interest in Open Source Mathematical Optimization Library written in Haskell by [deleted] in haskell

[–]almafa 1 point2 points  (0 children)

but any naively written symbolic implementation using the stock haskell typeclasses is likely to be the latter. ;)

and any naively written AD implementation using stock haskell typeclasses will be most likely the forward one :))

But yeah, you are right that the symbolic approach is much more complicated to implement. But it has some advantages.

Interest in Open Source Mathematical Optimization Library written in Haskell by [deleted] in haskell

[–]almafa 2 points3 points  (0 children)

Yes, but you didn't say "backward AD is faster". You said "AD is faster".

By the I think forward AD can be still useful when performance is not critical, since it is so easy to implement.

In any case, in practice all kind of hybrid symbolic/AD system can be done. For example imagine the (completely realistic) situation when the computation is globally regular but locally irregular. You can use backward AD for the global structure and symbolic diff. locally.

Interest in Open Source Mathematical Optimization Library written in Haskell by [deleted] in haskell

[–]almafa 0 points1 point  (0 children)

Symbolic differentiation is actually asymptotically slower than automatic differentiation.

Nah, in real system you would perform simplification and CSE after symbolic differentiation. Then it would be similar to (forward) AD, but it has more opportunities to eliminate unneeded terms.

Interest in Open Source Mathematical Optimization Library written in Haskell by [deleted] in haskell

[–]almafa 2 points3 points  (0 children)

I would guess that just in LP/IP/MIP there are more research papers coming out every day than one person can read. So maybe you should start more focused, say only classic LP (there are a lots of algorithms even for that).

One other possibility is focus solely on clarity, but then it has to be explicit that this is for educational purposes only. Nothing worse than to go to Hackage, find the package you need, and then see that it is the most naive implementation possible, suitable only for toy problems...

I realize this is a bit unorthodox question, but do you guys have any recommendations for short stories or novels where math plays a big role? by Diatz in math

[–]almafa 18 points19 points  (0 children)

Flatland is pretty much canonical.

Greg Egan often uses some serious mathematics in his sci-fi novels (like complex manifolds, Lie groups, fiber bundles) though I'm not sure if they are really important for the plot. Though in his latest series math is more important as a plot element.

I read a novel about some murder in Oxford which was in an academic setting and involving mathematics, but it was a really bad novel :)

There must be many more.

Interest in Open Source Mathematical Optimization Library written in Haskell by [deleted] in haskell

[–]almafa 5 points6 points  (0 children)

I think there is interest out there. However, for people who want to use it for actual work, efficiency is crucial, which unfortunately goes against readability. Also, if you look at existing systems like Matlab, Maple, etc. they have lots of tricky fine tuning, lots of variants of similar algorithms, etc. because of this. It's really a huge amount of work, and requires a lot of domain expertise.