Hacker Newsnew | past | comments | ask | show | jobs | submit | more lambdaone's commentslogin

Multiple UK banks are simultaneously reporting outages on their online banking sites and apps. Interestingly, they all seem to have the exact same message of their websites about this.

None of the reporting on this seems to report a cause for what might be behind this. A concerted DDoS campaign? Failure of some shared common facility? Nation-state-level hacking?


Why limit your changes to syntax? Intercal's COME FROM would be a good addition, but you definitely also need SOLVE and PROVE statements to increase the power of the language.

Having IF TERMINATES and IF NOT TERMINATES predicates would be useful, too. Why limit yourself to everyday computable functions? And if you really wanted to, you could implement both SOLVE and PROVE in terms of them...


Yep, someone suggested it; I might add it.

ref: https://news.ycombinator.com/item?id=43192484


You're right that this is generally a golden rule. But rules can have exceptions, and this seems to be one of them; the Linux kernel is now so large and complex, and C so obviously outdated now, that it's worth the pain to start writing drivers in Rust. And because of the modularity of the kernel, and the care taken to make Rust binary-compatible with C, this looks to be actually practical, as individual subsystems will be either entirely Rust or entirely C, particularly when new drivers are involved.


[flagged]


Polyglot projects by their very nature inject unstable dependencies into the build tree

What does this mean?

This also make the core feature of bootstrapping Linux on new hardware more difficult.

If by this you mean that Rust doesn't support all the architectures that gcc does:

- that didn't stop people from making sure Linux could be compiled with LLVM as well

- gccrs should make this issue moot anyway, as that will allow Rust code to be emitted for exactly the same architectures as gcc proper


> This also make the core feature of bootstrapping Linux on new hardware more difficult.

No, Rust is currently only for drivers that aren't on that hardware anyway. You can continue to build and use the kernel without Rust just fine.

For now... Maybe one day that discussion will become relevant.


The drama started because of the core memory API argument.

That day is today my friend =3


You’re simply incorrect, in a way that Linus himself very clearly stated.

The drama started because Rust used an API written in C. It doesn’t contain any Rust at all. Nothing has changed in this regard.


Yes, and that API is needed for drivers written in Rust. So it's not like core parts of the kernel are being now written in Rust, it's still just specific Rust drivers.


It was my understanding the request was to have the core maintainer take on the additional task of supporting the rust API on top of the existing wrapper.

I could be wrong, but a branch or fork seems like the easiest solution. =3


Your understanding is completely wrong. There was no such request, and that concern was almost immediately addressed by spelling out very directly that no such expectation existed.

https://lore.kernel.org/rust-for-linux/2b9b75d1-eb8e-494a-b0...


You misunderstood.


"What does this mean?"

In general, mixing languages has serious long-term consequences. Unless you have done refactoring of large legacy systems... you probably wouldn't understand fully.

Perhaps ask why folks didn't create an isolated kernel branch for such a massive refactoring?

"Rust doesn't support all the architectures that gcc does"

Assuming a bootstrap compiler can even bring up Rust or the cargo monstrosity. People will just switch to other options, and maybe someone will get around to a Rusty Linux Fork if the working system needs entertaining drama.

Best of luck =3


Unless you have done refactoring of large legacy systems... you probably wouldn't understand fully.

The reason I don't understand fully is because you don't explain yourself. I'm not convinved it has anything to do with my work experience.


"I'm not convinved it has anything to do with my work experience."

I can see how that could be challenging, but some lessons are universal. This talk touches on the problem at an organizational level:

https://www.youtube.com/watch?v=GWgRw5jiYy0

Best I can do for you right now. Good luck =3


Just stop with the sarcasm, it doesnt belong here.


The talk covers how polyglot projects tend to fail.

Most folks can disagree on things, and remain respectful. Have a glorious day =3


Except... Most companies offer products built in multiple languages. Google notoriously has a multilingual monorepo and a uniform build system. Every company of non-trivial size uses multiple languages. Even Asahi Linux does!

Polyglot projects are harder, but definitely not as hard as OS development in C.


Yep. Even small companies.

The majority of companies doing web is doing "something plus Javascript".

And then if there's some AI in the mix, there's also almost always Python. Often maintained by a super small team.

What about apps? Java and Swift. The migration to Swift included a lot of Obj-C and Swift living side by side for a while. Same with some apps migrating to Kotlin.


In general... it is often a skill issue with labor pools, as firms accepted Java/JavaScript is almost universally known by juniors.

Apps are in user space, and are often disposable-code after 18 months in most cases. Projects like https://quasar.dev/ offer iPhone/Android/iOS/MacOS/Win11 single code base auto-generated App publishing options, but most people never hear of it given a MacOS build host is required for coverage.

The talk pokes fun at the Ivory tower phenomena, and how small-firm logical assumptions halt-and-catch-fire at scale. =3

https://en.wikipedia.org/wiki/Ivory_tower


