Fork me on GitHub
#off-topic
<
2017-06-04
>
souenzzo00:06:41

Anyone using intel optane+linux? How great is the performance?

qqq01:06:20

What is Optane? I read a few blurbs on Google, and it seems like it's combining RAM with SSD ?

qqq01:06:23

I don't get what it does.

souenzzo02:06:23

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...

qqq02:06:20

I read it's price is between RAM and SSD. If that is the case, what advantage is there to using it as SSD ?

qqq15:06:46

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.")

mobileink19:06:31

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.

noisesmith19:06:44

isn't that how you get let when your language forgot to include let ?

mobileink19:06:39

or ((fn [doc] ...) foo)?

noisesmith19:06:10

well, that's how you do let without let in clojure, sure

mobileink19:06:08

it's all about the parens. simple_smile at least clojure is consistent.

qqq19:06:55

My current emacs key bindings works wonderfuly on anytying with () [] {} and is terrible to use on anything else.

adamvh20:06:02

what are these keybindings like

mobileink20:06:47

adamvh: i think he was making a joke, but you never know.

qqq21:06:07

no, I 'm serious (instead of making fun mobileink) this time around

qqq21:06:23

it's mostly paredit + jumping to () / yanking () keys

qqq21:06:33

so for example, I have ace-jump to any ( in current window

qqq21:06:43

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 (

dominicm21:06:46

That's caused me about 30m of confusion with a simple counter example.

mobileink21:06:02

@dominicm: will you please forgive me for having a good laff about that?

dominicm21:06:19

That's no problem at all 🙂 I shared it for a good laugh

mobileink21:06:35

(it's not like i've never spent hours figuring out clojure wierdness. it just seems less random, heh.)

noisesmith21:06:32

I remember some of my first ones - like (:foo (atom {:foo "bar"})) - > nil

qqq21:06:57

"101" + 1 - 1 = "1010" // rip people writing optimizations paths over javascript

noisesmith21:06:12

fun fact: (:foo (ref {:foo "bar"})) =>` nil` ((ref {:foo "bar"}) :foo) => "bar"

mobileink21:06:07

dude you should make a blog post of these little nuggets. like the fixed pt thing the other day.

joelsanchez21:06:22

http://alf.nu/ReturnTrue a game that you win by figuring out weirdnesses in JS

mobileink21:06:11

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?

joelsanchez21:06:06

So simple and powerful that, to support JSX, you need Babel

joelsanchez21:06:08

Amazing language

dominicm21:06:02

Babel = bolted on macros in a way I guess 🙂

joelsanchez21:06:45

Even if JSX was possible without Babel, JSX is kinda ugly, but that's another thing 🙂

joelsanchez21:06:55

JS has some great things compared to other languages though

joelsanchez21:06:10

First-class functions is not that common out there

noisesmith21:06:36

c has first class functions

mobileink02:06:56

noisesmith: huh? C doesn’t even have functions.

noisesmith03:06:18

so what do you call the thingies that the documentation for the c language calls functions?

jsa-aerial17:06:55

procedures? 😐

mobileink18:06:46

procedures, routines (I think Knuth calls them routines, as in co-routines)

noisesmith21:06:12

it's not like you can make them at runtime, and they aren't closures, but they are first class

joelsanchez21:06:31

Closures are another nice feature, and the prototype model is interesting , could have been great changing some very annoying things, idk

joelsanchez22:06:39

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/

qqq22:06:26

i read somehwere javascript originally looked like scheme

qqq22:06:31

but they they wanted it to look like java

qqq22:06:35

and that's how we got javascript