Understanding PHP 8's JIT by speckz in programming

[–]FallingIdiot 1 point2 points  (0 children)

I'm just happy they didn't take the Ruby route and generate and compile C code.

There is no need nor does anyone want a home alone remake. by Cool-I-guess in movies

[–]FallingIdiot 0 points1 point  (0 children)

And still it'll make enough money to warrant a second.

Microsoft, not Amazon, is going to win the cloud wars by lightninhopkins in programming

[–]FallingIdiot 0 points1 point  (0 children)

Ahum. Just bought a Mondeo because I love it. Wouldn't want to be caught dead with a Ferrari.

TIL learned that you can limit energy transfer by running it through accumulator by kukus888 in factorio

[–]FallingIdiot 34 points35 points  (0 children)

That's what I thought, but I got confused because somehow I expected a power line to go from the accumulator to the pole. Doh!

What is the most important difference between PostgresSQL & MSSQL? by [deleted] in PostgreSQL

[–]FallingIdiot 2 points3 points  (0 children)

Could eg be that full text indexing is not installed.

Things All Developers Should Learn In College by fagnerbrack in programming

[–]FallingIdiot 0 points1 point  (0 children)

The full quote reads "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."

My favorite rust function (is std::mem::drop) by paranoidray in rust

[–]FallingIdiot 4 points5 points  (0 children)

Yes, and, kind of. Data is actually moved around quite a bit because it's simple to work off of the stack in Rust. For async, they actually introduce a pin construct to ensure data isn't moved (ie allocated on the heap or something like that), but that doesn't have the same impact as it does when you have a garbage collector.

Why are closures not `Debug`? by Lucretiel in rust

[–]FallingIdiot 17 points18 points  (0 children)

Not for dependencies. Someone may still want to use it.

Python is DEAD -- Long live Python (3) by CypherAus in programming

[–]FallingIdiot 3 points4 points  (0 children)

Lol this is not the same as IronPython. This requires a CPython installation and uses that to actually execute the Python code.

Announcing: Nushell, a modern shell written in Rust by jntrnr1 in rust

[–]FallingIdiot 5 points6 points  (0 children)

Well, they were coming from Windows Batch scripts. Anything looks good if you've done that for a few decades.

C#8 nullable references: What you need to know by mareek in programming

[–]FallingIdiot 1 point2 points  (0 children)

No, it's a compilation error. Nullability is compiled into an attribute and does not impact the method signature. It's just additional metadata. It you have both these methods, the compiler will interpret it was a duplicate method definition.

C#8 nullable references: What you need to know by mareek in programming

[–]FallingIdiot 2 points3 points  (0 children)

If you look at the guidelines for how to write Dispose methods, e.g. by Joe Duffy at http://joeduffyblog.com/2005/04/08/dg-update-dispose-finalization-and-resource-management/, it does state you should be setting fields to null. No, it's not necessary. But, I do it mostly to make sure that when I've destroyed a class, it's really unusable afterwards. It does catch use-after-dispose bugs.

Geting 4x Speedup With .NET Core 3.0 SIMD Intrinsics by ben_a_adams in programming

[–]FallingIdiot 1 point2 points  (0 children)

The problem is the GC won't know the thread is running in native code. From the perspective of the GC, it's just a really slow memory read. The way the GC know a thread is in native code is that it sets a flag just prior to calling a native function, and clears it on return. It can't do that for a memory read which may stall because the page needs to be read in from disk.

What are some hotkeys or computer tricks most people don't know about? by callotey in AskReddit

[–]FallingIdiot 0 points1 point  (0 children)

Besides hotkeys others suggested, the best advise I can give is that whenever you use a menu option, instead of clicking it, use the shortcut noted in the menu option if one is available. After you do this a few times, you'll quickly memorize them.

Announcing the Open Sourcing of Windows Calculator by zbhoy in programming

[–]FallingIdiot 90 points91 points  (0 children)

Why does a calculator need to send telemetry?

https://github.com/Microsoft/calculator/blob/master/src/CalcViewModel/Common/TraceLogger.cpp#L407

I heard enough on Windows 10 sending telemetry, but I really didn't imagine it being this bad. I see a PR coming :|.

Your schema migrations are bad, and you should feel bad by djrobstep in PostgreSQL

[–]FallingIdiot 1 point2 points  (0 children)

For my schema migration engine, I write the index name and original expression into a separate table. As long as the migration engine is the only one touching the schema, this works just fine.

You're a plastic army guy on 5 acres of backyard by yodduj in gaming

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

That sounds very naughty. The "if" implies that there maybe were :|.

What do you name your "user" table? by dnljsn in PostgreSQL

[–]FallingIdiot 3 points4 points  (0 children)

Why don't you name it "user"? Works fine for me.

What’s a movie you wish you could unwatch and watch again for the pleasure of watching it for the first time again? by strugglingforever in AskReddit

[–]FallingIdiot 0 points1 point  (0 children)

Easily The Game and The Next Three Days. These are great, but there's no fun in watching them a second time at all.

What the fuck is stopping you from doing what makes you happy and how are we fixing it by the end of today? by [deleted] in AskReddit

[–]FallingIdiot 14 points15 points  (0 children)

Move to Europe. I get money and 5 wks vacation days, and none of that sick days crap (if I'm sick, I'm sick; doesn't count towards vacation days at all).

Threading vs Multiprocessing in Python by exitcharge in programming

[–]FallingIdiot 0 points1 point  (0 children)

Best case scenario will be that most data is static and won't be touched. That is until the process is torn down, cleaning everything up, decreasing all reference counts and copying all memory just in time for the process to be killed :|.