HNHacker News
TopNewBestAskShowJobs

rwbt

1,004 karma · joined November 6, 2012

submissionscomments
rwbt··on What Car Thieves Think of the Club (2010)
The mid-late 90s Civics and Del Sols are highly sought after among Honda fans! The ones with B18 VTEC motors even more so. That's why your cars were stolen despite having a stick shift.

It's even worse for the Honda CRX.

rwbt··on Doctors Are Fed Up with Being Turned into Debt Collectors
In any industry that involves insurance companies predominantly paying bills, will eventually lead to out of control costs (health, auto collision repair etc)

Higher the costs, more incentive (or mandatory) for users to buy insurance and also more profits to insurance companies.

rwbt··on C2x: the next real revision of the C standard
I think constexpr is a great feature. But without templates (or meta programming in general) I feel like it's severely limited in it's uses (although you cite a great use case). Adding templates is another whole can of worms (for templates to be really useful, add operator overloading too? so on..)
rwbt··on C2x: the next real revision of the C standard
I hope they make real progress on improving the C language, not just slap on yet another library/header to the standard lib (cough.. <complex.h> ..cough).
rwbt··on C2x: the next real revision of the C standard
Yep, it was made jokingly trying to make a point about the slippery slope of 'bloat'. But didn't go that well.
rwbt··on C2x: the next real revision of the C standard
I think having a primitive templating system would also reduce the usage of macros. While we're at it throw in AST macros too.
rwbt··on Yelp craters 30% as advertisers abandon the site
This might not be helpful, but I decided to rely on serendipity. Sometimes I feel like we think too much about finding the best of the 'best' and we rely on expert opinions of the crowd instead of taking a chance ourselves and trying out new things.
rwbt··on Mio – Cross-platform header-only C++11 library for memory-mapped file IO
For those of you already using Boost, Boost also has a MMAP in their IOStreams library and it works pretty well (like most things boost).

https://www.boost.org/doc/libs/1_68_0/libs/iostreams/doc/cla...

rwbt··on Tiddlywiki – A non-linear personal web notebook
TiddlyWiki is great, but I really need is something like Notational Velocity but everything is stored in a single html file (with .js embedded of course), so that it's very portable.
rwbt··on Perkeep: personal storage system for life
I've recently started using Fossil[0] to archive all my personal data. It works rather brilliantly. Technically you can use any VCS but Fossil is unique in that the entire repo is a single SQLite db, so it's very easy to backup and restore. Not to mention the web UI to have a quick glance before checking out any files. Even better I can sync flawlessly between multiple hard drives and computers. I've a few separate branches for Docs/Photos etc. I checkout the related branch and just add more files whenever needed. After files are added to the repo, I just remove the working copy. There are some limitations though like files larger than 2GB aren't supported.

[0] - https://www.fossil-scm.org/

rwbt··on How America lost its love for the stick shift
Yeah, it kinda took me by surprise too. One would think the Toyobaru twins along with the MX5 would have a lot higher manual transmission sales.
rwbt··on Edmunds Tesla Model 3 Long-Term Road Test Update for April
> More importantly is when lateral grip finally breaks there is no warning to the driver with a cocked wheel and gentle progression: it just lets go.

This honestly depends on the tires. A lot of performance tires lose grip very gradually. Don't know what tires the Model 3 comes with, but with a good set it shouldn't be an issue.

> As a counter-example Mazda have always engineered some body-roll into the Miata / MX-5 so that it's fun and communicative in corners.

I daily drive an MX-5 and the body roll drives me nuts. If you ever drive a modded Miata or an S2000/BRZ or a Porsche Cayman it'll be very apparent how their lack of body roll gives superior driving dynamics while still being very compliant. Not saying Miata is a boat, but it's overly wallow-y for a car of that size.

rwbt··on Edmunds Tesla Model 3 Long-Term Road Test Update for April
A lot of annoyances, needless complicated door handles, buggy software. But this made me smile and the car enthusiast inside me is ecstatic.

> "This car is a joy to drive on Angeles Crest Highway, and I don't say that lightly. Angeles Crest is a famously demanding road that winds up into the San Gabriel Mountains north of Los Angeles. You need brakes, power and a taut, balanced chassis to do it right. The Model 3 has it all. Body roll is minimal, the brakes don't complain, the steering is gratifyingly precise, and there are gobs of instant torque on tap. Plus, the regenerative braking function means you use the actual brake pedal less often.

> "It's a new kind of fun to lift off the throttle ahead of a corner and realize you've already scrubbed enough speed without even touching the pedal. After my drive, a friend of mine asked me how the Model 3 compares to the current BMW 3 Series, and I told him I'd rather have the Tesla. He laughed. I wasn't kidding."

rwbt··on California Votes to Require Rooftop Solar Power on New Homes
Even though rooftop solar might not be the most economical solution to reduce greenhouse gas footprints, I would argue it's very effective. The costs are directly baked into the real estate mortgage and requires zero changes with regards to zoning and planning.

In an ideal world SB827 makes sense, but it was rejected. So I'm glad CA is trying something more pragmatic instead of waiting for a 'perfect' solution. Even if something similar to SB827 is passed in the future - worse case, we'll end up a bunch of rooftop solar installations. That's not so terrible.

