<__monty__>
I said similar situations. It can give you fault tolerance in the face of services crashing.
<ldlework>
k
hedning has joined #nixos-chat
hedning has quit [Quit: hedning]
<lejonet>
gchristensen: have you looked any at Elixir in regards to you liking erlang? :P
hedning has joined #nixos-chat
lassulus has quit [Ping timeout: 245 seconds]
Guanin has joined #nixos-chat
<gchristensen>
lejonet: I've used Elixir before. do you like it?
<ldlework>
gchristensen: do you?
<gchristensen>
it was fine, I was patching https://github.com/bors-ng/bors-ng and not developing anything new -- so a lot of headdesking as I learned the ropes
<gchristensen>
it isn't clear to me why I'd pick Elixir over Erlang, though
<__monty__>
gchristensen: Because you're a rails developer and want to ditch ruby? : >
<gchristensen>
that is a great reason!
<gchristensen>
having elixir and rails fit together is very cool
<__monty__>
Do they fit together?
<gchristensen>
I think that they do
<gchristensen>
my understanding is you can replace parts of your rails stack with elixir
<gchristensen>
I learned about elixir at a Ruby conference in like ... 20...13? where that was the impression I got.
<__monty__>
I'd expect you could use it for backend stuff but afaik that's not really rails' territory?
<gchristensen>
rails background jobs are a big thing
biopandemic has joined #nixos-chat
biopandemic has quit [Client Quit]
pie__ has joined #nixos-chat
pie___ has quit [Remote host closed the connection]
drakonis has joined #nixos-chat
lassulus has joined #nixos-chat
<sphalerite>
Idea: suspend-to-disk is evil. Take the opportunity to shut down completely and discard the crufty state.
<gchristensen>
suspend to disk is a necessary evil?
<sphalerite>
is it really?
<samueldr>
I can't wait until storage speed is fast enough that the distinction between memory and storage is blurred and possibly removed, so that "booting" isn't a thing anymore :/
<gchristensen>
yeah, suspend to disk always!
endformationage has joined #nixos-chat
<cransom>
we are much closer to instant-on than we used to be. booting used to be a 3 minute affair.
<cransom>
though. hp servers. looking at you. that's still a 15 minute cold boot.
<gchristensen>
or systems with big raid arrays
<gchristensen>
or a lot of NICs all set to pxe-boot
<gchristensen>
or systems with a lot of CPUs
<gchristensen>
pretty much any server, actually
pie__ has quit [Remote host closed the connection]
pie___ has joined #nixos-chat
<samueldr>
the closer to server-class hardware you are, the longer its POST... my workstation's POST it way longer than [refind, grub, kernel, stage-1, stage-2, X autologin]
<samueldr>
and both refind and grub take longer than they could since they have timeouts!
__Sander__ has quit [Quit: Konversation terminated!]
sir_guy_carleton has joined #nixos-chat
<elvishjerricco>
My desktop's boot time got like 15 seconds worse when I started using Grub's cryptodisk to encrypt /boot :( And then Grub also takes like a full couple of seconds to render its UI on a 4K display.
<lejonet>
gchristensen: well, imo it brings some nice things over pure erlang, even tho its mainly a semantic thing, but the whole "we want to be ruby" syntax thing is really annoying
<gchristensen>
cool
<gchristensen>
later today I'm going to look in to if erlang has an SSH server built in
<gchristensen>
/ as a library
<lejonet>
Honestly tho, anything you can do with elixir, you can do in erlang (because well... elixir is just a thin wrapper over OTP...) but it does so a bit nicer/more modern, syntax-wise
<gchristensen>
is it the reverse, anything you can do in erlang can be done in elixir?
<gchristensen>
I did notice elixir kept the binary comprehensions
hedning has quit [Quit: hedning]
<lejonet>
I would say it goes both ways because the elixir runtime is the erlang runtime :P
<gchristensen>
cool. do you know if there is an ssh server library? :)
<lejonet>
I would be surprised if there isn't, but can't remember of the top of my head
<lejonet>
and one of the nice things with elixir, and also just shows how much of just an addon to erlang it actually is, is that any erlang library is usable in elixir
<gchristensen>
yeah, very cool
<lejonet>
so the view that elixir is "just" a erlang library that is a preprocessor isn't too far from the truth :P
<gchristensen>
until last year the erlang SSL library didn't validate SSL certificates matched the hostname and that left me feeling grumpy for a long time
<qyliss^work>
yikes
<gchristensen>
python's didn't until like 2014 / 2015
<lejonet>
A lot of SSL implementations haven't...
<samueldr>
elvishjerricco: AFAIUI, from a friend's research in the issue, grub's cryptodisk implementation has no HW acceleration
<samueldr>
(I haven't verified it though)
<elvishjerricco>
samueldr: Huh. Surprising that leads to probably a 10x slower decryption time than Linux.
<samueldr>
that's what I saw too, at the time, and what annoyed my friend :)
<lejonet>
its kind of ironic of how much faster hw acceled crypto is
<elvishjerricco>
Why is that ironic?
<samueldr>
the ironic meaning that ironic has now
<lejonet>
Because before the view was that "We can't do crypto in hardware, it will be too slow" :P
<lejonet>
(and before in this context means way, way, way ago)
<lejonet>
also the fact that software people were a bit pretentious in like the 90s, when software was ahead of hardware when it came to squeeze out performance, unless you handcrafted the asm yourself
<__monty__>
How can the view ever have been that purpose built hardware would be slower? Did they take into account R&D and actual hardware production or something?
sir_guy_carleton has quit [Ping timeout: 250 seconds]
<lejonet>
__monty__: arrogance and a tinge of smallmindedness I think mainly
<gchristensen>
especially when software is running on hardwer :P
<elvishjerricco>
Sidenote: What are the chances that homomorphic encryption ever works out?
<elvishjerricco>
My impression is that we barely even have prototypes of that stuff. But it sounds like it'd be a really awesome tech to have.
<gchristensen>
sounds pretty unlikely
<lejonet>
iirc there exists some very, very simple poc's, but nothing even remotely close to usefulness
<gchristensen>
isn't the point of encryption to make the output indistinguishable from noise? how could an operation have meaning on it? it seems the ability to perform a meaningful operation would negate the benefits
<__monty__>
gchristensen: It's super interesting.
<lejonet>
Well, isn't the take on homomorphic encryption more towards integrity and non-repudiation rather than the whole keep stuff sekkrit, even tho that is ofc a vital part of it
<__monty__>
You know what a homomorphism is, right?
<gchristensen>
sure
<__monty__>
Homomorphic encryption can get you: a + b = c <=> crypt(a) + crypt(b) = crypt(c), hence decrypt(crypt(a) + crypt(b)) = c
<samueldr>
ROT13?
Jackneill has quit [Remote host closed the connection]
<__monty__>
Yeah, that's homomorphic when it comes to concatenation : )
<samueldr>
:3
<samueldr>
(yes, I know it's not right, but couldn't resist the temptation)
Jackneill has joined #nixos-chat
<elvishjerricco>
Reading some stuff about this topic: TIL that RSA would be homomorphic with respect to (modular) multiplication if it weren't for some protections that were added to it.
<lejonet>
is there any easy way to tell nixos-rebuild to not care about the kernel atm? 4.14.87 gets some patch for namei to fail, and I kinda want to test a openvswitch improvement :(
<ldlework>
anyone gonna come to roboduels?
<ldlework>
smh
<elvishjerricco>
Huh. Removing the GPU rom from my qemu arguments seems to have fixed my issues... Very weird
<elvishjerricco>
Now to figure out how to poweroff / suspend in synchronization with the VM... Problem #1: I've passed all input to the VM directly, so I have no way to wake the linux system if I suspend it :P