Hacker News new | past | comments | ask | show | jobs | submit | smilekzs's comments login

> The active class is clearly redundant here. If you want to style based on the .active selector, you could just as easily style with [aria-selected="true"] instead.

I vaguely remember (from 10+ years ago) that class selectors are much more performant than property selectors?


Author here. I actually did some research on CSS selector performance: https://nolanlawson.com/2023/01/17/my-talk-on-css-runtime-pe...

The TL;DW is: yes, class selectors are slightly more performant than attribute selectors, mostly because only the attribute _names_ are indexed, not the values. But 99% of the time, it's not a big enough deal to justify the premature optimization. I'd recommend measuring your selector performance first: https://developer.chrome.com/docs/devtools/performance/selec...


Given the morass of JS slathered on every site these days, selector performance is the least of your worries.

From first principles I think the concept can make sense. From car-specific function-specific ECUs, to platform-shared (but still function-specific) ECUs, then to Zonal architecture and domain controllers. The goals: consolidate and generalize HW across the lineup moving model-specific bits to FW/SW/Config (amortizes the development cost and simplifies certification), and also simplify wiring (saves you precious copper wires which are costly, messy, and heavy) because you can pretty much just plug every miscellaneous sensor or actuator to its nearest "anchor point" without worrying (too much) about arbitrary ECU limitations.

See Rivian's intro on their ECU design and Zonal architecture: https://youtu.be/6ZBko4TvfJY?t=137&si=-SKL_iFqZFnHE8nQ

This might sound like purely implementation detail, but having the (non-safety-critical) "business logic" of a car as software gives the manufacturer flexibility to late-bind behavior as new use cases / demands inevitably get discovered.

Something can simultaneously be a good idea, buzzword'd by marketing, and/or deviate from the original intentions.


I'd argue that chassis tech is more sophisticated in the BEV case due to more weight. Adaptive dampers, air springs, rear-axle steering, etc. might not be necessary on a comparably sized ICE vehicle.

OTOH, ABS and ESP systems can achieve similar or even better results with less complexity because motor torque control is inherently low-latency, which can also complement brake deployment (hydraulics is not as well behaved as e-motor).

You do get rid of emissions control and tiny little sensors / flap actuators sprinkled all around the engine bay, so yeah, probably overall still a simplification win, but I doubt you can get very far without "massive amounts of [Mechatronics] engineering".


GP hypothesized the situation "from downtown one city to another", which is distinct from airport-to-airport.


How is it distinct in any way that would undermine their argument? Do people go airport to airport to then not drive, where people going to downtown would want to drive? Their point is that people go to other cities without their vehicle all the time with plane travel, so high speed rail would have plenty of demand up to a certain distance.


You're not wrong, but that just means the <adjective> is where the bulk of information resides. The trade-off matters. Maybe it's a model with good enough quality but really cheap to serve. Maybe it's a model that only plays poker really well but sucks at everything else because it bluffs too much. Etc. etc.


Apparently 7 figures is the new 6 figures...


With inflation and the terribly high cost of housing in places like the Bay Area, “seven figures is the new six figures” is an apt observation. I make six figures, yet I can’t afford to buy a home within a reasonable commute from my job, and even finding a decent rental near my job is challenging. Seven figures is indeed the new six figures.


My colleague makes mid 6 figures in the bay area and just scrounged enough money together to buy a house from the 1950s with asbestos.


Did they pay premium for asbestos?


Yea, 10 years of his life.


Certainly a steep price to pay.

I recall that some states were happy to deice roads next to schools with radioactive brine, which might come back now with EPA being dismantled.

https://www.acfan.org/2020/radioactive-oil-and-gas-waste-on-...


And to put it more concretely: directors at Google are pulling close to 7 figures in total comp. It's wild.


$150,000 USD is around ¥1,092,00 CNY, so that might explain it. :p


I thought it went without saying, but being good enough at AI to make 7 figures isn't attainable for most people.


I mean "low income" is 6 figures in the silicon valley [1]. So 6 figures really isn't much anymore.

[1] https://hoodline.com/2023/06/new-ca-income-limits-classify-s...


+1. Frameworks learning costs are non-trivial. After you worked so hard to become productive in a particular framework it's frustrating to see its core and/or ecosystem fizzle --- especially when your existing code already tied the framework's unique constraints, making it a hassle to port to other frameworks. In this sense the "bus factor" / resilience of the framework dev does matter to the app dev building on top of it.


> as the overall development workflow is lightyears ahead of C++, mostly due to tooling

My experience has been the other way around. Eclipse-based IDEs from NXP, TI, ST all have out-of-the-box usable tooling integration:

- MCU pinout and configuration codegen

- no need to manually fiddle with linker scripts

- static stack and code size analyzers (very helpful for fitting stuff in low-cost MCUs)

- stable JTAG-based debugging with:

  - peripheral registers view (with bitfield definitions)

  - RTOS threads view (run status, blocked on which resources, ...)
And yes, these are important enough for me to put up with Eclipse and pre-modern C/C++. I really want to write Rust for embedded but struggling with the tooling all the time didn't help.


The SFBay I-880 and US-101 are always packed, often under construction, but still pothole-filled, with sections of extreme roughness. Compare this to our OR neighbors, where there are signs saying "your tax dollars at work" by ORDOT everywhere. I used to scoff at this as a display of insecurity, but apparently (from TFA at least), Oregonians' tax dollars _are_ at work.

CA takes so many tax dollars from my hands. Why aren't they "at work"?


On the contrary, I believe they are. There are thousands of miles of back roads in California built and maintained by Caltrans that are in absolutely incredible condition. Drive up and down any random mountain/hill/pass off a main freeway and enjoy a road the envy of almost anywhere else: well-built, smooth, with painted lines and signage.

