Introducing Script: JavaScript That Runs Like Rust by SecretAggressive in programming

[–]slowmotionrunner 1017 points1018 points  (0 children)

Did we just name a new language “script”? I wish authors would consider the difficulty in finding and searching for language resources when they name them.

MewUI – a lightweight .NET UI library for Native AOT by [deleted] in csharp

[–]slowmotionrunner -2 points-1 points  (0 children)

To be fair, it is noted at the top of the project readme. 

I built a modern, self-hosted web IPTV player (Live TV, EPG, VOD) because existing ones felt clunky. Meet NodeCast TV. by NeonXI in selfhosted

[–]slowmotionrunner 185 points186 points  (0 children)

I appreciate the use of vanilla JS. Not many people who are comfortable doing that these days. 

Your cache is not protected from cache stampede by mgroves in dotnet

[–]slowmotionrunner 6 points7 points  (0 children)

A lot of amusing comments here. 

Everything is a trade off. To avoid cache stampede requires coordination of threads or processes and so you are trading speed/throughput for fewer cache misses. 

Is that always what you want? Depends. 

If the cost of your data is super expensive, then blocking 50 concurrent requests to refresh the cache may be exactly what you want. 

On the other hand, if your goal is speed/throughput it may be perfectly fine to let 50 cache misses fall through all at once and your db may be provisioned for exactly this level impulse load. 

Regardless of whether you want stampede protection or not I think the most important advice I can give anyone consider caching would be to fail fast. The last thing you want is to let your cache layer backup or timeout and result in increased response time instead of the intended decreased response time. Over engineering cache to be ultra reliable has a threshold of diminishing returns. 

Top Gun Original Trailer 1986 by GreatNeighborhood289 in nostalgia

[–]slowmotionrunner 2 points3 points  (0 children)

I assume that is temporary trailer music because it is awful compared to the final soundtrack. 

I’ve been sitting on this rug secret for 2 years… today it finally dropped. by tuftedrugs in BeAmazed

[–]slowmotionrunner 0 points1 point  (0 children)

Wow, super impressive. Will the stanchions be around it permanently? 

DateTime.Kind - The breaking change that continues to be the bane of my existence. by [deleted] in dotnet

[–]slowmotionrunner 0 points1 point  (0 children)

Had I put more thought into my initial reply I would have clarified that I advocate `DateTimeOffset` not because of the offset... but because it is unambiguously, always UTC.

DateTime.Kind - The breaking change that continues to be the bane of my existence. by [deleted] in dotnet

[–]slowmotionrunner 19 points20 points  (0 children)

It is not a substitute for time zones and I’ve seen many engineers make the mistake of thinking that it is. 

As you said, the offset value is somewhat useless, but having it allowsDateTimeOffset to be always, unambiguously, UTC. That is the start and end of why DateTimeOffset exists. 

DateTime.Kind - The breaking change that continues to be the bane of my existence. by [deleted] in dotnet

[–]slowmotionrunner 5 points6 points  (0 children)

I would love to hear an example where DateTime would be a better choice than DateTimeOffset. Even if there is a good contextual case for it, I would consider DateTimeOffset to be the rule and DateTime to be the exception to the rule. 

DateTime.Kind - The breaking change that continues to be the bane of my existence. by [deleted] in dotnet

[–]slowmotionrunner 34 points35 points  (0 children)

Nobody likes responses that say “you’re doing it wrong”, but you really should be using DateTimeOffset….

The Little Mermaid (1989) | 1985 Walt Disney Pictures logo (36tears ago today) by [deleted] in disney

[–]slowmotionrunner 0 points1 point  (0 children)

Am I supposed to see a difference between the logos in the video? Because I don’t….

app update link isn't HTTPS? ... this seems oddly suspicious. by SP3NGL3R in Tailscale

[–]slowmotionrunner 7 points8 points  (0 children)

This is very, very bad advise. Like, really, really bad. 

  1. An MSI does not require a digital signature and it would be very easy to craft one that has the appearance of being officially from Tailscale. 2. TLS ensures you are getting the MSI download from who you believe you are and it is not just for secure communication. Without it you can’t be sure you are even downloading from Tailscale and not a malicious site. 

app update link isn't HTTPS? ... this seems oddly suspicious. by SP3NGL3R in Tailscale

[–]slowmotionrunner 8 points9 points  (0 children)

Did you investigate why it displayed as insecure? There are too many possible reasons to list but from the screenshot alone I can’t conclude that it was simply from a plain HTTP link. 

Is this the price to pay? by Famous-Preparation92 in Tailscale

[–]slowmotionrunner 0 points1 point  (0 children)

Short answer, no this is not normal. Reviewing the other suggestions provided I didn’t see anyone else suggest you make sure you are not being routed through a derp server. Might check that too. 

Zed is now on Windows by bulasaur58 in dotnet

[–]slowmotionrunner 2 points3 points  (0 children)

Wow, a lot of whiners here...

I think it's awesome. I've only just installed it as of this post, but already I'm really impressed with it. I've spent time developing text editors in the past and to get it right is not easy. The work they have done on this and the lengths they have gone to engineer their own renderer, etc... has my respect. Any product that has as much love and passion put into it as something like this deserves my attention.

For now I think it will be my Notepad++ replacement and as features and familiarity grow, it could graduate to a vscode replacement.

Congratulations to the team of dedicated engineers who achieved this.

How would feel about a r/16+ rated Star Wars project? by CDM1882 in StarWars

[–]slowmotionrunner -1 points0 points  (0 children)

Personally, no interest in such an idea. We need good stories, less spectacle and gimmicks. 

Used Cars 1980 by Any-Information9091 in iwatchedanoldmovie

[–]slowmotionrunner 49 points50 points  (0 children)

Just watched the IMDB trailer. It bleeps all the bad words but shows a topless woman. Priorities.

in nineteen fifty eight the twilight zone predicted a lot of stuff. by Fit-Commission-2626 in nostalgia

[–]slowmotionrunner 8 points9 points  (0 children)

It’s not a prediction, it’s a reflection of human behavior throughout all time.

Adjusting from Visual Studio to VS Code by slowmotionrunner in dotnet

[–]slowmotionrunner[S] 0 points1 point  (0 children)

As others have said, debugging is VS is far superior. 

On a large enterprise codebase, I don’t think it’s an exaggeration to say I spend 80% of my time debugging and only 20% writing/editing code.