One can now also use the P3 driver (PostgreSQL driver protocol 3.0) from Sven to connect Pharo also to CockroachDB. CockroachDB is an open-sourced software project (relational database management system) that is designed to store copies of data in multiple locations in order to deliver requested data when needed. It is described as a scalable, consistently-replicated, transactional datastore. The database is scalable in that a single instance can be run from a laptop while building an app, then scaled to thousands of commodity servers as a business grows.
Read more.
Monday, April 23, 2018
Thursday, April 19, 2018
Wednesday, April 18, 2018
Iceberg 0.7 explained
GraphQL
REST services are easy to implement in Pharo - especially with "Teapot" and my simple "Tealight" extensions for it. Read the Tealight project page with some documentation and examples to get an idea about it.
If you worked with or heard about REST then you might also come across GraphQL. It's a technology initially developed at Facebook.
In GraphQL, the shape of the response is built up on the server side to match the shape of a given JSON query.
So while in REST when you ask for a "book" item you receive a predefined JSON response with all attributes of the book. In GraphQL you might ask only for the books title or in another case for the books title and author at the same URL and receive an appropriate response.
Now there is also an initial library for GraphQL available for Pharo and VisualWorks.
Really nice!
If you worked with or heard about REST then you might also come across GraphQL. It's a technology initially developed at Facebook.
In GraphQL, the shape of the response is built up on the server side to match the shape of a given JSON query.
So while in REST when you ask for a "book" item you receive a predefined JSON response with all attributes of the book. In GraphQL you might ask only for the books title or in another case for the books title and author at the same URL and receive an appropriate response.
Now there is also an initial library for GraphQL available for Pharo and VisualWorks.
Really nice!
Programming Neural Networks in Pharo - Preview
Agile Artificial Intelligence with Pharo - a new book is in the pipe. You can already have a preview.