Thu, 05 Aug 2010 21:46:12 +0000 Comments to “My new blog… in Objective Caml” Paolo Donadeo's personal Internet site and blog https://www.donadeo.net/post/2010/my-new-blog-in-objective-caml p.donadeo@gmail.com (Paolo Donadeo) By: Sylvain Le Gall https://www.donadeo.net/post/2010/my-new-blog-in-objective-caml#comment-1297 https://www.donadeo.net/post/2010/my-new-blog-in-objective-caml#comment-1297 Tue, 03 Aug 2010 09:20:39 +0000 Sylvain Le Gall <div><p>Why not use apache as a reverse proxy and have ocsigen run on port 8080?</p></div> By: bluestorm https://www.donadeo.net/post/2010/my-new-blog-in-objective-caml#comment-1298 https://www.donadeo.net/post/2010/my-new-blog-in-objective-caml#comment-1298 Tue, 03 Aug 2010 09:29:52 +0000 bluestorm <div><p>Re. text markup process, you may be interested in those two existing OCaml projects :</p><p>- mldown : https://iuwt.fr/~asmanur/mldown/</p><p>> mldown is a modular text formatter (like markdown) able to take</p><p>several syntaxes in input, perform complex tasks on the abstract </p><p>representation (such as generating a table of contents) and</p><p>outputs in different languages (xHTML and latex are currently </p><p>supported)</p><p>- lambdoc : https://lambdoc.forge.ocamlcore.org/</p><p>> Lambdoc is a library providing support for semantically complex</p><p>documents in Ocsigen web applications. It includes parsers for three </p><p>different markup languages, and the possibility to output a Lambdoc </p><p>document as an Ocsigen XHTML.M value.</p><p>A satisfying mldown documentation is available directly on the front page.</p><p>Lambdoc documentation is a bit hard to find. You may be interested in :</p><p>- intro.txt : https://forge.ocamlcore.org/scm/viewvc.php/trunk/lambdoc/src/apidoc/intro.txt?view=markup&revision=67&root=lambdoc</p><p>- arch.png : https://forge.ocamlcore.org/scm/viewvc.php/*checkout*/trunk/lambdoc/src/apidoc/lambdoc-arch.png?root=lambdoc&revision=545</p><p>PS : there are weird things with you markup. Due to the unfortunate choice of double-/ as markup, one cannot use two URLs in a single line.</p><p>Example : http:<em>foo.com http:</em>foo.com</p><p>A reasonable fix would be to consider only the double-/ pairs at word boundaries (left boundary for the left one in the pair, right boundary for the other).</p></div> By: Matías Giovannini https://www.donadeo.net/post/2010/my-new-blog-in-objective-caml#comment-1299 https://www.donadeo.net/post/2010/my-new-blog-in-objective-caml#comment-1299 Tue, 03 Aug 2010 13:54:56 +0000 Matías Giovannini <div><p>Bravo, Paolo! Is there any chance you'd show us your code? Clean-up is definitely not necessary: I'm sure you judge yourself far more harshly than anybody else would do, especially seeing that <em>it just works</em>.</p></div> By: Dmitry Grebeniuk https://www.donadeo.net/post/2010/my-new-blog-in-objective-caml#comment-1300 https://www.donadeo.net/post/2010/my-new-blog-in-objective-caml#comment-1300 Tue, 03 Aug 2010 16:56:28 +0000 Dmitry Grebeniuk <div><p>CamlTemplate is written by Benjamin Geer, not by me. I'm only maintaining it.</p></div> By: Paolo Donadeo https://www.donadeo.net/post/2010/my-new-blog-in-objective-caml#comment-1301 https://www.donadeo.net/post/2010/my-new-blog-in-objective-caml#comment-1301 Wed, 04 Aug 2010 09:44:10 +0000 Paolo Donadeo <div><p>Sorry for the delay, but I'm currently in a hospital and the Internet connection from my mobile is really uncomfortable.</p><p>@Sylvain: for some reasons our network admin decided to keep at the minimum the number of modules installed with Apache, and the reverse proxy module is not installed. I asked, but no exceptions were allowed for my personal blog :-) In any case I still consider Eliom over FastCGI/AJP a huge plus, because it's a very common setup for many hosting providers.</p><p>@bluestorm: very interesting, I'm considering to switch to mldown. In any case the double slash can be escaped with a backslash \// like in https://aaa.bbb.com https://ccc.aaa.com. You can try with the comment preview. No comment please, it's my first parser :-)</p><p>@Matías: a repository is available, I'll publish it on GitHub ASAP, today the doctors will probably discharge me from the hospital, now I'm writing from a bed, with 2 fingers of my left hand, and a GIT push is problematic :)</p><p>@Dmitry: thanks for the clarification, I've just corrected the post.</p></div> By: Giorgio regni https://www.donadeo.net/post/2010/my-new-blog-in-objective-caml#comment-1302 https://www.donadeo.net/post/2010/my-new-blog-in-objective-caml#comment-1302 Thu, 05 Aug 2010 21:46:12 +0000 Giorgio regni <div><p>Congrats! Do it yourself is always a good idea to learn a new programing language and its libraries. Like Matias said, I would be interested in looking at the code too.</p><p>Cheers</p></div>