« first day (2515 days earlier)      last day (981 days later) » 

6:43 AM
Morning :-)
 
6:55 AM
@FélixAdriyelGagnon-Grenier Although he is unable to configure correct SSLs..
@DenysSéguret It should be, but I ran into issues with in-memory NoSQL DBs quite a few times..
@trentcl That sounds pretty flat to me, a perfect fit for a non-rational DB. And if your team is more comfortable using related technologies, then go with that one. With good enough abstractions on the data models, it should not be too hard to switch between the DB -- even if that would require a short downtime.
 
 
2 hours later…
8:34 AM
@Shepmaster I recall you using macOS. Have you ever looked into tiling window managers? I see that there's Amethyst which seems similar to XMonad on Linux, which I enjoyed using.
 
9:17 AM
Any thoughts on managing multiple Node versions? I'm looking at fnm, which appears to be written in Rust. I'm not sure how that works with Volta, which seems to have much more features, also written in Rust.
I've used nvm in the past, but it didn't meet my expectations regarding speed. It took nvm at least 600 ms when spawning a new shell, taking up 99% of its activity while starting.
 
I've solved my node version problems with docker. Because there were also problems with shits which needs to run globally like gulp, and node modules having compiled dependencies, etc. And I don't expect to use node for anything new, versionning & dependencies are way too much a nightmare
Of course that won't solve your 600ms delay problem
 
I'll try fnm for now!
@DenysSéguret Yes, there is a way to lazily load it, but it's less than ideal :p
 
 
3 hours later…
12:06 PM
To associate a constant to a struct, do you have to create a trait ?
self answer: no
 
12:26 PM
@DenysSéguret No? :wondering:
 
I might have been unclear. What I didn't know is that you can just declare pub consts in your struct's impl block and they will be available as MyStruct::MY_CONST
It looks trivial but I had overlooked this ability. I should probably read other people code
 
12:57 PM
@Jason I honestly don’t know what tiling window managers are, other than that some people really love them.
@Jason I’m lazy and have installed node versions with homebrew and have shell aliases that set my PATH to the correct one
So I just type node14 when I switch into a project
But I only care about major versions effectively
 
1:10 PM
o.o
 
@DenysSéguret yeah used a lot for cool thing like IPV6::LOCALHOST
@Shepmaster why every dev in US use mac
at this point TODAY even windows is better than mac
YES I SAID IT
 
@Stargateur They usually pretend it's for the hardware
(didn't touch a mac in recent decades, don't know how the current OS is)
TBH the programs I make for linux usually run fine on mac, according to my users
 
yes mac is a propriety unix
my point is linux is just better and windows have more open source tool than mac now...
windows is MORE unix than mac today (in philosophy)
 
1:25 PM
People like what they like. I don’t see much point in being angry about their choices.
It does what I want it to do (most of the time, like most computers)
 
1:39 PM
@Shepmaster angry of the choice ? no at all, I angry cause it's not logical. and angry is a little big, I don't care, but it's fun to say it.
start a funny war with mac user is my purpose in life
it's like genesis versus nes
I mean genesis, obviously
because genesis does what nintendont
but also apple promote thing I don't think is good for world
and the more important one is be able to fix it
change part of it easily
an apple computer is probably the worst by far for ecology
 
You wage so many wars in a few lines it's hard to see in what directions you intend to shoot
 
1:58 PM
everyone ?
yeah I'm hard to follow don't worry about what I say hope it's fun thus
 
 
2 hours later…
3:36 PM
@Shepmaster Thanks @Shepmaster and I fully agree. I'm glad there seem to be some options for tiling window managers on macOS. I'll give Amethyst a try.
 
@Shepmaster lol that's epic, I love it :)
I've used nvm when I had to, but in the end I've mostly went with the "always use the latest version", since in my case it generally didn't create massive problems (it is possible I tackled simpler cases)
 
4:27 PM
It works well for me because we put the node version in package.json and something will complain if the version is a mismatch. Then I type a single command
Likewise I don’t start Postgres at startup automatically.
 
 
1 hour later…
5:39 PM
when I need to install a node application I start voodo ritual, doesn't work
 
 
1 hour later…
6:50 PM
if I could have some validity check : volatile basically tells the compiler : "hey this here is side-effected from outside the code don't mess with it" ?
 
