News for hackers. Stuff that matters.
Re:Cap'n Web: a new RPC system for browsers and web servers by squirrellous on Monday September 22, 2025 @08:32PM (#45341444)
Is there anything C# _doesn’t_ have? :-)

It feels like C# has an answer to every problem I’ve ever had with other languages - dynamic loading, ADTs with pattern matching, functional programming, whatever this expression tree is, reflection, etc etc. Yet somehow it’s still a niche language that isn't widely used (outside of particular ecosystems).

Re:Cap'n Web: a new RPC system for browsers and web servers by rjbwork on Monday September 22, 2025 @09:22PM (#45341771)
It's one of the most widely used languages out there actually. But it's primarily used at buttoned up and boring SMB's/enterprise backoffices. We're not out here touting our new framework of the month to kafloogle the whatzit. We're just building systems with a good language and ecosystem that's getting better every year.

I've worked only at startups/small businesses since I graduated university and it's all been in C#.

Re:Cap'n Web: a new RPC system for browsers and web servers by brainzap on Tuesday September 23, 2025 @06:26AM (#45345117)
getting better? many packages we been using did a license swap on us xD

fucking nice ecosystem

Re:Cap'n Web: a new RPC system for browsers and web servers by rjbwork on Tuesday September 23, 2025 @12:02PM (#45348904)
Fork it. End of the day some guys decided they wanted to make money and the corporations profiting off their labor weren't paying up. These things don't happen in a vacuum. Does your company have a multi-thousand dollar a year budget to make sure your dependencies are sustainable?
Re:Cap'n Web: a new RPC system for browsers and web servers by uzerfcwn on Tuesday September 23, 2025 @12:11AM (#45342768)
> Is there anything C# _doesn’t_ have?

Pi types, existential types and built-in macros to name a few.

Re:Cap'n Web: a new RPC system for browsers and web servers by moomin on Tuesday September 23, 2025 @05:21AM (#45344675)
Sum types are the ones I really miss. The others would be nice but processing heterogeneous streams is my biggest practical issue.
Re:Cap'n Web: a new RPC system for browsers and web servers by vaylian on Tuesday September 23, 2025 @03:32AM (#45343904)
It's funny how C# started out as a Java clone and then added a ton of features while Java stayed very conservative with new language features. And both languages are fine.
Re:Cap'n Web: a new RPC system for browsers and web servers by garblegarble on Tuesday September 23, 2025 @06:52AM (#45345289)
>Is there anything C# _doesn’t_ have?

You were maybe already getting at it, but as a kitchen sink language the answer is "simplicity". All these diverse language features increase cognitive load when reading code, so it's a complexity/utility tradeoff

Re:Cap'n Web: a new RPC system for browsers and web servers by dominicrose on Tuesday September 23, 2025 @08:14AM (#45345905)
As someone who dislikes clutter, in my experience it's just easier to read and write with these languages: Perl, PHP, Ruby, Python, Javascript, Smalltalk.

If you dare leave the safety of a compiler you'll find that Sublime Merge can still save you when rewriting a whole part of an app. That and manual testing (because automatic testing is also clutter).

If you think it's more professional to have a compiler I'd like to agree but then why did I run into a PHP job when looking for a Typescript one? Not an uncommon unfolding of events.

Re:Cap'n Web: a new RPC system for browsers and web servers by FungalRaincloud on Tuesday September 23, 2025 @12:36PM (#45349404)
I'm a bit surprised that you put PHP in that list. My current workload is in it, and a relatively modern version of it, so maybe that surprise will turn around soon, but I've always felt that PHP was more obnoxious than even C to read and write.

Granted, I started out on LISP. My version of "easy to read and write" might be slightly masochistic. But I love Perl and Python and Javascript are definitely "you can jump in and get shit done if you have worked in most languages. It might not be idiomatic, but it'll work"...

Re:Cap'n Web: a new RPC system for browsers and web servers by dominicrose on Wednesday September 24, 2025 @08:45AM (#45359531)
PHP is easy to get into because of the simple (and tolerant) syntax and extremely simple static typing system. The weak typing also means it's easier for beginners.

It does require twice the lines of PHP code to make a Ruby or Python program equivalent, or more if you add phpdoc and static types though, so it is easier to read/write Ruby or Python, but only after learning the details of the language. Ruby's syntax is very expressive but very complex if you don't know it by heart.

Re:Cap'n Web: a new RPC system for browsers and web servers by gwbas1c on Tuesday September 23, 2025 @08:46AM (#45346270)
Good abstractions around units (Apologies if there is a specific terminology that I should use.)

Specifically, I'd like to be able to have "inches" as a generic type, where it could be an int, long, float, double. Then I'd also like to have "length" as a generic type where it could be inches as a double, millimeters as a long, ect, ect.

I know they added generic numbers to the language in C# 7, so maybe there is a way to do it?

Re:Cap'n Web: a new RPC system for browsers and web servers by evntdrvn on Tuesday September 23, 2025 @10:03AM (#45347209)
Check out F# "units of measure" ;)