News for hackers. Stuff that matters.

varajelle

Re:US Marines Defeat DARPA Robot by Hiding Under a Cardboard Box on Wednesday January 25, 2023 @10:29PM (#34527381)
It's like predicting that flying will never be a mode of transportation while laughing about Wright brothers's planes crashing
Re:Sudo Replacement on Saturday January 21, 2023 @12:28PM (#34468097)
If I'm not mistaken, especially with x11, it is trivial to install a keylogger without root password. Just a process in the background that listen to your keys and send them over the wire. (And you can add that program in the list of program to run while logging in)
Re:Sudo Replacement on Saturday January 21, 2023 @03:01AM (#34464762)
I was thinking the same. But then I thought about it more and wondered why you need to enter your own password if you're already logged on. If an attacker is already in the system, it can install key logger and whatnot without the root password. And the xn--ts9h program can have the Unix permission so that only the user can run it.
Re:Rust in 2023: Growing Up on Friday January 20, 2023 @01:58PM (#34457961)
I don't understand this website and why it always get linked. It's just a list of a bunch of crates unsorted. Most of them are unmaintained, or just early prototypes. There isn't a good comparison of all these crates
Re:Using Qt 6 under LGPLv3 on Sunday January 08, 2023 @04:25AM (#34297481)
> I don't even understand how is that possible, since Qt Creator is GPL3.

Because doing so would be violating the terms of the commercial Qt license you paid for.

Re:C++ vs. Rust Build Times on Friday January 06, 2023 @04:09AM (#34272619)
Regarding the sloc count, the default automated Rust formating tool is very eager to adds lot of lines by basically keeping only one word per line. Something I'm not a fan of, I must say.
Re:Japan to invest on nuclear energy in major policy shift on Thursday December 22, 2022 @12:20PM (#34095812)
I mean, there might be effect, but do you have a quantification of these. Like maybe you get 0.1% more likely to catch cancer if you eat these mushroom, but when you compare that to the 300% more likely if you smoke then I think you're safe.

Why do we allow smoking but are scared of low dose radiations?

Re:Japan to invest on nuclear energy in major policy shift on Thursday December 22, 2022 @12:10PM (#34095689)
> 150k people had to leave their homes because they were not safe.

The fact that they were not safe is disputed. There are claim that there was some over-reaction and that the evacuation was actually counter-productive.

Re:Welcome to Comprehensive Rust on Thursday December 22, 2022 @11:46AM (#34095357)
For GUI programming, you can use a toolkit that have a preview extension that updates in real time as you type. For example, Slint does that.
Re:Stanford's “Elimination of Harmful Language” Initiative on Tuesday December 20, 2022 @01:30AM (#34062361)
Yes that's right. The thing is that people have been using the term OCD as a pejorative term for someone who is "detail oriented" and that need to be avoided. (When not referring to the disorder specifically)
Re:AI breakthrough ChatGPT raises alarm over student cheating on Monday December 19, 2022 @05:30PM (#34058696)
I think it's the same reason why we are teaching assembly even if there are compilers. Or teaching Latin even though it's a dead language
Re:Sorting with SIMD on Saturday December 17, 2022 @10:51PM (#34034889)
Nice article, but there are many errors or typo that makes it hard to follow. (Is it a typo or do I not understand that part) For example, his use of 'unsafe': why functions that don't take pointer are declared as unsafe? Also taking a pointer of an array shouldn't need unsafe. Is 4 > 8 ? Missing close ']'. And that's just the one I see.

I haven't tried compiling the code example, but I don't think they do.

Re:Does It Inline? on Saturday December 17, 2022 @10:25PM (#34034772)
'comptime' only works if all arguments are known at compile time and the function can be evaluated at compile time. This is not the same as inlining, which puts the body of the function in the caller and remove the call. (And then do further optimisations such as const propagation)
Re:End-to-end encrypted messages need more than libsignal on Saturday December 10, 2022 @05:27AM (#33931477)
With BSD, you're giving every company the right to take your code and use it without returning any favour at all.

With the CLA it's the same. But at least Signal give back by still providing libsignal as free software.

It depends on your motivations for contributing. If you don't like the CLA or any other things, you can still fork. Even if it may not be compatible with your own motivations, it is still in the spirit of free software.

Re:A mediocre Dutch artist cast 'the forger's spell' (2008) on Tuesday December 06, 2022 @01:16AM (#33876488)
I don't really understand this ethical framework. What can be done with these paintings? Must they be destroyed, or anything else is "profiting off victims of Nazis"?
Re:How much does Rust's bounds checking cost? on Thursday December 01, 2022 @02:55PM (#33821795)
Yeah, but the compiler need to see through all the functions to find out that there is no const_cast and therefore makes const useless because it could as well see it is not modified. Also it needs to be good at alias analysis.
Re:How much does Rust's bounds checking cost? on Thursday December 01, 2022 @01:53AM (#33813167)
And event const can't in general be used for optimizations (because there can be another reference to the same location, or one can just const_cast)
Re:How much does Rust's bounds checking cost? on Thursday December 01, 2022 @12:50AM (#33812842)
> This may come down to how good the language is at capturing desired semantics in a library. Rust still has a long way to go to catch up with C++ on this axis, and C++ is not waiting around.

What catch up does Rust need to do?

Rust has slice that know the size of its data built in the language, while C++ doesn't. And Rust has stricter const and mutability rules that facilitates optimizations.

As for the implementation, Rust use LLVM which is also the backend used by one of the popular C++ compiler.

Re:Soursop and Ponies in Kona: A C++ Committee Trip Report on Sunday November 27, 2022 @02:02PM (#33765571)
Exactly what C++ to C at the beginning https://en.m.wikipedia.org/wiki/Cfront
Re:Soursop and Ponies in Kona: A C++ Committee Trip Report on Sunday November 27, 2022 @09:50AM (#33763277)
CppFront is a different project entirely. It's like saying C++ is C's future
Mass is energy
> its rotation will stay at exactly 24 hours.

The earth rotate around itself in 23 hours and 56 minutes

https://en.m.wikipedia.org/wiki/Sidereal_time

Re:LeanQt – GUI is here, Widgets are near on Saturday November 12, 2022 @04:37PM (#33577363)
There is also Slint: https://github.com/slint-ui/slint which is written entirely in rust. The UI is fairly similar to Qml. And you can have the logic in Rust or in C++.
Re:LeanQt – GUI is here, Widgets are near on Saturday November 12, 2022 @12:22PM (#33575065)
Why compiling on the pi, instead of cross compiling?
Easy: just learn Mandarin /s
And plastic is not safe?
Re:We've filed a lawsuit against GitHub Copilot on Friday November 04, 2022 @02:44AM (#33462977)
Oh no, I'm not using the entire input, just a few functions of interest. And not the copyright headers of course.
Re:We've filed a lawsuit against GitHub Copilot on Thursday November 03, 2022 @07:00PM (#33459161)
I take your code and I compress it in a tar.gz file. Il call that file "the model". Then I ask an algorithm (Gzip) to infer some code using "the model". The algorithm (gzip) just learned how to code by reading your code. It just happened to have it memorized in its model.
Re:The pool of talented C++ developers is running dry on Thursday November 03, 2022 @11:19AM (#33452382)
Do you have actual technical explanation? (other than argument of authority)
I think Wayland is fairly safe, but any X11 client can take screenshots or listen to the keyboard, or emit keyboard event, without limitations.

Older »