7:01 PM
Well, it depends on the language / standard if you wish to be pedantic. E.g. The C17 specification says at 6.7.3p8:
> An object that has volatile-qualified type may be modified in ways unknown to the implementation
or have other unknown side effects. Therefore any expression referring to such an object shall be
evaluated strictly according to the rules of the abstract machine, as described in 5.1.2.3. Furthermore, at every sequence point the value last stored in the object shall agree with that prescribed by the abstract machine, except as modified by the unknown factors mentioned previously.) What constitutes an access to an object that has volatile-qualified type is implementation-defined.
(And there are plenty of other details scattered across the standard.)
 
 
2 hours later…
9:18 PM
@FélixAdriyelGagnon-Grenier "don't mess with it" no
it's mean, don't trust it
the value will be reload EVERYTIME acceded
no cache
no assuption
but no worry unless you are doing some kernel close code, you will never use it, and you should not
 
well that is for the best, this is indeed in the context of kernel code! os.phil-opp.com/double-fault-exceptions/#implementing-start
basically, I am trying to understand exactly why the volatile line does in the following snippet, and what I garner is it tells the compiler that this value can and probably will change, so that it should not try to optimize it away considering it does not change
 
@FélixAdriyelGagnon-Grenier that... what the actual fuck
that a very bad use case
that like... no
don't do that
 
... since you haven't read : of course the blog does not advocate into doing that, it is actually trying to simulate a triple fault exception to write a test for the kernel.
since compiler shenanigans could eventually make the test pass while it should fail by optimizing away the return address write (as far as I understand), the use of volatile makes sure the recursion will happen.
 
just:
fn count(n: usize) -> usize {
    count(n - 1) + 1
}
just do a bad function
 
sure, you are welcome to open a PR to the github of the post!
 
9:24 PM
no need to indroduce volatile for that and volatile could even not produce code that OP expect
compiler is allow to skip the code...
@FélixAdriyelGagnon-Grenier a PR on something that try to simulate undefined behavior ? no thanks
 
... anyway, Peter's comment was pretty much the right sized bit of information I needed to navigate the C standard and get further in all that. Whether or not it's the right thing to do in the blog is way over my head.
 
@Stargateur which undefined behavior?
 
@FélixAdriyelGagnon-Grenier TBF navigating in the C standard is almost impossible for mortal human beings. Which is a massive problem if you ask me, 'cause C developers should know all the nitty-gritty details of what they can and cannot do -- in case they are not targeting very specific hardware. The wording is hard to follow, the information is scattered across the entire document, and sometimes you could find slightly contradicting ideas (especially if you read the foot notes and examples).
But at least it is a starting point, when you need to understand volatile. It could be useful, especially if you do embedded, driver or kernel development. In other cases, it is probably too low-level of a concept for you to worry about.
 
9:44 PM
I find it was an excellent starting point for me because:
1. there was an actual thing to index to (infinitely better than just trying to make sense of the uses of the word "volatile" through surrounding text when ctrl-f)
2. it mentioned the idea of abstract machine
 
:thumbs_up:
 
@PeterVaro or anyone else that uses vim/neovim, do you have a favorite file explorer?
I was just looking at nvim-tree.lua
 
I don't, when I was using kak exclusively, I used kaktree and fzf / skim combo. I'm not using a terminal-based text editor as my daily driver anymore, only for ad-hoc quick editing. (I strongly believe, that GUI is actually a better fit for modern needs -- even if everything else I use is CLI / TUI. And no, I still haven't found the perfect editor yet..)
 
10:07 PM
I wonder a lot, sometimes, as to what angles I still haven't discovered that would make me ache for vim or the likes as I feel other people do. I've been using jetbrains editors since I've learned of them like eight years ago and I find absolutely nothing to want from the likes of vim (which I am totally ok to use when ssh-ing or otherwise interacting with git commands or any cli editing).
is it because I always develop locally?
 

« first day (2515 days earlier)      last day (981 days later) »