helloworder

u/helloworder


r/PHP•

Swoole AOT compiler has been renamed to TypePHP.

They're now explicitly positioning it as a separate, statically typed compiled language rather than "just" an AOT compiler for PHP.

How it (supposedly) works:

  • PHP compatible syntax.
  • Compiles directly to native machine code instead of ZendVM opcodes.
  • ZendVM is still embedded as a runtime.
  • Compiled code can require / include regular PHP files at runtime.
  • Composer packages, autoloading, and extensions like curl, PDO, mysqli, and Swoole are supposed to keep working.

Some interesting features:

  • Native Decimal, BigInt, and BigFloat types.
    • 0.1 + 0.2 === 0.3 without precision issues.
  • Typed containers alongside regular PH
3638

r/berlinsocialclub•

Hello Berliners.

My partner and I are currently looking to buy an apartment in Berlin. Tbh, the market is a bit crazy at the moment, but we fell in love with one apartment in a building from 1930.

I’ve never lived in an Altbau (we’re currently renting a Neubau flat), so I have a few concerns and would really appreciate it if someone with similar experience could share their thoughts:

  1. it’s on the top floor (no one lives above, just the roof). Does that usually mean less noise from neighbours?

  2. there’s no elevator. It is only the 4th floor, but I’m wondering about things like Ikea deliveries. Have you had issues with that? I’ve never lived in a building without a lift.

  3. is it a goo

539

r/Minecraft•

I am using Java Realms set to use the latest snapshot. Now with the april fools my realm got auto-updated to use this snapshot, since it is latest.

But I don't wanna do so, I want to use the non-april fools snapshot, how do I do this?

11


r/PHP•

Hi everyone!

I wanted to play with hot new PHP features, but am hardstuck with 7.4 version on current job, so it made me decide to create a small project to test waters with new features.

So here it is, it is a hand written parser with zero dependencies, which translates Golang code to an AST, written in PHP 8.1.

https://github.com/tuqqu/go-parser

Feel free to provide feedback!

4712

r/PHP•

Personally I feel PHP needs this RFC.

It adds parity between the built-in features and userland features of the language, because we already have overloaded operations for some internal classes.

It also will surely make life easier for some math libraries, while other libraries that do not require this feature will not be affected at all.

Sure it might be misused just as any other feature of the language currently. Many modern programming languages have this feature and it turns out to be a very useful tool (Python, Rust, C#, C++ to name a few).

I also like the operator +() approach of this RFC instead of the magic method approach of the previous one.

[The link](https://wiki.php.net/

4065


r/rust•

Oxide is a programming language I have been working on on my free time for fun.

https://github.com/tuqqu/oxide-lang (there are examples there!)

It is an interpreted, yet typed, scripting language. It is written in Rust and most of its syntax resembles Rust syntax.

I believe any Rust programmer would find it quite easy to read code. :)

This is my first attempt to create a language and it turned out to be a lot of fun!

A lot of features are already implemented, it supports structs, impl blocks, first-class functions and vectors of data etc.

306

https://github.com/tuqqu/oxide-lang

Oxide is a programming language I have been working on on my free time for fun.

This is my first attempt to write a programming language and I did enjoy doing it. The syntax is Rust influenced on surface, but feels like a more traditional C-like language.

I wrote a simple documentation as well as example programs to give an overview of the language.

There are still things WIP, but mostly it is stable with the features it has right now.

9519

r/PHP•

There is a discussions on externals.io (here) regarding which names ought to be chosen for future additions to the core PHP library.

TL;DR two functions are being proposed that work for iterables (any and all) and it is not really cool to add them globally.

Author of the RFC made two polls: first, second. In the first one it was proposed to add them globally and the winner is iterable_any/iterable_all. The second one is just started and the proposed namespaced versions are `Spl\any() Spl\an

1222