5 ms·
I've found that rewriting an application from C# to something quicker like PHP or Go negates the whole need to do this kind of stuff because the C# application
by jijji 7y ago
I've found that rewriting an application from C# to something quicker like PHP or Go negates the whole need to do this kind of stuff because the C# application is 10x faster written in PHP or 20x faster written in Go. I love it when you change one line of a shared lib in C# and it takes an hour for the application to recompile.
- aliswe 7y agoAn hour? If you use NuGet you should be able to keep your compile times down. In my own projects I have maybe 10s compile times.
- seabrookmx 7y ago10x faster in PHP you say? I'd love to see such a benchmark!
- hinkley 7y agoGP seems to be placing a high premium on developer productivity. Given salaries in the valley these days, that’s probably not wrong. PHP, though...
- seabrookmx 7y ago> the C# application is 10x faster written in PHP My interpretation of this is that the parent commenter thinks the application runtime is faster in PHP than C#.. Modern (dotnet core) C# often beats the pants off go in webserver workloads (Golang likely has the edge in compute and certainly in anything that values startup time). I really don't see a universe where idiomatic PHP beats out idiomatic C# though. > I love it when you change one line of a shared lib in C# and it takes an hour for the application to recompile Here they switch gears to developer productivity. My employer has an extremely large (LoC in the millions) C# codebase that does a from-scratch compile (including C++ dependencies) in ~30minutes. On developer environments, this is incremental and while not as fast as we'd like, it only takes a handful of seconds per iteration if you're actively developing on it. If you aren't familiar with C# tooling or really value a REPL, other stacks _will_ likely be more productive. But like you're saying, at that point why PHP? Why not reach for Ruby (is that still hip?) or node or something?
- winrid 7y agoI think your issue with C# might not be the runtime... But yes, write your app in Java instead of Python and you might not need a bunch of servers for most workloads. The problem is, when you do... :)
- oblio 7y ago1. Compilation time != execution time. 2. PHP is ridiculously slow compared to C#. You're doing wrong (or whoever created the application did it wrong). Go is comparable, but not really faster. https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/csharp.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/php.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/go.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- strumpy123 7y agoyeah benchmarking all the stuff that is not really needed for a real web app.
- oblio 7y ago1. Not everything is an web app. 2. That stuff is deep inside the web frameworks you use, in some way or another. 3. There you go, bud: https://www.techempower.com/benchmarks/ https://www.techempower.com/benchmarks/ The first non-micro framework is ASP.NET Core. Personally, I don't think performance is everything. Spring (Java) is #221 in that ranking and I'd bet it's used in almost as many places as everything above it combined.