How the can it possibly be an issue with the labor pool when JS is the only truly supported web language and Python is the main language for ML tooling?

I think that you are handwaving away differences in runtime environments. All languages (almost) are Turing-conplete. Many of them, if used in the wrong context, will get you stuck in a Turing tarpit.

Languages succeed or fail on the strength of their runtimes. If you seriously think that mixed-code codebases are trash after 18 months, then I think I'm wasting my time - that statement is so fundamentally detached from reality that I don't even know how to start.


"that statement is so fundamentally detached from reality that I don't even know how to start."

It is the statistical average for Android, but again it depends on the use-case situation. Apps are a saturated long-tail business that fragmented decades ago.

Python sits on top of layers of C++ wrappers for most ML libraries, and doesn't do the majority of the heavy computation in Python itself (that would be silly). Anyone dealing with the CUDA SDK for Pytorch installs can tell you how bad it is to setup due to versioning. That is why most projects simply give up to use a docker image to keep the poor design dependencies operational on a per project basis.

"then I think I'm wasting my time"

Than just let the community handle the hard part, and avoid having to figure it out yourself:

https://github.com/dambergn/ai-stack

I think you are confusing ML work with end users playing with other peoples algorithms.

Best of luck =3


Sorry but apps being disposable and "JS-only frameworks" existing doesn't change reality. Nor do juniors only knowing only one language.

Single-language codebases are the exception rather than the rule in a lot of industries, which includes apps and web. Ditto for operating systems: the Linux Kernel might be majorly C, but both Windows and Mac mix C and C++ in the kernel but a lot of userland is in C#, or a mix of Swift and Objective-C.


"Explanations exist; they have existed for all time; there is always a well-known solution to every human problem -- neat, plausible, and wrong." ( H. L. Mencken )

Probably conflating popularity with good design. The talk covers the financial incentives for naive code choices, and perceived job security in ivory towers.

It might work for you, but in general is bad for the firm long-term. Best of luck =)


Please don't put words in my mouth. I'm not conflating popularity with good design, in fact I haven't said anything of the sort.

And sorry but the other half of your message has nothing to do with what I wrote.


"Single-language codebases are the exception rather than the rule in a lot of industries"

And indeed >52% of those Polyglot projects end up failing in more than one way, and are refactored or abandoned. I didn't like that the talk rips on Elixir/Phoenix either, but factually his insights were not inaccurate.

On average it takes around 2 to 3 years to understand why... As it takes time to see why Tacit knowledge is often ephemeral. Tantalizing bad ideas reverberate on the web, and the naive recycle them like facts. YMMV and it usually doesn't matter if you have under 38k concurrent users... and spend $3m/month in transfer fees to AWS. Perhaps your part of the world works differently than mine. =3


Not sure employee attrition rates and canceled project metrics are a positive aspect of Google.

https://en.wikipedia.org/wiki/List_of_Google_products#Discon...

"definitely not as hard as OS development in C"

Depends what you are doing, as complexity is often a sign of poor communication.

https://en.wikipedia.org/wiki/Conway%27s_law

The talk pokes fun at the excuses folks make when kludging something they intended to replace later. =3


Google does not cancel projects because they're technically unwieldy, and if you ask pretty much any ex-Google engineer what they think about internal tooling they will generally praise it because it's very good.

Complexity is a consequence of dealing with the real world. An OS talks to hardware, which might have errata or just straight up random faults.


Googles initial technological success was due to the design assumption individual systems were never reliable, and should fail back gracefully. It was and still is considered a safe assumption...

Indeed, on average 52% of all IT projects at any firm end up failing, or were never used as designed. What exactly does a glorified marketing company have to do with successful OS design? The internal Android OS they planned to replace Linux with was canceled too. "All software is terrible, but some of it is useful" =3


I would suggest actually reading what engineers who have worked at the company say about it. Many of these statements you've just made are irrelevant or factually incorrect (e.g. Fuschia might be cancelled, but Google remains one of the major contributors to Linux and is certainly not a "marketing company.")

Have a good day!


'certainly not a "marketing company."'

So you think they publish free services out of charity? Perhaps the technology business is not for you...

Best of luck =3


The kernel doesn’t use Cargo, by the way.


Indeed, its actually worse because "x.py" has a lot more dependencies. lol =3


The kernel doesn’t use or interact with x.py either. The Rust code uses build to drive rustc, just like the rest of the kernel.


I think you are operating under the assumption a fully compatible cross-compiler environment is already available in both languages. =3


Drivers are hardware specific, and so it's not a problem that Rust has support for a subset of the platforms that the kernel does. If you want to write a driver for a platform Rust doesn't support, just write it in C.


Drivers are usually hardware specific but are not always platform specific. For example all the usb device drivers (but not host drivers) from x86 work just fine on arm and risc. And kernel isn’t just device drivers, but also stuff like network — higher level abstractions are decoupled from platform quite good.

