HackerTrans
TopNewTrendsCommentsPastAskShowJobs

TinkersW

no profile record

comments

TinkersW
·7 เดือนที่ผ่านมา·discuss
Oh my bad, I read that as nullptr, I use a custom optional that does not support such a silly mode as "disengaged"
TinkersW
·7 เดือนที่ผ่านมา·discuss
That is actually memory safe, as null will always trigger access violation..

Anyway safety checked modes are sufficient for many programs, this article claims otherwise but then contradicts itself by showing that they caught most issues using .. safety checked modes.
TinkersW
·8 เดือนที่ผ่านมา·discuss
Error Log/assertions prints are by are the most likely code to have not been run prior. Some compilers type check printf, but not all.
TinkersW
·8 เดือนที่ผ่านมา·discuss
Good article, but for profiling you are missing the big daddy of them all, Tracy.
TinkersW
·8 เดือนที่ผ่านมา·discuss
I my experience you absolutely must have type checking for anything that prints, because eventually some never previously triggered log/assertion statement is hit, attempts to print, and has an incorrect format string.

I would not use iostreams, but neither would I use printf.

At the very least if you can't use std::format, wrap your printf in a macro that parses the format string using a constexpr function, and verifies it matches the arguments.
TinkersW
·8 เดือนที่ผ่านมา·discuss
My understanding is Rust compiles each crate in the same way C++ compiles each .cpp file, so if you stick everything in a single crate you get horrible compile times.

This does seem like a poor design decision by Rust to me, forcing people to break things into arbitrary crates just to get reasonable compile times.

It also seems like a disaster for incremental compilation.
TinkersW
·8 เดือนที่ผ่านมา·discuss
The android team wasn't comparing like to like, though people seem to gotten the impression they were.
TinkersW
·8 เดือนที่ผ่านมา·discuss
OpenAI appears to have bought the DRAM, not to use it, as they are apparently buying it in unfinished form, but explicitly to take it off the market and cause this massive price increase & squash competition.

I would call that market manipulation(or failure if you wish)--in a just society Sam Alton would be heading to prison.
TinkersW
·8 เดือนที่ผ่านมา·discuss
FEX is a CPU JIT, so your GPU settings are irrelevant to it, it is translated but not by FEX, and there is no real perf hit for the GPU

The old games don't really matter with regards to FEX perf, so the only relevant bit is the semi newer games at 30/40 fps, which seems very slow to me, given that you are only running at 1080p/Medium, so you likely have a CPU bottleneck there.
TinkersW
·8 เดือนที่ผ่านมา·discuss
One other accident that was similiar, but these planes have had a ton of crashes for other reason.
TinkersW
·8 เดือนที่ผ่านมา·discuss
I am surprised Intels server chips can only do 2 AVX512 ops per cycle, that is rather sad given how long they have supported it in server chips, and I hope isn't a sign of things to come with Nova Lake.
TinkersW
·8 เดือนที่ผ่านมา·discuss
Nova lake looks potentially pretty good, AVX512/APX and very very high core count, so maybe we will see AMD have some competition next year.
TinkersW
·8 เดือนที่ผ่านมา·discuss
The article is simple wrong, dithering is still widely used, and no we do not have enough color depth to avoid it. Go render a blue sky gradient without dithering, you will see obvious bands.
TinkersW
·8 เดือนที่ผ่านมา·discuss
The python example looks fixable with a reentrant mutex, no idea if that translates to the Rust issue.
TinkersW
·8 เดือนที่ผ่านมา·discuss
Ya ever heard of this thing called a debugger? They have this amazing ability to show you what the problem is right when it happens!
TinkersW
·8 เดือนที่ผ่านมา·discuss
I think memory safety is fine, but I plan to do it in C++ not Rust-- nothing in this article is remotely new either, just repeating the same tired stuff.

It seems pretty clear statistical hardware level memory safety is coming(Apple has it, Intel/AMD have a document saying they are planning to add it), the safety zealots can turn that on, or you can use FilC if you need absolute memory safety, but really C++ with various hardening features turned on is already fairly solid.

Also I think that memory safety is generally less important than thread safety(because memory safety is rather easy to achieve and detect violations), which almost all those languages recommended by this article blow chunks at. Rust could actual make a solid argument here, instead of wasting time yammering about memory safety.
TinkersW
·8 เดือนที่ผ่านมา·discuss
The author refers to casting ints to floats but seems to actually be talking about converting. Casting is when you change the type, but don't change the data..

I don't really think much of Zig myself for other reasons, but comptime seems like a good design.
TinkersW
·8 เดือนที่ผ่านมา·discuss
If you had read like even the basic part of that article you would know that && is not a pointer to a pointer.

Anyway C++ isn't as complicated as people say, most of the so called complexity exists for a reason, so if you understand the reasoning it tends to make logical sense.

You can also mostly just stick to the core subset of the language, and only use the more obscure stuff when it is actually needed(which isn't that often, but I'm glad it exists when I need it). And move semantics is not hard to understand IMO.
TinkersW
·8 เดือนที่ผ่านมา·discuss
So you have to write fugly code just to get something that should be a compiler switch?
TinkersW
·9 เดือนที่ผ่านมา·discuss
My experience was that every game ran.. but also nearly every game had issues with controls being different than Windows(mouse sensitivity was way off), control pad not working, screen or font scaling issues, and full screen wonkyness.

Somehow changing the font scaling in Linux caused the game to be scaled by a similiar amount.. so 2x font scaling = full screen is 2x bigger than actual monitor.. and I can only see 1/4th the screen.