Readit News logoReadit News
theolivenbaum commented on We need more water than rain can provide: refilling rivers with desalination   caseyhandmer.wordpress.co... · Posted by u/bilsbie
theolivenbaum · 16 days ago
Maybe I'm not seeing it but wouldn't it be just easier to pump the river water back up instead of letting it flow on the sea?
theolivenbaum commented on “ZLinq”, a Zero-Allocation LINQ Library for .NET   neuecc.medium.com/zlinq-a... · Posted by u/cempaka
theolivenbaum · 9 months ago
There are some minor breaking changes like the order of iteration is not always the same as the official Linq implementation, or Sum might give different values due to checked vs unchecked summing. Probably not an issue for most people, but a subtle breaking change nevertheless.
theolivenbaum commented on “ZLinq”, a Zero-Allocation LINQ Library for .NET   neuecc.medium.com/zlinq-a... · Posted by u/cempaka
incoming1211 · 9 months ago
Is there a reason these sort of improvements cannot be contributed back into .NET itself?
theolivenbaum · 9 months ago
There are some minor breaking changes like the order of iteration is not always the same as the official Linq implementation, or Sum might give different values due to checked vs unchecked summing. Probably not an issue for most people, but a subtle breaking change nevertheless.
theolivenbaum commented on “ZLinq”, a Zero-Allocation LINQ Library for .NET   neuecc.medium.com/zlinq-a... · Posted by u/cempaka
ziml77 · 9 months ago
The JIT can optimize this. I know for sure if there's no captures in the lambda it won't allocate. It's likely also smart enough to recognize when a function parameter doesn't have its lifetime extended past the caller's, which is a case where it would also be possible to not allocate.
theolivenbaum · 9 months ago
To add on that, you can define your lambdas as static to make sure you're not capturing anything by mistake.

Something like dates.Where(static x => x.Date > DateTime.Now)

theolivenbaum commented on Ropey – A UTF8 text rope for manipulating and editing large text   github.com/cessen/ropey... · Posted by u/keepamovin
ComputerGuru · a year ago
Rust is missing an abstraction over non-contiguous chunks of contiguous allocations of data that would make handling ropes seamless and more natural even for smaller sizes.

C# has the concept of “Sequences” which is basically a generalization of a deque with associated classes and apis such as ReadOnlySequence and SequenceReader to encourage reduced allocations, reuse of existing buffers/slices even for composition, etc

Knowing the rust community, I wouldn’t be surprised if there’s already an RFC for something like this.

theolivenbaum · a year ago
There's also a really nice implementation of Rope for C# here: https://github.com/FlatlinerDOA/Rope
theolivenbaum commented on The industry structure of LLM makers   calpaterson.com/porter.ht... · Posted by u/paulpauper
xnx · a year ago
> The moat here is the broader consciousness that a very very large population of people have adopted.

That's not nothing, but switching costs are very low, and an alternative could arise faster than the switch from Friendster to Myspace or Myspace to Facebook.

theolivenbaum · a year ago
Specially because there are no network effects and no lock in.
theolivenbaum commented on Air traffic failure caused by two locations 3600nm apart sharing 3-letter code   flightglobal.com/safety/u... · Posted by u/basilesimon
ericjmorey · a year ago
Which company deployed a chaos monkey deamon on their systems? Seemed to improve resiliency when I read about it.
theolivenbaum · a year ago
Netflix did that many years ago, interesting idea even if a bit disruptive in the beginning https://netflix.github.io/chaosmonkey/
theolivenbaum commented on Defending Open Source: Protecting the Future of WordPress   automattic.com/2024/prote... · Posted by u/stefankuehnel
theolivenbaum · a year ago
What a bunch of corporate newspeak. Their demand of 8% of gross revenue in annual license fees, or >$30M for 2024, shows how much this was only about profits and not about contributing to the WP community:

"It’s important to note that a significant part of Automattic’s revenue, including any licensing revenue, is channeled back into supporting the WordPress community, as Automattic is currently contributing 3,552 hours per week to the WordPress project. This comes out to something in the order of $20M annually in salaries."

And the post then goes from defending open source to how their actions made everyone's websites safer (which, they didn't) and how you should migrate your website to their hosting solution. Despicable.

u/theolivenbaum

KarmaCake day771November 29, 2020
About
Aerospace engineer turned entrepreneur, building and growing http://curiosity.ai
View Original