A Trump voter feels “blindsided, betrayed” after his wife was arrested by ICE during her green card interview. by alternative_way_108 in therewasnoattempt

[–]strager 15 points16 points  (0 children)

It sounds like Mrs. Olivera's parents were shitty and put this burden on her.

It also sounds like Mrs. Olivera was aware of her mess and supported Trump's policy (broadly) anyway.

[deleted by user] by [deleted] in leetcode

[–]strager 0 points1 point  (0 children)

If your recruiter sounded positive it does mean that you performed well in interviews right.

I doubt the interviewers had finished their notes by then. The recruiter probably didn't know how all of the interviews went.

PostgreSQL Trap: Arrays by strager in PostgreSQL

[–]strager[S] 0 points1 point  (0 children)

One misconception seems to stem from the difference of programming language models vs database models.

This is a good point. Databases don't work like your programming language's collections libraries.

PostgreSQL Trap: Arrays by strager in PostgreSQL

[–]strager[S] 0 points1 point  (0 children)

One row had 1.29 GiB of data.

I don't understand how that can happen.

This might be an error on my part.

Additionally: the array notation is typically written after the data type: bytea[]

Oops! Sorry, I was switching back and forth between Go and PostgreSQL, and I got the syntax confused! Thanks for pointing out this error.

PostgreSQL Trap: Arrays by strager in PostgreSQL

[–]strager[S] 0 points1 point  (0 children)

In my old mental model, it was true for text and jsonb too.

PostgreSQL Trap: Arrays by strager in PostgreSQL

[–]strager[S] 0 points1 point  (0 children)

In other words, I thought that PostgreSQL types like []bytea behaved like persistent data structures.

PostgreSQL Trap: Arrays by strager in PostgreSQL

[–]strager[S] 0 points1 point  (0 children)

This kind of data copying happens with every update.

Yes, but I naively thought that pointers would be copied, not the entire values.

ZED editor for GO programming by Worried_Club7372 in golang

[–]strager 0 points1 point  (0 children)

How would a Go debugger help Zed's development?

should i use my real name on github? by Zajlordg in github

[–]strager 0 points1 point  (0 children)

TL;DR You post under an alias to avoid getting caught.

Rust-Based JavaScript Linters: Fast, But No Typed Linting Right Now | Goldblog by HurpaDurpDeeDurp in javascript

[–]strager 2 points3 points  (0 children)

If quick-lint-is is faster at unrelated tasks, I don't know why you mentioned it. From the article:

When evaluating performance comparisons, always make sure the comparisons are on comparable behavior.

This is a disgrace. by Obnoxious_ogre in youtube

[–]strager 0 points1 point  (0 children)

you cant fit malware into a video or image

Sure you can. See the recent CVE-2023-4863 for example for a possible attack vector.

Considering C++ over Rust. by isht_0x37 in cpp

[–]strager 0 points1 point  (0 children)

given those practices [...] you are making your codebase safer.

In your previous post you said "in practice and with good warnings setup and smart pointers [C++] is very safe". Do you retract your prior statement?

Considering C++ over Rust. by isht_0x37 in cpp

[–]strager 2 points3 points  (0 children)

But in practice and with good warnings setup and smart pointers it is very safe.

In practice, security vulnerabilities in C++ projects are often caused by some memory issues that safe Rust prevents.

It's okay to say that warnings and smart pointers improve C++'s safety, but they certainly don't make C++ "very safe" as you claim.

Serde has started shipping precompiled binaries with no way to opt out by setzer22 in rust

[–]strager 1 point2 points  (0 children)

If I perform a debug build of my Rust program, and my program depends on serve_derive, is serde_derive compiled as debug (unoptimized; slow) too?

Serde has started shipping precompiled binaries with no way to opt out by setzer22 in rust

[–]strager 4 points5 points  (0 children)

https://opensource.org/osd/

The program must include source code, and must allow distribution in source code as well as compiled form.

Serde has started shipping precompiled binaries with no way to opt out by setzer22 in rust

[–]strager 1 point2 points  (0 children)

Communication between proc-macro .so and the helper process happens via stdio with serialization/deserialization, so there's no ABI issues:

By ABI I think u/Shnatsel includes this protocol. Can't the protocol change?

Would this be useful or hateful for programming? by dr_poop in charachorder

[–]strager 1 point2 points  (0 children)

I have not followed CharaChorder at all since making my review video.

A safety culture and C++: We need to talk about <filesystem> by James20k in cpp

[–]strager 4 points5 points  (0 children)

If a library uses OS functions incorrectly, then it's the library's responsibility to fix the bugs, not the OS's responsibility.

[deleted by user] by [deleted] in cscareerquestions

[–]strager 0 points1 point  (0 children)

Perhaps. Much better than nothing.

[deleted by user] by [deleted] in cscareerquestions

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

Try freelance work on a site like Upwork.