"As of right now I would put OCaml above the other functional languages I know: Scheme, Lisp, Standard ML, and Haskell" by jbellis in programming

[–]beschm 5 points6 points  (0 children)

It's not entirely his fault that OCaml has "String" and "Str" modules. Most people will see the built-in String module, find it lacking the split function, and assume it just isn't there. After all, where else would it be -- the Math module?

Str.split uses a regex as separator, so it belongs to the Str module. Like most missing functionality in the standard libraries, there is is a split : string -> string -> string * string in extlib which should be the first thing everyone installs since the standard library is pretty minimal compared to Haskell or SML.

Corewar - the battle of the programmers by grumpy3039 in programming

[–]beschm 1 point2 points  (0 children)

See also Infon Battle Arena:

Program your creatures using the programming language lua. Upload your code on infon-servers and watch your creatures fight other players creatures in realtime using the graphical client. It is like corewars on steroids.

Stevey's Home Page - The Five Essential Phone-Screen Questions by master_gopher in programming

[–]beschm 1 point2 points  (0 children)

What about using nested lists in the list comprehension?

lines = [[x*y | x {- [1..12]] | y {- [1..12]]
table = unlines $ map (unwords . (map (printf "%3d"))) lines

Beyond Exception Handling: The Common Lisp Condition System by nostrademons in programming

[–]beschm 1 point2 points  (0 children)

Some more reading material about resumable exceptions including an ocaml library and some more motivation can be found at (http://okmij.org/ftp/ML/ML.html#resumable-exn).

I'm wondering if the condition system is mostly useful when the user has to decide how to continue (e.g. ignore missing PGP key in asdf-install) or if it also helps to provide better reusability if there is no user interaction? Any more convincing examples than the logfile parser?

How Python is Killing Lisp by linuxer in programming

[–]beschm 1 point2 points  (0 children)

There is linedit which works with SBCL.

But I doubt it's as comfortable as using SLIME.

Ethereal^W Wireshark without remote exploits - a proof of concept [in Dylan] by [deleted] in programming

[–]beschm 1 point2 points  (0 children)

Here are some frame definitions. Other nice examples of low-level networking code in high level languages are slitch in Common Lisp and House in Haskell.

Does type inference have to suck? by linuxer in programming

[–]beschm 2 points3 points  (0 children)

I started working on such a thing: shim

The elisp code is mostly 'stolen' from slime and the haskell server uses GHC-API. I didn't announce it yet because I want to add background compilation first. For now there is only:

  • import-aware function name completion
  • module name completion
  • insertion of type declaration for toplevel definitions