Programming

30 thoughts
last posted Oct. 18, 2016, 9:44 p.m.
0
get stream as: markdown or atom
0

hash -r to rehash an executable that previously was not found and does now exist on your path

reposted to Ubuntu
0

nproc tells you number of processing units your Linux instance has available

0

The JVM will only inline methods if they are less than 36 bytecodes long putting an emphasis on small methods if you want to get the best out of the auto-optimisation at runtime.

0

Typescript is a typed superset of Javascript that has been released by Microsoft. It is used to write ImmutableJS

0

LiveScript is a descendant of Coffescript (which I still have a fondness for) but seems to be taking some inspiration from Purescript/Haskell as well.

0

Got Racket to build in a relatively short amount of time by using the pre-built source package. The default prefix is weird (local to the build location) so remember to set it to be /usr/local if you want it available globally on a machine.

1

An addition to your bash shell that should make the GOPATH bin directory executables directly available.

export PATH=$PATH:$PATH:${GOPATH//:// bin:}/bin

0

An addition to your bash shell that should make the GOPATH bin directory executables directly available.

export PATH=$PATH:$PATH:${GOPATH//:// bin:}/bin

0

It came as a little surprise that Golang is still distributed by Mercurial rather than Git. Had to mentally brush the dust off my hg-fu.

0

Server-sent events seem really exciting.

0

There seems to be three ways of doing async web requests in Clojure: ring-async which uses Jetty's async features, Aleph which passes channels to handlers and HttpKit which obtains the channel once the request is in flight.

0

I have been taking a quick survey of Clojure web frameworks, particularly in terms of their use (or not of asynchronous handlers).

The leading contenders still seem to be Luminus and Caribou. Hoplon seems to be the new Pedestal for completely Clojure development.

I also came across Joodo which seems to be a new framework focussing on middleware features.

So the short summary is that all of these frameworks use Jetty and a lot of their functionality seems bound up with lein ring integration so switching Jetty for HttpKit does not seem trivial.

0

There seems to be some definite convergence in the Javascript sphere after a period of massive experimentation.

Virtual DOM is a clever idea and here to stay, in fact why not turn it into a proper browser standard?

Two-way databinding doesn't scale and just as with any kind of programming scope and dependencies need to be careful managed. One-way event propagation as per Facebook's Flux pattern may not be the final word on this but it massively clear that simplifying and decoupling change is not optional in complex client-side apps.

1

I'm doing a talk next week about Mori the library of immutable data structures for Javascript and this week Facebook releases... a library of immutable data structures.

Cue panicked reading... fortunately both libraries have interesting areas of overlap and difference. Essentially both use hashmap tries to create immutable structures without cloning. Both appear to unify collections into sequences and their related operations. Both aim to provide simple memory-reference comparison for changes in support of virtual doms and reactive event streams. Both avoid intermediate forms an allocation during transformations.

Immutable.js is smaller in scope that Mori though with less operations available on sequences. It has also taken an object-orientated interface approach to expose the functionality on the immutable collection types. This seems to be the major point of difference so far and also seems an odd design choice as it limits its opportunity for composition.

0

Going through the introductions to Angular.JS. On the surface the whole world of factories, controllers and dependency injection seems like a mad trip back to J2EE only this time in Javascript.

Not only that but it's also verbose: angular.controller('ControllerController', ...)

0

The issue with Google's Cloud offering is that they can't see themselves accurately in the market. They, despite the infrastructure they've set up for themselves, are actually a fast-follow late entrant into the market.

It's not good enought to point at the engineering superiority they may or may not have. They have to realise that developers are going to compare them to the total AWS experience as it stands today. Not how AWS was when it originally started.

0

Do programming languages matter?

I think at the very least it is interesting to see that different languages encourage and prevent different behaviours. Depending on the value you put on those behaviours then it is possible to have a value judgement about a programming language that is not purely aesthetic.

0

I'm interested to see Dropbox's new Python JIT Pyston announced. At first I was sceptic about what the value of yet another JIT was (even backed by Guido).

It is interesting to see the directions they are pursuing and it would be good to maybe seem some consolidation in approaches towards a performant general-use Python interpreter.

0

Just been playing around with Julia via this quickstart tutorial and wrote a fib function. Win!

Syntax is very Python with optional typing, and blocks denoted by an end keyword.

0

Disappointed that Mozilla Persona has failed/"transistioned to the community". It was the one federated identity system that felt like it was genuinely dev-friendly.

It is also a shame to see a new entry in the open source, community-support elephant's graveyard.

0

LightTable's support for Python is not as rich as Clojure's Insta-repl. Things only appear in scope for evaluation if they have been previous evaluated and values only change when they are re-evaluated.

It feels somewhere between Insta-repls and iPython.

0

After all the praise at Scale Summit (and from other people I respect) I gave the Docker interactive tutorial a bash.

There were a few subtleties that I hadn't grasped like the way that you can "layer" images in the same way you have git commits on a project. Also the container is linked more intimately to the process it runs than I had imagined.

Looks like virtualisation technologies that might actually be usable by the rest of us. Although only running on Linux 3.8 kernels is a bit of blocker at the moment. I would love this on OSX and allow us to get away from the OSX-Linux disconnect.

0

A few myths about microservices:

  • They have to be HTTP/JSON
  • You can only have one service per app
  • You can only one app per machine
  • They are a new way of creating and deploying services
  • They are well-understood and easy to craft and deploy
  • They are universal solution
  • They are created by the deconstruction of monolithic or unscalable solutions
0

I built my own browser for the first time since Gecko back in the late Nineties, I wanted to give the new Servo build a go.

It built pretty quickly and managed to render a test page but with no CSS or Javascript support it seemed to barf on most actual sites.

0

Starting to play around with React. I found JSX off-putting at first but the reactive paradigm and virtual DOM are pulling me in.

Playing around with the live JSX compiler is also interesting for understand what the value of the syntax sugar is.

reposted to Javascript frameworks
0

Interoperating Java and Akka's expectations of concurrency seems very difficult. I'm not sure that going async by default is a very human-friendly thing to do.

1

I'm not sure I like the inconsistent assignment operators in Go. := is the initialiser operator but then values in mutable collections are assigned with just =

0

I gave Rust a quick go on the weekend. It's more interesting than I thought, I like the idea of everything being an expression and the emphasis on immutable data structures was unexpected but makes sense in light of its co-routine lightweight concurrency.

There is a definite kinship with Go but Rust feels more "modern" at the moment.

Child Streams

Client-side

2 thoughts
updated Nov. 11, 2016, 8:18 a.m.

Ubuntu

5 thoughts
updated Oct. 18, 2016, 9:44 p.m.

Interesting Node modules

6 thoughts
updated Oct. 14, 2016, 8:09 p.m.

Elm

6 thoughts
updated Oct. 2, 2016, 9:53 a.m.

Python

4 thoughts
updated Sept. 24, 2016, 8:46 a.m.

Browser dev tools

1 thought
updated July 14, 2016, 10:20 a.m.

vi editor

2 thoughts
updated July 1, 2016, 10:44 p.m.

Shell

1 thought
updated June 26, 2016, 8:38 p.m.

Scala

2 thoughts
updated April 14, 2016, 11:50 a.m.

CSS

1 thought
updated March 30, 2016, 7:53 p.m.

Julia

2 thoughts
updated Jan. 12, 2016, 11:29 p.m.

Rust

1 thought
updated Jan. 12, 2016, 11:28 p.m.

AngularJS

2 thoughts
updated Jan. 8, 2016, 10:51 p.m.

Typescript

3 thoughts
updated March 15, 2015, 11 p.m.

Clojure

5 thoughts
updated Feb. 14, 2015, 11:35 p.m.

Mercury

6 thoughts
updated Dec. 31, 2014, 5:55 p.m.

Purescript

7 thoughts
updated Dec. 14, 2014, 9:47 p.m.

Omniscient

5 thoughts
updated Nov. 23, 2014, 10:24 p.m.

Javascript frameworks

3 thoughts
updated Nov. 23, 2014, 10:04 p.m.

Haskell

9 thoughts
updated Nov. 9, 2014, 6:19 p.m.

Browserify

3 thoughts
updated Oct. 21, 2014, 10:26 p.m.