Readit News logoReadit News
carbotaniuman commented on A Short Introduction to Automotive Lidar Technology   viksnewsletter.com/p/shor... · Posted by u/kayson
tgaj · a year ago
Theoretically if a human can drive a car using a pair of eyes connected to brain, it should be possible to do that using two cameras connected to some kind of image processing unit.
carbotaniuman · a year ago
Theory isn't really all that applicable to this though - in theory nothing is stopping anyone from writing all code in assembly, but obviously that doesn't happen.

I think more practically cars have adding driver assistance feature for a while now - more cameras, blind spot monitoring, ultrasound for parking, lane drift indicators.

It is therefore not unreasonable to assume that adding more sensors is helpful (but even the old adage of more data is better than less would probably say that).

carbotaniuman commented on Retrofitting spatial safety to lines of C++   security.googleblog.com/2... · Posted by u/jandeboevrie
dataflow · a year ago
> Cool, let me know how to improve the code security on my vendor compiler then, I'll be waiting.

Switch to std::span and add 1 line to std::span::operator[] to check your bounds...

carbotaniuman · a year ago
I don't think std::span is bounds checked. Try again.
carbotaniuman commented on Retrofitting spatial safety to lines of C++   security.googleblog.com/2... · Posted by u/jandeboevrie
dataflow · a year ago
> I've used vendor-specific C++ compilers with no bounds checking and a barely conforming stdlib, so by your logic C++ has zero bounds checking...

I literally said exactly that: "The standard doesn't require any checks to begin with."

> Defaults matter!

Sigh... nobody claimed otherwise. You're really missing the point of the thread.

All I did was give people a tip on how to improve their code security. The exact sentence I wrote was:

>> "If you want bounds checking in your own code, start replacing T* with std::span<T> or std::span<T>::iterator whenever the target is an array."

"BUT DEFAULTS MATTER!!!", you rebut! Well OK, then I guess keep your raw pointers in and don't migrate your code? Sorry I tried to help!

carbotaniuman · a year ago
Cool, let me know how to improve the code security on my vendor compiler then, I'll be waiting.
carbotaniuman commented on Retrofitting spatial safety to lines of C++   security.googleblog.com/2... · Posted by u/jandeboevrie
dataflow · a year ago
> It does, on explicitly bounds-checked accessors like .at, which span is gaining for C++26.

When I said "the standard doesn't require this" I clearly was not referring to C++26, which does not even exist yet. In any case, I'm not sure what the point of this pedantry is. I'm pretty sure the point was clear.

> But you originally implied using span was sufficient, you didn't mention LLVM's libc++ hardening.

Because this isn't LLVM-specific, every major STL has bounds checking. You just gotta enable it for your toolchain. Sorry I didn't list every single flag, I guess?

> (You even mentioned iterators which, I just quoted, might not be bound-checked on fast mode either.)

Which is why I had _LIBCPP_ABI_BOUNDED_ITERATORS, right? I'm not on HN to write comprehensive documentation for every toolchain, I'm just writing a quick tip for people to look into.

All this pedantic quibbling over "this isn't required by the standard by default" is just pointless arguing for the sake of arguing on the internet. For all the performance freaks who really care about this: no language I know of guarantees optimizations in the standard, so if you're relying on optimized performance, you're already doing nonstandard stuff.

And practically every major compiled language you love or hate has a way to enable or disable bounds checking, letting you violate their "standard" one way or another. D itself has -boundscheck, C++ has toolchain-specific flags, Go has -gcflags=-B, etc...

carbotaniuman · a year ago
I've used vendor-specific C++ compilers with no bounds checking and a barely conforming stdlib, so by your logic C++ has zero bounds checking... Defaults matter!
carbotaniuman commented on Retrofitting spatial safety to lines of C++   security.googleblog.com/2... · Posted by u/jandeboevrie
tialaramex · a year ago
Some people believe that the Church-Turing intuition doesn't tell us anything about humans, that what humans are doing isn't computation but something more powerful. In my experience their lack of evidence for this belief just makes them believe it even harder, and they often write whole books which are in effect the argument from incredulity but expanded to book form.
carbotaniuman · a year ago
There is no proof that humans are just glorified Turing machines and even as a nonreligious person, I find such a statement to be as lacking in evidence as those that claim humanity has some soul or similar that cannot be replicated.

The actual logic of gggp's statement also doesn't make any sense. We as humans also under and overestimate the soundness of programs.

Sometimes, a perfectly fine solution is massaged to better adhere to best practices because we can't convince ourselves that it's correct. Rust requires that we convince the compiler, and then we know it's correct via the compiler's proofs, instead of requiring us to do the proof all the time.

carbotaniuman commented on Show HN: CNC Microscopy for Fun   anfractuosity.com/project... · Posted by u/anfractuosity
shadowpho · a year ago
Piracy is not a technical definition but a legal one.

If you zip/print/scan/ocr/train ML on/restore from ML its still piracy even though none of the pixels are directly transferred.

carbotaniuman · a year ago
The ML one seems to not be piracy from a legal POV.
carbotaniuman commented on Show HN: Io_uring for Ruby   github.com/digital-fabric... · Posted by u/ciconia
slashdev · 2 years ago
The whole point of IO uring is to be fast by reducing the number of system calls per request.

If you then process your requests in the slowest programming language, you add back at least 100x the overhead.

It doesn’t make sense to me.

carbotaniuman · 2 years ago
One way you can think of this is speeding up the "slowest programming language". And removing/reducing blocking calls has benefits for languages like Ruby too.
carbotaniuman commented on Rubi: Symbolic integrator based on an extensive system of integration rules   rulebasedintegration.org/... · Posted by u/ducktective
chongli · 2 years ago
There is no general algorithm to symbolically compute all integrals. All we have are partial algorithms which consist of big rulebooks for the cases we’ve already solved.

It also turns out we can’t even verify, in general, the result of integration:

Suppose you are given two functions, f(x) and G(x), and are told that G(x) is an antiderivative of f(x). So then you let g(x) = G’(x), the derivative of G(x).

Now if G(x) is truly an antiderivative of f(x) then we must have g(x) = f(x) but unfortunately the problem of determining whether two functions are equal is undecidable (a consequence of the halting problem).

carbotaniuman · 2 years ago
Does the functional equality being impossible to determine thing work for math problems? I know it works for computable functions, but math functions are pure and total so it seems easier.
carbotaniuman commented on Arrest of Pavel Durov, Telegram CEO, charges of terrorism, fraud, child porn   decripto.org/en/arrest-of... · Posted by u/toss1
whimsicalism · 2 years ago
i should be allowed to watch whatever state propaganda i want, i'm a big boy

15 years ago in the US this would have been uncontroversial

carbotaniuman · 2 years ago
I'm sure the US government would have been real keen on you reading Kremlin news source 40 year ago...
carbotaniuman commented on Why isn't Apple attacking the enterprise market?    · Posted by u/edgefield
greenthrow · 2 years ago
What product are you envisioning that Apple doesn't offer? Rackable compute? Not worth their time.

Look at the products they make. They try to make stuff that targets the widest market possible; everybody. They try not to go for niche markets.

carbotaniuman · 2 years ago
This is from the company that just made the Apple Vision Pro. I don't see any reason they couldn't do limited forays into enterprise.

u/carbotaniuman

KarmaCake day150February 25, 2021View Original