880 and 101 suffer because their high traffic volumes cause much higher wear and tear while also making it difficult to make repairs.


Oregon is 60% the size of California by land area but only 10% of the population.

Roads like 101 & 880 can't be worked on during the day because of massive congestion issues. But drive up & down 101 after 9 or 10pm (even on weekends), and you'll see crews hard at work. Hats off to those crews working the night shift.


> Compare this to our OR neighbors, where there are signs saying "your tax dollars at work" by ORDOT everywhere.

I see these signs all over Southern California (I remember seeing them around the Bay Area especially post 08 GFC): https://static.wixstatic.com/media/e074b5_617daf538f0c4e0e89...

They’ve been around since at least the late 90s/early 2000s. There's a whole official site for it too: https://rebuildingca.ca.gov/


Anecdote: Worked road construction summer 2010 as the guy who put those little sticky tabs on the road to mark where lines are repainted after construction is complete.

Sometimes I'd finish early and get odd jobs. Between Roseburg and the Oregon coast a colleague and I were assigned to stand one of those "your tax dollars at work" signs on a steep slope. Took 2 hours at prevailing wage OT and for total labor cost of $480 between the two of us. By far the steepest labor rate I'd ever been able to charge. Thanks for the money, irony!


> The SFBay I-880 and US-101 are always packed

A lot of this is due to the freeway system being unfinished.

101 would have been supplemented by the Bayfront Freeway (CA 87): https://cahighways.org/ROUTE087.html#_ROUTING_SEG2

And 880 by routes 61, 238, 185, 13, and 77:

- https://cahighways.org/ROUTE061.html#_HIST1964

- https://cahighways.org/ROUTE238.html

- https://cahighways.org/ROUTE185.html

- https://cahighways.org/ROUTE013.html

- https://cahighways.org/ROUTE077.html


Would have just meant more commuters


Only because those people can't find somewhere to live that's near work. So sick of this incredibly stupid line of thinking from otherwise very smart people who refuse to realize that increased demand on transportation infrastructure is the flip-side of the housing shortage.


> Only because those people can't find somewhere to live that's near work.

Also because there aren't adequate transit options to use instead of driving.


I don't disagree but induced demand absolutely exists as people would move accordingly.


Agreed, but I would say that inducing demand is the point of building anything. Nobody uses that term when it comes to building homes people want to live in. They only ever use it to oppose people being able to exercise their freedom of movement.


Very few people say roads help freedom of movement for others. They say it will help your commute, while higher capacity modes never get invested in.


I said it. Seems pretty straightforward to me that I am inherently less free to move via rail/sea/air than via my automobile unless the train/boat/plane can also take me anywhere, at any time, 24 hours a day, any day. I do prefer to commute via train if I can. In fact my office just moved and I've had to give up my one-shot train commute just in this last month :/

Unfortunately the alternative to divesting in road infrastructure won't be investing in rail infrastructure, it will be telling people to stay home. For sure a lot of demand for rail investment will come once it becomes harder to get around and more people lose their autonomy, but the reality for many people will just become not going anywhere at all. That means segregation-with-extra-steps for all too many places, and I was raised to believe that's a bad thing. Peep the Bay Area for example — it's really bad! http://radicalcartography.net/bayarea.html

Aside: I'm a huge railfan and have actually gotten to drive a locomotive at the Western Pacific Railway Museum even though it was very expensive and confined to a tiny circle of track. Highly highly recommend a trip out there for anyone, even if just to sight-see the gorgeous Feather River Canyon: https://museum.wplives.org/ral/


I believe that induced demand is mostly suppressed demand liberated.


I'd like to see California consider reducing the total mileage of roads and focus on having a smaller amount of higher quality paved surfaces. My neighborhood street does not need to be 60ft wide, and our freeways do not need more lanes.


Oregon manages about 40% the road miles of California with 10% the population and 70% of the tax revenue per capita.


I imagine that all states would have more trouble managing more roads than they currently do, and less trouble managing fewer roads than they currently do.


I dont follow? Are you invoking some diseconomies of scale. California has about twice the roads but more than 5X the budget.


My prior post is choosing not to compare the two at all. In isolation, it is easier for California to handle fewer roads than it currently does.


Start with the fire department. They are the ones demanding 60 ft wide residential streets so that their trucks can turn around without having to drive a few blocks out of the way.


I often breathe a sigh of relief when I pass over the boarder into Nevada and my car starts shaking.

Roughly 70% the tax revenue per capita ($3.8k vs 2.6), but somehow they manage to maintain their roads.


Doesn't "often under construction" mean that they are "at work"?


It's heavily county based. Drive on the 5 through LA county and the second it crosses into Orange County, it magically gets incredibly better.


They are "at work" ... for other people's versions of "at work".


we have a lot of expensive bridges


I know this hasn't been updated, and I know it's a fork of CoffeeScript, but https://livescript.net/ has had a lot of the "magic" syntax here for quite a while.


Yes, Civet has taken a lot of syntactic inspiration from LiveScript. At this point, I think we have most of the good features, but we might be missing some. Let us know what you think!

The big difference, of course, is that Civet fully supports TypeScript, and is up-to-date with the latest JavaScript and TypeScript features.


I do miss 2 features from LiveScript:

1. `wxyz = [ 2 8 -5 5 ]` (commas optional for non callables)

2. `console.log \hello` (backslash strings)

Don't know how hard/compatible #1 is, but for #2 I had a tested PR that I could bring around.

(#3 was bulleted lists, but you already added that!)


Nice!

I loved LiveScript, but it got kinda lost in the wake of ES6.

They planned to add types, but never got around doing it (at least the last time I looked).


Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: