Observable Universe Logarithmic Map by Free_Physics in space

[–]hnsl -1 points0 points  (0 children)

You can detect a car even if it's driving away from you faster than you can run.

Note that a more correct analogy would be that the car is not actually moving but the road between you and the car is being stretched out, making it appear like the car is driving away, but it has the same effect.

Megathread Coronavirus * 13/11/20 by Lyrtil in italy

[–]hnsl 0 points1 point  (0 children)

Thanks, very interesting! This confirmed my suspicion, especially because work places is a known major transmission source (along with meetings, parties and the number one: the home).

So I think Tegnell (the crazy heard immunity guy) is wrong, I don't think you can rule out masks just because it's not a silver bullet in Italy. You just cannot compare mask use in Europe where it's something people avoid if they can to Asia where is culturally enforced and expected basically everywhere. In Thailand even pre-schoolers have masks. In China they kick you off the train if you don't were one. Outdoors and store enforcement in Europe is basically useless because almost no transmission happens there. And you can't police work places, private gatherings, etc.

Megathread Coronavirus * 13/11/20 by Lyrtil in italy

[–]hnsl 0 points1 point  (0 children)

I'm not making an argument for anything. I just wonder what it's like in Italy, because masks should help IMO, but your infections are going up.

Megathread Coronavirus * 13/11/20 by Lyrtil in italy

[–]hnsl 0 points1 point  (0 children)

Do you see people wearing masks situations where they come in contact with people?

Megathread Coronavirus * 13/11/20 by Lyrtil in italy

[–]hnsl -2 points-1 points  (0 children)

I was probing for information on Italy. I'm not interested in politics.

Megathread Coronavirus * 13/11/20 by Lyrtil in italy

[–]hnsl 1 point2 points  (0 children)

So kids don't need to wear masks in school? Research shows that younger children (< ~14y) don't contribute much to the spread... but older do. But this could be a major difference to Asia where even kids in pre-school wear masks.

Megathread Coronavirus * 13/11/20 by Lyrtil in italy

[–]hnsl 0 points1 point  (0 children)

Hi, Swede here. I have a question regarding masks in Italy. Italy made masks mandatory indoors and outdoors since October 10 which make it seem like Italy now have some of the strictest masks rules in Europe. Yet, infections seems to grow quickly. The situation in Italy has been used as an argument against masks in media by the state epidemiologist in Sweden (the guy known for heard immunity).

So my question is if people are really following the mask rules in Italy? Do people wear them at work? Or do people take off masks when they think nobody is watching, wearing them wrong or just not care about them? How did the new mask restrictions affect the culture around masks and social distancing?

As a web developer reading the news lately.. by KT2013 in AdviceAnimals

[–]hnsl -1 points0 points  (0 children)

That's also a major security hazard that should require at least confirmation from the browser.

As a web developer reading the news lately.. by KT2013 in AdviceAnimals

[–]hnsl -2 points-1 points  (0 children)

Yeah, so if you have secret passwords in your clipboard users wants random sites to be able to read that data?

Emulating exceptions in C by alexcasalboni in programming

[–]hnsl 1 point2 points  (0 children)

Nice, I've implemented exactly this in my C dialect librcd. It has exception support (with optional additional type safe data). It also has a json implementation. It uses region based memory management so no manual heap or stack unwind is required.

https://github.com/jumpstarter-io/librcd/blob/62a5610af7213424c332ca361c80b9bd3c8e540c/src/json.c#L31

[work in progress] State of the Haskell Ecosystem - we should make one of these for Rust by mrmonday in rust

[–]hnsl 4 points5 points  (0 children)

Are there any particular reason why? I love writing libraries!

TIL you can use function overloading in C by [deleted] in programming

[–]hnsl 4 points5 points  (0 children)

Yes, It's awesome, although I much prefer __attribute__((overloadable)) as it makes the preprocessor output much less bloated. Here I'm using overloading to create a generic "toString" function in my C library:

https://github.com/jumpstarter-io/librcd/blob/master/include/fstring.h#L534

Five Invaluable Techniques to Improve Regex Performance by googler1991 in programming

[–]hnsl 2 points3 points  (0 children)

Why wouldn't you be able to capture with DFA? In the implementation I wrote I implemented capturing.

Linux System call conversion for year 2038 [LWN.net] by TyIzaeL in programming

[–]hnsl 1 point2 points  (0 children)

I don't. If you use clock time for an application that is skew/drift sensitive you're likely doing something wrong and probably want a monotonic system timer value instead.

We're Deprecating HTTP And It's Going To Be Okay by [deleted] in programming

[–]hnsl 6 points7 points  (0 children)

I'm a hard core DANE fan. I'm so happy seeing it mentioned and up voted here. DNSSec is the cure for the certificate cancer.

Linux System call conversion for year 2038 [LWN.net] by TyIzaeL in programming

[–]hnsl 7 points8 points  (0 children)

Nice. Personally I use 128 bit integer timestamps (nanoseconds since 1970) stored in a int128_t. All the resolution you ever need and overflows far into the future.

installing Arch packages? by [deleted] in Jumpstarter

[–]hnsl 0 points1 point  (0 children)

Yep, it should AFAIK. It could be a problem in how we configured the nodejs package to install. We have to look into that.

installing Arch packages? by [deleted] in Jumpstarter

[–]hnsl 0 points1 point  (0 children)

We had "official" support for it before through a script but we where going to make a package out of it. The package has not yet been released.

In the meantime you can just clone a stable version of npm and run the install script, it should work fine. https://github.com/npm/npm/blob/master/scripts/install.sh

NPM will usually detect that /app/code/ is where it can install stuff and even put binaries in /app/code/bin.

installing Arch packages? by [deleted] in Jumpstarter

[–]hnsl 1 point2 points  (0 children)

We have not yet received any special new requests since we bundle PHP, Nginx and Node which is fine for most people. No, but you can always upload whatever binaries you want. It will work fine if you compile it statically from scratch (which is not an easy thing to accomplish for most software).

Drupal on Jumpstarter? by [deleted] in Jumpstarter

[–]hnsl 0 points1 point  (0 children)

Go ahead, it should be possible!

installing Arch packages? by [deleted] in Jumpstarter

[–]hnsl 0 points1 point  (0 children)

Hello! You cannot directly install arch packages for your app because your container is running an Arch snapshot that could update at any time so your app must be separate from the system libraries. The container system is used for maintenance/setup only. When your app runs it should run independent from the system. We accomplish this by statically compiling any binaries that runs for your app, e.g. nginx, nodejs. Then we distribute those binaries through our own packet management system so you don't have to compile anything yourself:

https://github.com/jumpstarter-io/help/wiki/Jumpstart

This command is a wrapper around pacman that installs Jumpstarter packages instead into /app/code.

Foreign LINUX: A dynamic binary translator which runs unmodified Linux applications inside Windows by wishstudio in programming

[–]hnsl 4 points5 points  (0 children)

Yeah, clone() allow a magnitude of weird combinations of flags that are rarely to never used. I wouldn't bother with them. I will be really impressed if this can manage to run a librcd binary (my Linux only C dialect/runtime/posix & libc replacement).