Better HN
topnewbestaskshowjobs
Log inSign up

crustycoder

228 karma · joined Mar 10, 2014 (12y ago) · 151 submissions

Submissions

comment 1y ago · link · parent

Many of these are totally pants/panz/pænts

comment 1y ago · link · parent

How about reading the linked article before posting?

"Tesla’s drop came as the German EV market in January grew more than 50 per cent year on year, pushing its market share down from 14 to 4 per cent."

comment 1y ago · link · parent

It seems to have escaped your attention that they did the exact opposite and "felt free" to drive and illegal vehicle on public roads with no insurance, so anyone they hit wouldn't have any compensation. And you can't buy them here so they brought it in knowing they couldn't legally drive it on the roads.

Not the sharpest, are you?

comment 1y ago · link · parent

Is the cybertruck a commercial or a passenger vehicle? If tesla want to reclassify it as a commercial vehicle then they can do the conformity testing under those regulations, and then it will be subject to all the other rules such as class of license needed to drive it, having a tacho, having a speed limiter etc. If they want to sell it as a passenger vehicle then it needs to comply with those regulations - which, by the way, are still the same as the EU ones, so this isn't a UK-only issue.

comment 1y ago · link · parent

To be legal in the UK, vehicles have to have a certificate of conformity, getting one is the responsibility of the manufacturer. Tesla have done that for their other models, but not for cybertruck. I assume that's because the have decided the costs of getting cybertruck compliant with UK regulations would be too high, or not practical.

That's a business decision made by Tesla, not victimisation of poor old Elon, whatever the Musk fanbois think.

comment 2y ago · link · parent

Oh well, if we are going full Ad hominem, not only are you mercifully free of the ravages of intelligence, you are lazy as well. If you'd bothered to look, you'd have found that under UK law, all modern handguns are totally illegal. Specifically, any firearm which either has a barrel less than 30 centimetres in length or is less than 60 centimetres in length overall, other than an air weapon, a muzzle-loading gun or a firearm designed as signalling apparatus, is forbidden. Any form of semi-automatic solid projectile weapon is also banned, so the weapon that's issue in Canada (Glock handgun) is illegal on multiple counts.

Good luck fitting a switch to a handgun dating before 1919, which in theory can be held - although you'd struggle to get a license because you can only hold antique handguns if ammunition isn't readily available for them in the UK, you are a bona-fide collector and central government don't object - they have to individually approve all such licenses.

As you seem to be struggling, I'll simplify it as much as I can for you. The situation that's causing concern in Canada can't happen in the UK because it's illegal to own that sort of weapon in the first place.

That means our laws are stricter than those in Canada.

That means Canada's laws are weaker than those of at least one European country.

That means you are wrong.

comment 2y ago · link · parent

> most, if not all, allowed you to own pistols

Still wrong. In the UK, for example, it's virtually impossible to own a handgun of any sort. The info is easily available online.

comment 2y ago · link · parent

> It may surprise you to know that Canada currently has more restrictive gun laws than any European country.

It certainly would, as it's not true.

comment 2y ago · link · parent

Was just going to say the same. The integration of JavaScript into the Oracle RDBMS is done using a mix of C, Java/Truffle and JavaScript - https://docs.oracle.com/en/database/oracle/oracle-database/2...

And you can step up a level above in the same ecosystem as well, my current project is written in Scala and directly shares its data structures with the Graal Python interprer that I've embedded inside it, so other people can write the stuff they want in Python.

comment 2y ago · link · parent

Another option is GraalPy (https://www.graalvm.org/python/) which is a Python JIT compiler. I've used it to embed an entire Python runtime in an application that's written in Scala which I then compiled to a native executable (https://www.graalvm.org/latest/reference-manual/native-image...) ending up with a zero-dependency single-file application that can execute and interact with arbitrary Python scripts.

As pointless benchmarks seem to be the thing, here's the numbers for different flavours of the one from the article with "10 20 30 40 50" as the args to make it a teeny bit more realistic:

C 27sec

Java 39sec 1.4x C

GraalPy 139sec 5.1x C

PyPy 252sec 9.3x C

CPython 1780sec 66.3x C

Not that this will tell you much about real-world use cases, of course, but hell, it's Friday afternoon...

comment 2y ago · link · parent

Except of course that's completely missing the point of the benchmark - not that it is a good point, admittedly.

comment 2y ago · link · parent

The TL;DR is "Yes, Python is slow but this is why is doesn't matter, in these scenarios where it being fast doesn't matter".

And:

"Python is by far the fastest to write, cleanest, more maintainable programming language I know ... I rarely feel Python slows me down, and on the other side I constantly marvel at how fast I code with it compared to other languages."

In other words, "I don't know much about anything else other than Python."

What a pointless article.

comment 2y ago · link · parent

You do realise that matrix LEDs and auto wipers are bog standard auto tech that other manufacturers have been providing for years?

Audi first offered matrix LED headlights in 2013, so it's only taken Tesla a decade to catch up.

comment 2y ago · link · parent

What Google does with its internal infrastructure is of limited applicability to the majority of people, where interface stability is the prime directive.

comment 2y ago · link · parent

Customers who expect interface stability for 12+ months is the real world.

comment 2y ago · link · parent

Must be nice not to have to live in the real world.

comment 2y ago · link · parent

Yep, well said.

comment 2y ago · link · parent

If you think that answer makes even the remotest sense then you really don't know what you are talking about.

comment 2y ago · link · parent

Experienced people use complex solutions because they know it's the only way they can get stuff to work at the scale they need.

Inexperienced people use complex solutions because they think if the experienced people use it, it must be the right thing to do, no matter what the scale is.

Always use the simplest thing that will work.

comment 2y ago · link · parent

It's a stupid statement internally as well. Unless you can freeze time itself, deploying new versions of stuff isn't instantaneous. And what happens if you need to do a rollback of a component?

comment 2y ago · link · parent

Drop feeds on Firefox

comment 2y ago · link · parent

Horrible for sure, not least because hackers now know that the channel file parser is fragile and perhaps exploitable. I haven't seen any significant discussion about follow-on attacks, it's all been about rolling back the config file rather than addressing the root cause, which is the shonky device driver.

comment 2y ago · link · parent

Although it's a .sys file, it's not a device driver.

"Although Channel Files end with the SYS extension, they are not kernel drivers."

https://www.crowdstrike.com/blog/technical-details-on-todays...

comment 2y ago · link · parent

I had a bot running at http://twitter.com/bollocks until twitter made it ridiculously complicated to use their API, there's a Linux kernel driver that does the same (http://www.fatsquirrel.org/veghead/software/bollocks/) and a Perl module (https://metacpan.org/pod/Dev::Bollocks) and I'm sure many others.
123456