News for hackers. Stuff that matters.

jakubmisek

Re:What's New in PHP Extension for Visual Studio Code on Tuesday February 24, 2026 @11:03AM (#47138775)
The end of 2025 and the beginning of 2026 brought another substantial update to the PHP extension for Visual Studio Code by DEVSENSE. This release focuses on deeper code understanding, smarter refactorings, better framework support, full alignment with the latest PHP language changes, and stability. Alongside major IntelliSense improvements and advanced generics support, we’ve also delivered significant performance optimizations to make your daily development smoother than ever.
Re:.NET 8 Standalone 50% Smaller On Linux on Saturday November 11, 2023 @02:44PM (#38233788)
We already had a huge C# console project originaly developed for windows/.net framework 4.5 ..

.net on Linux was a zero cost transition, giving us a whole new platform, a whole new user base. It was that easy.

Re:Logic Snake Game – Snake Go (Android) on Friday February 03, 2023 @10:17AM (#34642137)
Solve the logic snake game! Find a way, eat the coins, and reach the exit... Can you make it in as few moves as possible?
Re:Another iOS Snake Game on Saturday October 08, 2022 @10:21AM (#33132485)
need to come with more exciting title next time!
And one of the features caused memory leaking in PHP for a decade. .NET has real garbage collection, we can take advantage of it.
For example one CLR limitation - `yield` cannot be in a catch block. Two workarounds - compiler can generate a crazy state machine or user can just move the PHP yield outside the catch.

Error handling is a big issue - in PHP every notice and warning can be handled in user code, in .NET we use Debug Assertions or exceptions. But .NET has threads and async which shares one thread by more requests, so in case of error we just don't know what request has to handle the error. We would have to pass some request context object to every function in runtime in order to be able to let the correct request's error_handler to handle the error - or we just assume warnings and errors should not happen and crash when it does.

Garbage Collection - for performance reasons (and sanity) we let .NET GC to do its job. But unlike PHP's GC it is undeterministic and does its job on a different thread. For now, __destruct is not handled in Peachpie yet cause there are more ways on how to simulate PHPs behavior.

Changing existing closure's $this to anything - well.. besides it would make type analysis useless, it totaly violates strong .NET method access checks.

You're right, 7.0 for example deprecates/removes some dirty practices that are hard to implement in .NET
Good point. In case of Peachpie microbenchmarks - that time it was the only pieces code that could be compiled ... We'll try to update benchmarks for more complex solutions.
Disclaimer - Peachpie dev. Some of the weird PHP constructs will never work - by purpose. In such case it will be reported in compile-time or at least in run-time. However, there is always a way of slightly changing the original code to make it running on .NET.
Re:WordPress on .NET on Tuesday February 28, 2017 @03:25PM (#13757503)
Interesting question. Beside that ASP.NET limits request size, Peachpie uses .NET hash function that differs from that used in PHP. Am I close ?
Re:WordPress on .NET on Tuesday February 28, 2017 @10:15AM (#13754277)
there are links to MS blogs and livecasts http://www.peachpie.io/resources and of course youtube channel https://www.youtube.com/channel/UC5Hh61n9HFyqYbU4iFkqy4A
Re:WordPress on .NET on Tuesday February 28, 2017 @09:26AM (#13753919)
Just noticed a similar comment below - the openssl library which PHP is strugling with with every update. Peachpie uses the one in OS through the .NET being updated e.g. by Windows Update. So maybe "most secure" is too strong, but it is definitely more secure.
Re:WordPress on .NET on Tuesday February 28, 2017 @09:18AM (#13753879)
j-php - but they don't try to be able to run existing apps
Re:WordPress on .NET on Tuesday February 28, 2017 @09:15AM (#13753861)
True, I've been noted, for example, about issues with openssl library, which is updated with every update of PHP ... while Peachpie uses the one provided within .NET which might be more frequently updated by Windows Update.
Re:WordPress on .NET on Tuesday February 28, 2017 @09:12AM (#13753849)
Currently there are few microbenchmarks on http://www.peachpie.io/benchmarks Expecting to be updated soon
Re:Running PHP in .NET with Peachpie on Wednesday March 30, 2016 @09:26AM (#11389050)
Maybe?
Re:Running PHP in .NET with Peachpie on Tuesday March 29, 2016 @10:49AM (#11381852)
Exactly!
Re:Running PHP in .NET with Peachpie on Tuesday March 29, 2016 @10:08AM (#11381561)
Imagine deriving a C# class in PHP and then deriving it back in C# and then using it in PHP!
Re:Running PHP in .NET with Peachpie on Tuesday March 29, 2016 @09:15AM (#11381180)
Thats progress!