From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 09228BC37 for ; Sat, 19 Dec 2009 10:30:57 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArMBACIsLEvRVdzjkGdsb2JhbACECpcOQAEBAQkJDAcTA6dkgVuFIYhjAQIDBYEqgi1SBIsu X-IronPort-AV: E=Sophos;i="4.47,423,1257116400"; d="scan'208";a="52499336" Received: from mail-fx0-f227.google.com ([209.85.220.227]) by mail4-smtp-sop.national.inria.fr with ESMTP; 19 Dec 2009 10:30:56 +0100 Received: by fxm27 with SMTP id 27so3493388fxm.3 for ; Sat, 19 Dec 2009 01:30:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=cQMcv3hx90gHlR+SXwyQ8hfKRznmiZk32xqp+KdfuQM=; b=ndnKwu5Y6yhqQe9xVjPAKYCW9KaVe939XH0T7I7YusnkNNJqnBsT7qDSp84EzoW95f VdW7pJ9SNlpxS1koaYC1aMBh7YIWYTW5ms75N/qczdNd9x+N/JTSmp+vMvRs0BNwKYrF dYbP7eelPWDXLGnYSP7hUgaKiiaRbcQT6nELI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=gv9/FFib8vCiRFxgRoSVKMvg8daHk1E/Ki7cPK9o21IpLFEA6AwjP0+pkaDSIIdQbY Ma6JAjDaLEj6HeBkcnGyImw2Q9FD9wz1hnRlbx2YrCTJNy27Ia2cbqv2XfE1D+P4JHhL ump9/uNBIacda6/QhNFK0EBNZBBpctx5SeLzY= MIME-Version: 1.0 Sender: rigtorp@gmail.com Received: by 10.223.2.205 with SMTP id 13mr1095728fak.83.1261215055992; Sat, 19 Dec 2009 01:30:55 -0800 (PST) Date: Sat, 19 Dec 2009 10:30:55 +0100 X-Google-Sender-Auth: b43f5489f33c2d52 Message-ID: Subject: OCaml is broken From: Erik Rigtorp To: caml-list Content-Type: text/plain; charset=UTF-8 X-Spam: no; 0.00; ocaml:01 erlang:01 ocaml:01 bug:01 runtimes:01 runtimes:01 nasdaq:98 latency:01 erik:04 erik:04 fix:05 queues:06 evolved:08 load:08 real-time:11 Hi! I've been using Erlang and C++ to build a soft real-time system. As the project has evolved we've needed to write more and more of the code in C++ in order to achieve our latency requirements. But C++ is not as performant as you might think until you start to write your own allocators and cache aligning mallocs and datastructures. I've never liked C++ so I decided to try OCaml and built a simple 100 line program to build order books for Nasdaq. Turns out OCaml has really competitive performance while being a really nice language. However OCaml is broken! It does not provide any support for multicore architectures, which by now is considered a bug! It doesn't even allow me to load multiple runtimes into one C program. Please fix OCaml! The first step would be to support multiple runtimes running in the same process communicating using message queues. Erik Rigtop