rwbt··on Some U.S. law enforcement agencies are using GrayKey to bypass iPhone encryption
> Grayshift has been shopping its iPhone cracking technology to police forces. The firm, which includes an ex-Apple security engineer on its staff, provided demonstrations to potential customers, according to one email.

Wow. That's very sleazy.

rwbt··on Why SQLite Does Not Use Git
SQLite is tested extensively fossil or not. Short of military software it's probably the most tested piece of software.
rwbt··on Why SQLite Does Not Use Git
Technically Dr. Richard Hipp is right https://www.mail-archive.com/fossil-users@lists.fossil-scm.o...
rwbt··on BMW says electric car mass production not viable until 2020
I'm not sure if you know how innovative the BMW i3 is. They decided to go for an entirely different manufacturing process using Carbon Fibre instead of traditional steel stamping and it's entire supply chain is built on renewable energy. That's a big commitment on BMWs part. Alas, the market didn't think of it the same way. The i3 might not be a looker but it's probably one of the most innovative cars ever produced in recent history. Horace of Asymco fame did an entire series on the i3 in his Asymcar podcast.
rwbt··on The deadly toll of street racing in Los Angeles
Street racing is akin to a Drag race. Autocross type circuit events are more technical with tight corners and I suspect many street racers won't be interested in them. A better solution is to increase access to drag strips. I believe many PD's in Nevada and Florida already do events like this https://jalopnik.com/5236317/drag-race-a-cop-in-beat-the-hea...
rwbt··on Why Is SQLite Coded in C? (2017)
I'm nowhere near technically competent to develop something like SQLite in any language. Richard Hipp is a legend unto himself.

But, I tried working in Nim without GC and out turned out to be a bigger hassle than I expected it to be. GC was supposed to be ref counted and now they're doing memory regions? There is also a -gc:stack which I'm not sure if it works the way like in C++. Then there is the pointer free paradigm. Don't get me wrong, I'm very optimistic about Nim and would be great if it really replaces C. But I feel like it's doing too many things at once.

I personally feel like Nim dev team should stop adding new features every release and work on releasing a solid 1.0.

rwbt··on Why Is SQLite Coded in C? (2017)
Interesting. I love programming in Nim but I'm not sure if I would consider developing something like SQLite in Nim. It still has a few rough edges IMHO.
rwbt··on Why Is SQLite Coded in C? (2017)
Yep. I experienced many such situations. Like I said, I still use boost because the benefits outweigh the baggage, but I try to avoid it as much as I can.
rwbt··on Why Is SQLite Coded in C? (2017)
Boost is a technical masterpiece and very high quality C++. It's also battle tested and very reliable. I use it for my professional projects but I loathe using it. Not just the complexity, but the error messages are really hard to decipher and most IDE's autocomplete systems completely choke when using Boost. Even if I want to see how something works 'under the hood' it's almost impossible to figure out.

In the end, I came to the conclusion that it's far more productive (for me atleast) just to stick with plain C and using a 'helper' library like Apache Portable Runtime library.

rwbt··on Why Is SQLite Coded in C? (2017)
My favorite aspect of programming in C is how little it gets in the way of the programmer. Once you become familiar with the language there is not much to lookup in the docs because it's such a small language. I might end up writing more verbose code, but it's usually very clear to me. You still can write spaghetti code but that's besides the point.
rwbt··on Why Is SQLite Coded in C? (2017)
> And of course you can only choose between compilers that do too much (as in, not "C compilers" but "compilers that happen to support C as well"), compilers that don't even aim for standards compliance, or proprietary compilers.

I'm not sure if I understand, but almost all mainstream compilers treat 'C' as a first class citizen. Even MSVC, notorious for only supporting C89 finally caught up and now supports most of C11.

rwbt··on Using k-d trees to efficiently calculate nearest neighbors in 3D vector space
AABB Trees (Axis Aligned Bounding Box) might be an option. Most realtime collision detection systems utilize them.
rwbt··on The long goodbye to C
After programming in C++ for nearly a decade, I too came to the same conclusion. I was always told to avoid C (because dangling pointers and what not) but now even though C++ has some things I like, overall I think C is a lot easier to 'think' in. Even though dangling pointers etc are an issue, you'll pick up good habits over time and avoid many usual C issues.

I think what replaces C should be something like Nim, which compiles to C and also has great C interop. C++ is definitely not it.

rwbt··on Text-only CNN
Also, NPR has had a text only site for ages

http://thin.npr.org

rwbt··on The Beauty of Bresenham's Algorithm
Nvidia's Quadro GPU offerings still have 'proper' GL_LINES hardware support for CAD. I'm not sure if they still use Bresenham under the skin though. But most of the consumer GPU offerings just resort to tessellation into triangles AFAIK.
rwbt··on The Beauty of Bresenham's Algorithm
If it works with integers, it'll likely also work with 'Fixed-point' co-ordinates. A Fixed Point version is fairly trivial if you know how the integer algorithm works.
← PreviousPage 6 of 9Next →