HN user

rafark

436 karma
Posts3
Comments251
View on HN

Will you look at it. Another Wordpress “killer”. Wordpress has that market share because it can be easily installed in a wide variety of servers and because of its plugin ecosystem of dozens of thousands of plugins and huge flexibility/customizability. Wordpress is one of the most flexible pieces of software out there and none of the competition seem to get why Wordpress is so popular.

Are they doubling down on local LLMs then?

I love the push to local llms. But it’s hilarious how apple a few years ago was so reluctant to even mention “AI” in its keynotes and fast forward a couple years they’ve fully embraced it. I mean I like that they embraced it rather than be “different” (stubborn) and stay behind the tech industry. It’s the smart choice. I just think it’s funny.

Your last statement is false. A shady merchant never gets to keep the stolen money.

Or any merchant for that matter. Chargebacks (from bad actors) are one of the most annoying things when you sell online when you’re a honest legit business. Stripe even charges you a penalty fee on top of that.

I said exactly this a few days ago elsewhere. It’s disappointing that they (and often other American companies) seem to restrict their “respect” and morals to Americans only. Or maybe it’s just semantics or context because the topic at hand is about americans? I don’t know but it gives “my people are more important than your people”, exactly as you said in your last paragraph

Gemini 3.1 Pro 5 months ago

there could be a point where we can use them to just make arbitrary UIs and interactive media with raw SVGs

So render ui elements using xml-like code in a web browser? You’re not going to believe me when I tell you this…

Omg yes finally someone acknowledges this. I am always pointing out how react and jsx are a port of XHP. This is why react was class based at first (because php is a class based OO language).

Hack was created later though. XHP was a php 5 extension created around 2008

Because button is literally anything clickable. Not everything is a boxed button. You cannot just globally add a style to <buttton> and call it a day. For example, an upvote (^) button, a close (x) button, etc. A lot of clickable elements aren’t inside a [click me] box

Correct. Every char outside of a php tag is treated as output, like in a templating engine. So if you start with spaces in a non template file (class definition etc) the spaces will be sent as output which messes up the http response.

Id love to have a dedicated file extension for source files only, like .p or something that disables the php tags because in this day and age the vast majority of php files aren’t templates

Speaking of php slack was built with php until they followed Facebook with Hack (which is essentially a modern flavor of php)

Really? That’s actually a very narrow view to think that AIs need to rely on code examples of some third party forum.

AIs will be good enough to understand the docs and source code alone, just like the human answering a stackoverflow question.

the docs don't cut it

Yet. By the time stackoverlow shuts down, AIs will be powerful enough to take data from docs or just from the source code alone. I mean the new version of opus is pretty good at understanding my front end source code. I think that should be the goal of AIs (that they are so advanced they don’t need to read code examples from a third party website like stackoverflow)

PHP 8.5 8 months ago

Would it though? I’ve been thinking about this for a while.

What about introducing a new file extension for this? Something like MyClass.p so that .php is for classic syntax and .p Can support newer syntax? You could support old codebases while at the same time support better syntax.

It’s probably too much for the core php team to maintain both though

PHP 8.5 8 months ago

Like the match keyword, enums, closures etc. They are half-baked versions of what could be powerful and expressive features.

The problem is that the php project is maintained by (mostly) unsponsored contributors. There’s not a giant corporation behind it. Each of these new features are designed by a couple people (per rfc) and then discussed and voted by other contributors. The match keyword, for example, is consider as the future scope of this rfc which is still being worked on: https://wiki.php.net/rfc/pattern-matching

Also, a lot of these half baked features are designed to be implemented in steps because of what I said in my other paragraph and to increase the odds of being accepted (it’s well known that it’s hard to get an rfc accepted and a lot of good ones haven’t been able to pass the voting phase).

When you consider this, it’s amazing that we get so much from so little.

PHP 8.5 8 months ago

The examples in TFA are terrible and I don't get why it was necessary to jump the gun by submitting that article instead of actually waiting for the release and the official release page with more carefully designed examples.

Clout.

Google Antigravity 8 months ago

just about everyone knows how to navigate in vscode by now.

I don’t know and honestly I hate the assumption of the software industry that everyone knows or uses vs code. I stuck to sublime for years until I made the switch to Jetbrains IDEs earlier this year.

I quickly looked up the market share and VS code seems to have about 70% which is a lot but the 30% that don’t use it is not that small of a number either.

Like I get it it’s very popular but it’s far from the only editor/IDE people use.

Meow.camera 9 months ago

Future generations are gonna look back at us for our treatment of animals, especially farmed animals, much the way we look back at our slave owning ancestors.

A lot of people already do.

Hopefully technology (robots) and science (lab grown meat) can accelerate this.

Yeah it’s really good. A few weeks ago, some third party script was messing with click events of my react buttons so I figured I should just add a mousedown even to capture the click before the other script. It was late at night and I was exhausted so I wanted to do a quick and dirty approach of simulating a click after a few ms after the mousedown even. So I told Gemini my plan and asked it to tell me the average time in ms for a click event in order to simulate it… and I was shocked when it straight up refused and told me instead to trigger the event on mouseup in combination with mousedown (on mouse down set state and on mouse up check the state and trigger the event). This was of course a much better solution. I was shocked at how it understood the problem perfectly and instead of giving me exactly what I asked for it gave me the right way to go about it.

Just as a fun fact, React’s jsx is actually a port of XHP which was initially developed for PHP in 2009 I believe. This would explain why react’s components were class based at first (because php leans heavily towards class based OO programming).

What feature does it offer that other scripting languages don't?

It has pretty much the best type support of all other similar languages (typescript is a different category). It also has the best implementation of class-based object oriented features (interfaces, classes, abstract classes, etc). These features are incredible for designing OO systems from scratch. The only big feature missing is generics.

Correct. I’ve been using ai chatbots more and more instead of google search (I still use google quite a lot but considerably less than a year or two ago).

...but ironically that chatbot is Gemini from ai studio, so still the same company but a different product. Google search will look very different in the next 5-10 years compared to the same period a decade ago.