Subscribe via RSS
Follow me on Twitter
- RT @bbcmicrobot: @katie_panda Source: bbcmic.ro/#%7B%22v%22%3A… https://t.co/E71WCfNN7H 2 days ago
- @OldTechAdverts Yes, a notebook style interface running in a web browser, it’s really clunky even compared to MathC… twitter.com/i/web/status/1… 2 days ago
- Jupyter today is a huge step backwards from MathCAD in the 90s twitter.com/OldTechAdverts… 3 days ago
- RT @DarkBlueMonkey: I finally did it! Today marks the final arrival! I now have every version of every language release on every console… 3 days ago
- RT @TheRegister: Prince Philip, inadvertent father of the Computer Misuse Act, dies aged 99 reg.cx/3ZeB 3 days ago
-
Recent Posts
Archives
- 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
Category Archives: Python
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
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
The State Monad in Python terms
Consider a function like sin. It is a “pure” function, which is to say that it is referentially transparent – every time you call sin(pi) it will return the same value. You could in fact in C say #define sin(pi) … Continue reading
Posted in Haskell, Python
5 Comments
Comparing Python and Ocaml
I wrote some Python code a while ago for neatly formatting tabular output, for generating reports on the command line or from cron jobs to email. Typically this would be populated with a result set from a query “joined” with … Continue reading
Posted in Ocaml, Python
11 Comments
Hello world!
I am (mainly) a DBA, tho’ I also dabble in other bits of back-end infrastructure (operating systems, storage and so on), and one of my key metrics is the ratio of DBAs:DBs in an organization. To that end I am … Continue reading
Posted in Haskell, Ocaml, Python
4 Comments