This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-04
Channels
- # aws (3)
- # beginners (63)
- # boot (10)
- # cljs-dev (14)
- # cljsrn (10)
- # clojars (4)
- # clojure (132)
- # clojure-nl (4)
- # clojure-spec (3)
- # clojure-uk (1)
- # clojurescript (206)
- # css (3)
- # datascript (5)
- # lein-figwheel (1)
- # leiningen (1)
- # off-topic (48)
- # re-frame (18)
- # reagent (29)
- # specter (4)
- # untangled (1)
- # yada (1)
What is Optane? I read a few blurbs on Google, and it seems like it's combining RAM with SSD ?
It's a cache device, intel default behavior should use it as RAM (aka you dont choose what is in it). But I see in some foruns that you can use as storage unit too...
I read it's price is between RAM and SSD. If that is the case, what advantage is there to using it as SSD ?
Capital Letters = machines. 1. I am on A. 2. A can ssh into B. 3. B can talk to machine C. If I Just want to forward one port of C to A, I can do ssh -L ... me@B However, what I want, is to create a "phantom machine D" on local network, where A talking to D on port p gets routed (via B) to talking to machine C on port p. Is this possible? (I want to "ssh forward an entire machine, not just a single port.")
for the next time somebody claims js is a great language:
(function(document){... blah blah}).(document)
https://toddmotto.com/what-function-window-document-undefined-iife-really-means/
i rest my case.isn't that how you get let
when your language forgot to include let
?
well, that's how you do let without let in clojure, sure
My current emacs key bindings works wonderfuly on anytying with () [] {} and is terrible to use on anything else.
then I have another key combo which is 1) record current cursor position 2) ace-jump-like to any other ( 3) deelte until corresponding ) 4) insert back at origial cursor position [this is really useful for refactoring, asx you can be wriitng code, look at another sexp on the screen, and yank it over in about 4-5 keystrokes, "d," to start the yank-sexp, then up to 3 to specify the (
(it's not like i've never spent hours figuring out clojure wierdness. it just seems less random, heh.)
I remember some of my first ones - like (:foo (atom {:foo "bar"}))
- > nil
fun fact: (:foo (ref {:foo "bar"}))
=>` nil`
((ref {:foo "bar"}) :foo)
=> "bar"
dude you should make a blog post of these little nuggets. like the fixed pt thing the other day.
http://alf.nu/ReturnTrue a game that you win by figuring out weirdnesses in JS
interesting: https://medium.com/@endigo9740/why-javascript-sucks-from-someone-that-loves-it-94d0c5777e42 but note "the power and simplicity of javascript" (emphasis added). really?
So simple and powerful that, to support JSX, you need Babel
Amazing language
Even if JSX was possible without Babel, JSX is kinda ugly, but that's another thing 🙂
JS has some great things compared to other languages though
First-class functions is not that common out there
c has first class functions
so what do you call the thingies that the documentation for the c language calls functions?
procedures? 😐
it's not like you can make them at runtime, and they aren't closures, but they are first class
Closures are another nice feature, and the prototype model is interesting , could have been great changing some very annoying things, idk
Did you know that we could have Lisp as CSS but it was "too powerful"? https://eager.io/blog/the-languages-which-almost-were-css/