Skip to content

Instantly share code, notes, and snippets.

@apropos-cast
Last active March 28, 2019 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apropos-cast/6463ecaf19ac2f619409875f8ef04c86 to your computer and use it in GitHub Desktop.
Save apropos-cast/6463ecaf19ac2f619409875f8ef04c86 to your computer and use it in GitHub Desktop.
27 - Apropos Clojure Show Notes

Date: March 28, 2019

Show Notes

Topics

  • 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)

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