u/Biohazard50

140 post karma · 205 comment karma · joined Apr 2013 · moderator

  1. 1points

    u/Biohazard50's circle (reddit.com)

    0 comments · source

  2. 4points

    Why Is This Allowed? (Question About Ownership) (self.rust)

    11 comments

Biohazard50

Hulkengoat

Biohazard50

922853197 Thanks!

Biohazard50

52176648 Thanks!

Biohazard50

52176648

Biohazard50

I got it, thanks!

Biohazard50

I didn't receive anything :(

Biohazard50

Could I get a US referral code please?

Biohazard50

Rolling with 1789

Biohazard50

Unfortunately, DF is single threaded so you will get pretty poor performance with the xeon E5-2697 v4 inside the GFN servers. These CPUs have 18 cores but they are running at 2.3 GHz only (and split between at least 2 or 3 users).

However memory bandwidth and latency are also important for DF performance and I don't know how much we can expect from the servers. It might be interesting to try anyway!

Biohazard50

When working at low temperatures, you actually want the opposite: ypu want the cables to be as cold as possible to reduce thermal noise. If your cables have low thermal conductivity, they will take ages to cool down to your base temperature (with radiative thermal exchanges mostly). On the other hand if your cable conducts heats well, you can clamp it to a cold surface inside the cryostat and cool it down quickly.

What would be huge for cryostat applications was if there was a dielectric with high thermal conductivity. With standard sma cables, the dielectric is made of PTFE and while the outer conductor of the cable is cooled down properly, the core of the cable can remain quite hot because the dielectric acts as insulator. A heat conductive dielectric would also help in designing attenuators that can be properly cooled down (the temperature of the attenuator is critical when trying to reduce the thermal Johnson-Nyquist noise).

Biohazard50

The script doesn't work out of the box on Arch Linux: the command arch doesn't exist, you need to use uname -m (line 20) (which is completely identical and works for ubuntu too I think).

Also you forgot to check for a wayland compositor (around line 159) which means that your script thinks I don't have a graphical interface when I have one (replace grep "xinit" by grep -E "xinit|wayland" and xinit by xinit|wayland line 170).

Otherwise, it worked flawlessly. Good work

EDIT: Please don't use pwd to get the location of the script (line 359), this breaks when the script is not executed from its parent folder, see this page.

EDIT 2: you forgot to actually set the TILES flag to 1 (and the SOUND flag probably) if the user asks for the tiles version (lines 331, 334, 340 and 343).

Biohazard50

Ça me fait un peu bizarre de voir mon prof de latin et de grec sur reddit... Il a également un blog assez intéressant : http://www.laviemoderne.net

Biohazard50

FYI, Legend has posted a follow-up video: https://www.youtube.com/watch?v=UtbxAZ9CoxI.

Biohazard50

TLDW: Legend says he might stop producing total war content in the near future because he's bored with the old games (rome and medieval 2) that he likes, doesn't like the new games and feels like CA is not treating him as they should (no early access, no invitation to preview events...).

Biohazard50

Have you looked at LuaJit or LuaLlvm? I don't think they are written in modern C++ but maybe they will help you squeeze more performance.

Biohazard50

Why should I use meson instead of cmake?

Biohazard50

So lifetimes are transfered in a let binding ... That explains everything. I can finally sleep, thanks.

Biohazard50

I understand that the compiled code will work just fine and that the code respects the safety principles of rust.

But what is the general rule? Could you give me a link to a good in depth explanation of the borrow checker? The book pretends that it is simple but there seem to be many corner cases (think about if/else for example) that are not explained.

I looked at the github repo and there is an explanation in the librustc-borrowck folder but it only considers lvalues and not any value.

Biohazard50

This is part of a course on compilation. I will put it up on Github.com at the end of the year. This is in Ocaml though, so I don't know how useful it will be to you.

Biohazard50

Ok, thanks for the quick answer. This will be useful for the code production part of my compiler.

Biohazard50

Is that in the pdf metadata ?

Biohazard50

Yes

Biohazard50

The system tray merge was less than a week ago but redshift support was added at the end of last year and cursor personalization almost a year agot. If you want an up to date look at sway features, you can go to the github repo.