73 points · by shanselman · 7y ago · 89 comments
https://news.ycombinator.com/item?id=20738557
TAForObvReasons: The actual Project repo https://github.com/ServiceStack/ServiceStack appears to be AGPL3 with some exceptions
mythz: The Exceptions are for OSS projects, where it can be used as the OSS license for that project. Regardless it's completely free to use for both commercial/non-commercial usage.
#Script started out as an alternative to Razor Pages [1] (where it was initially called ServiceStack Templates [2]) to give ServiceStack Apps a productive alternative to Razor for developing server-driven Web Apps, but as it's highly extensible without external deps or reliance in external tooling it was easy to re-purpose as a dynamic emeddable language to be able to basically script any .NET App, hence the rebrand to a stand-alone #Script language, all the whilst its implementation remained in the core ServiceStack.Common assembly. If it becomes an issue we can look at pulling it out of the main ServiceStack repo in a stand-alone repo with a weaker copyleft OSS license, but it would require a bit of work and would need to ensure it's not disruptive to existing ServiceStack Customers, I just didn't expect there to be any issue for a gratis library that's also OSS.
Incidentally the ServiceStack.Glue library that the Desktop Apps use to embed .NET Core Apps in a Chromium Desktop Shell is MIT [3].
[1] https://sharpscript.net/docs/sharp-pages
I was almost sold on sharpscript for handling our email templating needs until I realized how obfuscated the licensing and overall project structure is. I've been reading through threads about it on HN for 2 days now, and still don't have a clear understanding of what the real intentions are here.
If I just follow the rabbit hole from the #script nuget.org page:
https://www.nuget.org/packages/ServiceStack.Common
I wind up at the following license URL:
https://servicestack.net/terms
Which has the following:
"Use of the Software and Documentation is subject to the restrictions contained in this Agreement. ServiceStack, Inc. grants you a non-exclusive, limited, non-transferable, freely revocable license to use the Software. ServiceStack, Inc. reserves all rights not expressly granted herein in the Software and the Content and may terminate this license at any time for any reason or no reason."
I will not be using this software. If anyone wants to change my mind, pull sharpscript into its own repository, give it its own nuget, and post crystal clear license terms alongside each which do not contain any sort of legal backdoors where you get to rip the rug out from under me at some arbitrary point in the future. If you want money for this, just ask for it up front and be honest with your intentions. I may actually consider purchasing a license if the terms aren't trashy like in the current license above.
As mentioned in my parent comment you've replied to, I'll consider pulling it into its own repo with a liberal OSS license, but it would be a lot of work since it's included in a core library and any changes can't disrupt existing Customers already using it. But wont be anytime soon as I'm already overloaded with other higher priority features I have to work on.
> I may actually consider purchasing a license if the terms aren't trashy like in the current license above.
I've no intentions to ever sell any licenses to use #Script, it will always be free.
"may terminate this license at any time for any reason or no reason"
How could anyone build a business on this?
On the one hand you state "All other ServiceStack Software inc. all client libraries, inc. Serialization and ServiceStack.Common (containing #Script) are unrestricted libraries which can be used for free without a commercial Developers license in both commercial/non-commercial projects"
On the other hand your terms state "Subject to the terms of this Agreement, Licensee is granted a right to use the Software for small projects and evaluation purposes without charge provided that use of the Software is within the "Free Usage Quota" published on Licensor's website at servicestack.net."
"small projects and evaluation" is not free to use without restriction.
All the packages I've listed do not have any free-quota restrictions so they don't require a paid Developers license to enable unrestricted usage, since they already don't have any restrictions.
- nonstandard license = legal will have to review license
- AGPLv3 is a non-starter at many places
AGPLv3 software is used in some places, but projects normally license the pre-compiled binaries under more permissive terms. Example: mattermost is AGPLv3 but the binaries are MIT-licensed https://github.com/mattermost/mattermost-server/blob/master/... so it'll be easier to get approval to use the binaries.
I'm sure SharpScript is a cool technology, but some of your licensing choices really hamper adoption.
All other usages of ServiceStack from its official NuGet packages are only available under its commercial license which only requires a paid developers license for its commercial products that contains free-quota usage restrictions [1]. The rest of ServiceStack, inc. all core and client libraries like ServiceStack.Text, ServiceStack.Common (containing #Script), ServiceStack.Client, etc are all unrestricted libraries that are available to use graits/for free.
The promise of "run anywhere" has more or less been fulfilled by the web, but it leaves a lot to be desired: shared code is duplicated on every site, the only language available has... quirks to say the least, and performance is always an issue. This seems to solve a lot of these problems, while usable webAssembly is still a long way off (and doesn't resolve all the issues above).
I have seen lots of cool stuff from MS wither on the vine. Hopefully this does a little better.
I see this a lot, can you point out which quirks still remain in modern JS? Performance is quite fast with today's modern JIT VMs.
Edit: can anyone give me the one-paragraph rational for why Net Core should take the world by storm? C# is a nice language and I'm a mostly happy VS user (except when I have to fiddle with MSBuild), but why should I go in and change the dropdown from ".Net Framework 4.5.2" to ".Net Core"? Let alone why any user of, say, Python or Node should drop everything and come over to C#.
Honestly, .NET core makes a lot of sense for new projects that need to be highly scalable. If you have an API service that's hosted in a cloud provider, or a tool that generates PDFs of items, or a tool that scrapes API data and chucks it in a database, then this is great. These are simple applications that do not need an awful lot of authentication, crazy UI frameworks, or other windows-only features.
The code itself runs faster [1]. It might not matter for business / CRUD applications, but that's a nice to have thing.
The biggest selling point is cross platform support. Now, I don't care if the company switches from Windows 2016 VM's to some variation of RHEL. My code will work on that too. This gives your organization improved flexibility and reduced technical debt.
If you have a big legacy application using .NET Framework, it's probably not worth rewriting it for .NET Core. You will run into package conflicts. I have had to rewrite ".NET Framework only" pacakges to support .NET Core. That will throw your estimates off and probably delay the project. And that becomes really difficult to justify to project stakeholders.
[1]: https://www.ageofascent.com/2019/02/04/asp-net-core-saturati...
I tried 2-3 times up to and including .NET Standard 2.0 to switch and got burned by busted tooling and package conflicts every time. I’m starting a new project now and am still wary.
This is why it is very interesting that the next "Core" release is to be called ".NET 5". No more "Framework", no more "Core". Simple version math applies: .NET 5 > .NET Framework v4.6.8 && .NET 5 > .NET Core 3.0. Maybe it will be less confusion all around, hopefully, soon.
Besides this future perspective, the real benefit from it you have today is that your project will (unless it uses Windows APIs, which is unfortunately way too common) instantly run on Linux.
1. The cost of moving a standard .NET application to .NET Core. If the benefit is there, it'll happen, but for established code bases I don't see why they'd bother when standard .NET works fine.
2. On the web side of things, many of the big content management systems aren't on .NET Core yet. Umbraco is the king of CMS's on .NET, and once they pull their finger out and focus on .NET Core I think we'll see a wave of developers moving to Core.
3. For general web stuff, there isn't a solid reason for people to move from the likes of Ruby, PHP, and Python to C#/.NET Core.
4. There's still a perception that .NET Core is a WIP. That's understandable, considering .NET has been battle-tested for decades, and .NET Core is still (relatively) new to the party. There was also the csproj issues from a while back, and that set off a few people from fully switching.
5. The naming has confused everyone, so the safe option is to wait for everything to sort itself out. .NET isn't going anywhere just yet, and the switch to .NET Core won't be a huge one for those that have had to adapt to new C# and .NET libraries over the years anyway.
The big difference for me is that many .NET shops rely heavily on certain libraries and tools, and many of them are very slow to adapt. Umbraco, as a prime example, recently upgraded to Angular 2 for its admin section, and is probably a year or two away from an initial move to .NET Core.
Especially .Net Core's dotnet command is a wonderful tool that allows you to do basically everything with it - it can run, compile, even run tests - completely on the command line.
.Net documentation is however VERY crusty in my experience - all the fragmentation and outdatedness can very well lead to you accidentally reading and trying documentation that is 3 major changes behind, for a library version that has long been replaced. Nowhere will you find any warnings. That is hugely frustrating.
Visual Studio itself also makes a very broken impression to me, although admittedly it appears to improve.
Not sure whether that's going to be enough to keep Windows or .Net alive in the long term, since even Microsoft is moving to embedded Web apps now, abandoning their own 3 different UI solutions they have been pushing in the last 20 years (completely ignoring the 3rd party efforts like platform.uno, which they could probably acquire quite easily - seriously: Xamarin, but not this?!).
> Because most 'real .net devs' still work on .NET 4.x legacy
That may be true, but .net core is definitely aiming to increase adoption and it makes a compelling case. The new stuff is a pleasure to use.I almost wish Microsoft would stop putting much effort into dead ends, however. It's going to be possible to use WPF and even Windows Forms after .net 5 transition (they'll be windows-only libraries). VB .NET is still kicking (just let it die already). I wish they would have folded all those person-hours into .net core stuff instead.
It is their escape route when they outgrow Excel/VBA.
https://devblogs.microsoft.com/dotnet/net-core-3-and-support...
For cross platform there isn't an official solution, the closest would be deploying as an Electron app.
It may change with the shift to open source but I'm not holding my breath.
IMO, that means that. Net was never targeting the early adopter market. Ergo, their new platform, which is just different enough, isn't probably having many adopters. Secondly, having to wait for libraries to catch up is probably a real reason initially (till.net standard 2.0?) But that just meant when slower adoption.
Add to this, to maintain cross platform tooling, they're now have cli first tooling and flux around fileformats. That imo, made a lot of the traditional .net shops uncomfortable.
I've jumped b/w .net and Java and very comfy with Linux. Last few years have been. Net and .net core in prod. after 2.0+, it's been absolutely wonderful. Great language ergonomics and I can finally ditch vs for vs code. 3.0 is only going to make it better
But then, I'm probably far from the representative .net dev here.
I've been using standard 2.0 for new projects since it became available and building for dual deployment, either with Heroku or as a Windows service.
There's definitely a crowd of .net devs that doesn't care. They're probably not the ones on HN though. I've been holding my breathe waiting for all the libraries to catch up. We're so close!
I actually moved to .NET by choice for the Nemerle language a long time ago (C# mostly caught up, so I switched over). I might not be representative of everyone, but there's at least a subset of developers eagerly waiting on some small thing which will let them make the jump.
EF (not-Core) 6.3 has also been finally ported to .NET Core (though I think it is still considered "Preview" quality) which should be directly plug and play for some types of legacy applications (Microsoft seems hopeful it will mean more WinForms and WPF apps will just run on .NET Core now).
https://support.microsoft.com/en-gb/help/17455/lifecycle-faq...
Yep I know of a few places doing it.
Why isn't .NET taking over from python/node-with-typescript projects?
I haven't given net core 3 a trial yet but will use serial ports as my initial tests. In the 1.x and 2.x versions the serial port support was not up to the same level as the net framework.
Some of the .NET core stuff is pretty neat for basic demos to show off the tech. But for actual enterprise stuff I've so far found it really frustrating to work with.
There's no need to rewrite working .NET Framework apps, but .NET Core has seen massive uptake with cross-platform development and runtime, incredible performance, and interoperability with just about every other common open source languages and projects.