11,383 karma · joined Apr 22, 2013 (13y ago) · 5,854 submissions
comment 2y ago · link · parent
But perhaps it's a viable "training wheels" approach for getting used to borrow-checker friendly patterns? And I guess a scripting interpreter option that is fully rust-aware in terms of lifetimes could be truly golden for certain use cases, even if it turns out to be completely hostile to users not fully in tune with the underlying Rust. Sometimes "no recompile" is very important.
I wonder if the genesis story of the project might be hidden in "Dada has a required runtime": perhaps it started with the what-if of "how nice could we make Rust if we abandoned our strict "no runtime!" stance and went for making it runtime-heavy like e.g. Scala"? Then the runtime pulls in more and more responsibility until it's easier to consume a raw AST and from there it's not all that far to making types optional.
comment 2y ago · link · parent
comment 2y ago · link · parent
Carmakers haven't stopped doing electric variants of ICE models because it's oh so difficult to put batteries where an engine, tank and gearbox used to be (it's not), they switched to dedicated BEV designs to have an opportunity to do a "cost reset" about their approach to all those little nice to have things they introduced in the late ICE era to maximise the price buyers were willing to pay for a given vehicle class. The BEV-specific base architecture certainly helps, but it's as much about the expectations reset. This certainly does not mean that they switch their rain sensor to the Tesla approach, they might actually end up cheaper cost-optimizing what they have and know, but BEV does mean looking at costs in a very different way than in the ICE era.
comment 2y ago · link · parent
But, as a sibling comment already mentioned: roundabouts! One of the most important indicator engagements is made crazy awkward for people who keep "walking" their hands to neutral position while the wheel is turned instead of wrestling it like some animal.
Which does make me wonder: has any carmaker started engaging turn signals from navigation? I'd imagine that this could be an amazingly subtle user interface for following a route: just don't press the veto button when the car decides to engage indicators and steer as if the indicator decision had been your own. No more following robot voice orders. An established pattern I don't know about? Tried, but turned out to be terrible? Legal uncertainty (or legal negative certainty)?
comment 2y ago · link · parent
When the network has broken down you'd better be prepared to have teams fixing what is fixable, and the ability to deploy pop-up cells on the ground. If you have skimped on that preparation betting on satellite cells to save the day the contribution of Starlink to disaster preparedness might end up being a net negative.
That being said, pop-up cells on a startlink as their backhaul could become huge in disaster preparedness. Some contract scheme for standby basestations might actually become a big component of the Starlink business model. The good news is that all talk to regular phones can't overlap with regular starlink frequencies, so unless it blocks some other bottlenecks like SDR DSP capacity it won't compete with regular connections (certainly won't have a meaningful impact on orbital backbone load)
comment 2y ago · link · parent
https://twitter.com/Jay_Bibo_Mario/status/172166701009283103...
I don't know if that assignment has been confirmed by any other source, but we do know that the visits have happened. They are even documented in radio archives. According to present day public broadcasting journalists, those actually happen to be the oldest known public recordings of Scholz.
comment 2y ago · link · parent
Thecwayvi understand it in theory, the typescript version a library uses could disappear forever the day after a library had been published to JSR and all would be fine.
Until someone wants to maintain the code of course, but then you'd have the exact same problem with the elusive typescript version if the repository only took compile output.
What JSR would break (or make a deliberately difficult path?) is using some private fork of typescript that isn't even available on the day of publication.
The benefit of JSR, as far as I understand it, is offering an easy path to publication that makes type parts not an extra that some might skip but a reliable default. It does make me wonder however, how long-term reliable the finding will be: JSR promises more service than registries before, while also being more tool agnostic. I'm not sure if it's true, but my impression was that in many cases, the registry was primarily bankrolled by however the tooling was funded, e.g. effectively becoming a marketing expense to selling tooling expertise. JSR appears particularly removed from any of that and it's bad enough when the repository fades away in terms of static hosting, it's worse if it also leaves your library without a build process.
comment 2y ago · link · parent
comment 2y ago · link · parent
I'm very used to consider line and block comments semantically different. To my mind block is javadoc (or for text addressed at the reader that is not meant for tools, in short for prose) whereas // is for killing source lines (and for killing block comments for tools). With the corollary that // would be absent from perfectly clean code, that removal of // is never wrong. In my own projects, I even add an exception mechanism for // that should be kept, they can be marked with ///*why*/, and why should better be good. "why" can be a key further explained in a regular block comment, the idea is that those lines can be cleanly enabled/disabled/removed with regex.
On a very abstract level, I could describe my position as "languages should have multiple forms of comments that have clearly defined semantic differences". I consider this a paradigm change similar to how modern languages have started to declare one style guide the blessed one, even if technically whitespace is just as insignificant as in the old days of "do what you think is best".
What I do miss, from the old doxygen days, is support for trailing comments for when you want to add a few short words to a field without begging for attention too much. Something like
int count = 0; /** quuxes encountered */
And for inline javadoc in multiline argument lists, which I believe to become ever more common in the postOOP age. These could be implicit @param in the slurp javadoc, just like the markdown lists in the future work part of the JEP (where I to see a real benefit of magic headline/list pairs over repeated @param or @throws): void slurp(
/** quuxes ready to be slurped */
int todo,
/** quuxes slurped before */
int done
) {
(Of course I'm mostly looking at KDoc here, where they already have markdown but where multiline parameter lists are even more common than in current/future java)comment 2y ago · link · parent
What's dead in many environments is going fancy with the HTML. I think most codebases have nothing or very little in terms of formatting outside the @something keywords. Then the only trace of html is the pain of typing < instead of <. For things like emphasis, chances are people already write it in markdown snytax instead of html even assuming that the markdown will never be read in a formatted way.
comment 2y ago · link · parent
comment 2y ago · link · parent
The initial decline of the knight was perhaps less about firearms than about pikeman tactics (tercio and all that) with the various revivals of heavy cavalry mentioned, e.g. under Gustavus Adolphus, being merely reactions to shifts in the balance between pike and shot. When it's pike and shot vs pike and shot they will eventually try to outbid each other in focus on shot, until they become vulnerable again to the heavy cavalry charge that had been deemed obsoleted by pike.
comment 2y ago · link · parent
The transparency is just a cool show piece that happens when you don't package the panel with a frame and an opaque backdrop. What they did spend time and money on is giving some of their marketing people a presumably small budget to show that useless but cool thing r&d stumbled across to the public. It would be stupid not to.
comment 2y ago · link · parent
What I do wonder, with microLED being as transparent as they are before you add a backdrop layer, is how much of its (daytime) energy consumption could be supplied by making the backdrop photovoltaic. If you only light up a tiny battery percentage number on a 17" screen, chances are it could run energy-positive forever, but if you do the same black-on-white the very battery consumption would likely be near-indistinguishable from a simple black backdrop. How many pixels at break-even? This could be a revolution for outdoor devices that still use transflective displays that are either low-resolution or low-contrast.
(I do suspect that resolution would be a limitation with microLED-on-photovoltaic as well, aiming that transparency is inversely proportional to resolution at a given manufacturing process)
comment 2y ago · link · parent
Reading up on the history parts in the Wikipedia article, the German language version presents it as if SQL was the Oracle (Relational Software Inc) implementation of IBM's Sequel, the English page says the name was shortened due to trademark issues, before mentioning any implementation outside IBM. That would make Sequel and SQL the same thing, just rebranded early on. It also lists a clever (b)acronym and two other reasons for why they called it sequel before shortening, so it seems like there's a decent amount of mystery around the name. Almost as if it happened before the invention of writing.