Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
27 - Apropos Clojure Show Notes

Date: March 28, 2019

Show Notes

Topics

10.0.1 Point release work

  • JIT performance regression
  • Exception printer for uncaught exceptions
  • Java 12 test problems

Google Closure vs WebPack

https://developers.google.com/closure/

https://webpack.js.org/

State of npm modules in ClojureScript

https://clojurescript.org/guides/javascript-modules

Shadow-cljs seems to be the preferred way to do this.

shadow-cljs: http://shadow-cljs.org/

REPL

Multiplication table

Write a program which takes 2 digits, X,Y as input and generates a X,Y matrix as a vector of vectors. The element value in the i-th row and j-th column of the matrix should be i*j.

(matrix 3 4)
;=>  [[0 0 0 0]
;     [0 1 2 3]
;     [0 2 4 6]]

Bonus: extend it to work with any operation, not just multiplication.

(borrowed from: https://github.com/zhiwehu/Python-programming-exercises/blob/master/100%2B%20Python%20challenging%20programming%20exercises.txt)

Show Link: https://www.youtube.com/watch?v=NRjfRAqEfX4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment