Better HN
topnewbestaskshowjobs
Log inSign up

mrcsharp

822 karma · joined Aug 10, 2019 (7y ago) · 196 submissions

meet.hn/city/au-Sydney/Sydney

Socials: - github.com/MrCSharp22 - https://blog.mrcsharp.dev

Interests: IoT, Programming, Technology, Web Development

---

https://blog.mrcsharp.dev/

Submissions

comment 1y ago · link · parent

LINQ doesn't need the JIT for that. I don't even think it is the JIT's responsibility to be aware of a specific library and optimize for it.

LINQ does a lot of work behind the scene to optimize for speed and reduce allocations. An example can be found here [1]. These optimizations are mostly about reducing the various LINQ patterns into simple for loops.

[1] https://github.com/dotnet/runtime/blob/main/src/libraries/Sy...

comment 1y ago · link · parent

On the topic of DATAS, there was a discussion here recently: https://news.ycombinator.com/item?id=45358527

comment 1y ago · link · parent

Great! Same here. It was a great read overall. My current use-case won't benefit from DATAS (using Azure App Service), it's good to know this option exists though.

Actually, thinking about this more, this is super helpful for Stage VMs that are shared among multiple projects. It can help pack more instances in those VMs.

comment 1y ago · link · parent

Benchmarking is the best way to go here. Enabling/disabling DATAS, Server GC, and Workstation GC is pretty straightforward anyways.

comment 1y ago · link · parent

Did it get you curious enough to go look that up?

comment 1y ago · link · parent

I love that and strongly agree with it. I should probably start practicing that.

comment 1y ago · link · parent

I have the ReMarkable 2 so I am biased here but these devices do more than replace paper.

My fav feature so far has been screensharing from the ReMarkable 2 while on online meetings.

So while their whole thing is about replacing paper, it actually does a lot more than just that.

comment 1y ago · link · parent

Sorry, but A$799 for this one makes no sense when the ReMarkable 2 is A$699.

69.

Consolonia – A cross-platform UI framework for .NET(github.com ↗)

3 points · by mrcsharp · 1y ago · discuss

comment 1y ago · link · parent

Generally agree but if you look at the body language and how engaged Steve is vs. what you generally see from Satya, there is a massive difference and Satya being #1 spokesperson for the company doesn't explain it in my opinion.

Matter of fact, I'd even argue that being #1 spokesperson and giving this low energy vibe is kind of bad for how the company is seen by the public. I'd rather have the "developers developers developers" CEO over whatever Satya is.

comment 1y ago · link · parent

You know, Steve Ballmer is always fun and interesting to listen to.

Meanwhile you have Satya Nadella. This very sanitized, boring, fake, borderline manufactured personality. I can't imagine sitting through a 3hr interview/podcast with him as a guest. I had no problem listening to this one though.

comment 1y ago · link · parent

> All participants are completely anonymised for their privacy and protection

Having to do this says a lot about how fragile the state of AI/LLM hype.

comment 1y ago · link · parent

> I imagine that's the main driver for creating SelectNotNull

Sure. And now we are fighting the compiler and in the process writing less efficient code.

The compiler gives us a way to deal with this situation. It is all about being absolutely clear with intentions. Yes, Where(..) in my example would return IEnumerable<TR?> but then in subsequent code I can tell the compiler that I know for a fact that TR? is actually TR by using the null forgiving operator (!).

comment 1y ago · link · parent

As a side note: please avoid, as much as possible, putting `.Select(..)` before `.Where(..)`. You are wasting CPU cycles and memory space by forcing LINQ to map all the items and then filtering on the mapped value.

In most situations, you should be able to filter on the source enumerable before mapping making the whole thing more efficient.

Additionally, that `.Cast<TR>(..)` at the end should have been a dead giveaway that you are going down the wrong path here. You are incurring even more CPU and Memory costs as the `.Cast<TR>(..)` call will now iterate through all the items needlessly.[1]

Also, the design of this this method doesn't seem to make much difference to me anyways:

``` var strs = source.SelectNotNull(it => it); ```

vs

``` var strs = source.Where(it => it != null); ```

A lot of other LINQ extension methods allow you to pass in a predicate expression that will be executed on the source enumerable:

``` var str = source.First(it => it != null); ```

[1] https://source.dot.net/#System.Linq/System/Linq/Cast.cs,152b...

comment 1y ago · link · parent

I didn't mean to sound aggressive, apologies for that as well.

Let me explain: in my view, he is doing a lot to try and hype up Microsoft's AI offerings and this latest attempt feels like the kind of thing an employee does to hit some arbitrary KPIs.

comment 1y ago · link · parent

> You may not like it because HN is very privacy focused and hate giving data away to companies.

This is a big assumption from your side. Care to back it up? Where did I talk about Privacy?

comment 1y ago · link · parent

Is "How to be a decent human being and an innovative CEO" one of them?

This reeks of desperation.

78.

Cutting the wire without cutting the audio quality(techcommunity.microsoft.com ↗)

1 points · by mrcsharp · 1y ago · discuss

comment 1y ago · link · parent

The latest as far as I know is that Phison couldn't replicate the issue. [1]

[1] https://wccftech.com/phison-dismisses-reports-of-windows-11-...

comment 1y ago · link · parent

Absolutely love this! I learned programming with VB.NET and it still holds a special place in my heart.

comment 1y ago · link · parent

Does it make a difference? More alternatives to Github is a good thing and alternatives mean nothing if no one is using them.

comment 1y ago · link · parent

Doesn't even work. On a Galaxy Fold 6 in the unfolded position using Firefox and quickly scrolling past row #150 broke the rendering completely. So much for fast performance as advertised.

comment 1y ago · link · parent

Yet modern software still feels very slow.

comment 1y ago · link · parent

The blog post shows clear effort that falls under the "hacker" umbrella. That I respect.

The author informing google of the exploit was not the complaint of the parent comment which I took issue with.

comment 1y ago · link · parent

> No idea why so many "hackers" doing "bypasses" ....

Because that's what it means to be a hacker. Yes, installing Firefox is simpler (and I'm a Firefox user) but I respect the effort to overcome Google's measures in disallowing certain addons.

86.

Microsoft will lay off 9k employees, or less than 4% of the company(techcrunch.com ↗)

10 points · by mrcsharp · 1y ago · 4 comments

87.

KolibriOS(kolibrios.org ↗)

5 points · by mrcsharp · 1y ago · 1 comment

comment 1y ago · link · parent

> I have a Dockerfile that contains the build instructions

So what's stopping you from doing this with dotnet? Going by your logic, no other programming language reaches your ideal "deployment story" the moment you reach for docker.

> Yes, and then my Linux machine that runs the server will happily run a Windows application. With all the dependencies, including the GPU toolkits.

Dotnet is cross platform. If you are targeting Linux then you can give that information using `dotnet build --os linux` and nuget packages that have platform-specific binaries would then supply the build with the correct binary.

> But even if we stay _within_ the MS ecosystem, the "just copy it" deployment doesn't cover everything. E.g. it can't change the settings of the "App Service Logs" from within the app itself. Of course you can also use Terraform for the infra, but at this point you're way off the "just copy a folder".

That's because it is not the job of any programming language compiler to make changes to cloud infrastructure. You know single responsibility and all that.

89.

Microsoft is moving antivirus providers out of the Windows kernel(theverge.com ↗)

98 points · by mrcsharp · 1y ago · 63 comments

1234567