I don’t think there is practical intersection of platforms not supporting rust and running USB host, but by the time rust will creep into something line network subsystem code you will either not have network (which was working before) or you make yourself a rust compiler.

This can mean dropping platform support. Maybe those are dead platforms, but somebody will make the argument that adding rust made things objectively worse.


Sure. The point is, this is for new code where you know Rust supports the platform. It “creeping in” to something Rust can’t support won’t happen, because then the rust-less build will break.

You are right that there are other policies that could work in a different way, but these policies were chosen specifically so that Rust doesn’t make the kernel sacrifice old platforms.


'It “creeping in” to something Rust can’t support won’t happen'

The exact same argument could be made for future architectural changes, as OpenBSD/FreeBSD/NetBSD build requirements will now beat Polyglot Linux in every metric of porting complexity moving forwards.

We can't have it both ways... Best regards =3


"If you want to write a driver for a platform Rust doesn't support, just write it in C."

¯\_(ツ)_/¯ Or a separate branch for Rust in the first place. We are falling into the circular reasoning logic loop. lol =3


C already felt outdated in 1993, that is why since then I rather use C++ than C, when the choice boils down to these two languages.

Exception being when there is really no way around C, like UNIX clones related development, or some kinds of embedded development.

Even when using TypeScript, we sometimes have to occasionally get dirty with JavaScript. :)


"I rather use C++ than C"

Depends what you are building, as some language specific features make specific tasks more difficult.

Unfortunately, often we must deal with the infrastructure we are given. =3


Agreed, that is why "Exception being when there is really no way around C,..."

The first startup I worked on, back in the crazy 2000's, we were replicating AOLServer at our own way, and all the Tcl extension modules were written in C, because multiple reasons, including writing portable C across several UNIX variants was already complicated enough, e.g. the HP-UX aC we were using was still not C89 compliant, no need to add C++ into the picture.


> People could have spawned another kernel branch focused around Rust

Linus already decided his one will be a mixed-languages fork. You are perfectly free to fork your own C-only kernel and maintain it.


The hobby kernel I work on is only 68KiB in size, and won't work with most von Neumann machines. Probably a waste of time, but a fun odd architecture given the relative simplicity. =3


And yet, the powers that be, understand that, and have reasoned that the upside of preventing new code with bugs into the kernel is way too attractive to ignore.


[flagged]


Linus torvalds is the biggest idealist here.


Rust is a systems programming language by design; bit-banging is totally within its remit, and I can't think of anything in the kernel that Rust can't do but that C could. If you want really, really tight control of exactly which machine instructions get generated, you would still have to go to assembler anyway, in either Rust or C.


While it's almost never a compiler error, it happens, and I have personal experience; I once found an error in the VAX/VMS Pascal compiler - and could demonstrate it as such by disassembling the compiler output - and had to work around it until DEC fixed it.


See my comments about L4S.


Well, fucking finally! But it seems like it's going to take a few more years until L4S is deployed everywhere.


It is until you congest it. Then, like all other network technologies, performance collapses. You can still force traffic through with EDC, buffering, and re-tries, but at massive cost to overall network performance.


Cellular technologies can be configured to degrade differently to WiFi. The device gets fewer assigned slices, so the bandwidth reduces, but latency should remain static.


How does voice call quality degrade? Does it switch to a tinny bit rate?


On 4G or 5G, if voice quality is degrading it's either being switched to a lower quality codec, or it's an upstream issue.


Wireless networks' latency problems are almost entirely caused by contention, buffering, and vast over-booking of bandwidth, where raw bandwidth number competition has been over-valued relative to actual network application performance.

L4S is on its way, and may finally be the beginning of the end for bufferbloat and congestion, and vendors of mobile devices are in an almost unique position of being able to roll out network stack changes en masse. And just for once, consumer incentives, vendor incentives and network operator incentives all align - and it's incremental, and lacking in incentives for bad actors.

See this blog entry: https://www.ietf.org/blog/banishing-bufferbloat/ for more on L4S and bufferbloat. And this: https://datatracker.ietf.org/meeting/105/materials/slides-10... for a proper technical deep dive.

The development of L4S has been a pincer operation across all levels of the network stack, integrating everything previously understood about latency and congestion in real networks, and one of the most impressive bits of network engineering I've seen in the history of the Internet.


One in five seems to be an under-estimate. Based on my experience of Upwork, at least 50% would be a better estimate.


I think there's big potential in using DNS blacklists for this: they have the advantage of being massively scalable and simple to maintain, and clients configuration to use them is also easy.

The scalability comes from the caching inherent in DNS; instead of having to have millions of people downloading text files from a website over HTTP on a regular basis, the data is in effect lazy-uploaded into the cloud of caching DNS resolvers, with no administration cost on behalf of the DNSBL operator.

Reputation whitelists (or other scoring services) would also be just as easy to implement.


DNS blacklists work fine for blocking access to sites or certain known-sketchy FQDNs/domains but do nothing to hide low-quality search engine results, which is what this is all about.


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

Search: