Subscribe via RSS
Follow me on Twitter
Error: Please make sure the Twitter account is public.
-
Recent Posts
Archives
- September 2021
- March 2020
- December 2019
- August 2019
- February 2019
- December 2018
- November 2018
- September 2018
- August 2018
- July 2018
- June 2018
- May 2018
- December 2017
- August 2017
- August 2016
- June 2016
- September 2015
- January 2015
- December 2014
- December 2013
- August 2013
- July 2013
- June 2013
- April 2013
- November 2012
- July 2012
- June 2012
- February 2012
- January 2012
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- January 2011
- November 2010
- October 2010
- September 2010
Links
- OCI*ML Oracle bindings for the OCaml language
Monthly Archives: September 2010
Database types in OCaml and Python
Consider the following Oracle table: Note that both the values inserted were identical. In Python: Same results in SQL and Python. But in OCaml: What happened there? Well, OCaml is seeing the first column as “1.” and the second as … Continue reading
Posted in Ocaml, Oracle, Python
Leave a comment
Scope in database code
When dealing with relational databases, there are three major types of data structure/objects that we need. The actual names vary between platform and API, but generally there will be, in order of creation: A connection. This is often called lda … Continue reading
Posted in Haskell, Ocaml, Oracle, SQLite
4 Comments
Dictionary format strings
There is quite a nice feature of Python that allows dictionaries to be applied to format strings, rather than just relying on the position of each conversion specification. To give a trivial example: Becomes: I use this technique all the … Continue reading
Posted in Ocaml, Python
15 Comments
The List Monad in Python terms
Understanding Monads Via Python List Comprehensions
Posted in Haskell, Python
Leave a comment
Analyzing logfiles (2)
Following on from yesterday’s post, here is a similar tool implemented in Haskell. This one is to process a log format we use for various applications, which is <timestamp>: key1=value1 key2=value2 … keyn=valuen There may be any number of keys, … Continue reading
Posted in Haskell, Ocaml, SQLite
3 Comments
Analyzing logfiles (1)
One powerful technique I often use is to quickly load application or system logs into throwaway SQLite databases for analysis. This means I can easily run queries such as, how many times has event X occurred broken down by hour, … Continue reading
Posted in Linux, Ocaml, SQLite
4 Comments
OCaml at Xen
Another interesting article, this one on XenSource’s experience using OCaml on large, mission-critical software. We use Xen at work…
Posted in Ocaml, Random thoughts
Leave a comment
Forth
An excellent post from Yossi Kreinin that almost exactly mirrors my own experience. Forth to me seems very much like how computers should be programmed. I have Leo Brodie’s book and I love it. Out of habit I apt-get install … Continue reading
Posted in Random thoughts
Leave a comment
Using OCaml with Oracle (2)
In this post I am going to present a trivial application that nonetheless is representative of “real work” – parsing a command line, connecting to Oracle, running a query, processing the results and generating a report. I suppose it is … Continue reading
Posted in Linux, Ocaml, Oracle
6 Comments