LWN.net Logo

Python slithers into Wesnoth

Python slithers into Wesnoth

Posted Jan 16, 2009 10:31 UTC (Fri) by eru (subscriber, #2753)
In reply to: Python slithers into Wesnoth by ncm
Parent article: Python slithers into Wesnoth

Automated testing is good for C++ code, too, of course, but for a dynamic language it's essential, if you hope to be able to make structural changes to the code later.

Does "dynamic" equate with runtime type checks? If not, consider the ML family of languages like SML and CAML, where you get the automatic memory management, pointerlessness and nice built-in dynamic data structures, but they still perform static type checking and compilation. In most cases you don't need to declare types for parameters and variables, because the compiler deduces them for you, eliminating the "less to type" argument.


(Log in to post comments)

Python slithers into Wesnoth

Posted Jan 16, 2009 18:19 UTC (Fri) by salimma (subscriber, #34460) [Link]

Ocaml, while impressively fast, does not handle threading very well, as far as I know (and the same is true of most current functional languages).

Moving from C++ to a different language is probably harder than moving from, say, C -- most native-compiling languages have a C FFI but not C++.

Both are not insurmountable -- the first can be solved by using a multi-process design (with pipes and shared memory -- not sure how well SHM works with Ocaml though); the second is probably a deal-breaker. Python is an exception thanks to Boost::Python.

Python slithers into Wesnoth

Posted Jan 17, 2009 10:18 UTC (Sat) by joe_oblivian (guest, #51538) [Link]

>Ocaml, while impressively fast, does not handle threading very well, as >far as I know (and the same is true of most current functional languages).

Erlang being a notable exception.

Python slithers into Wesnoth

Posted Jan 18, 2009 12:21 UTC (Sun) by rwmj (guest, #5474) [Link]

No language handles concurrency well (except, maybe Erlang and some very experimental
languages involving transactional memory).

(BTW, shared memory works fine with OCaml - it's even supported by the stdlib).

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds