News for hackers. Stuff that matters.

greggman7

Re:Ask HN: Coding on an iPad? on Monday January 13, 2025 @04:11PM (#42689399)
Yes of course, Apple doesn't have to follow it's own rules.
Re:WordPress Is in Trouble on Monday January 13, 2025 @04:10PM (#42689391)
PHP integrates with the server. It does not have the spawn a new process per request like CGI
Re:WordPress Is in Trouble on Monday January 13, 2025 @03:24PM (#42688624)
What would replace it?

PHP is unique in that it makes sharing a server trivial and low-resource compared to almost every other solution.

A simple example might be that you can run 100s of PHP forums on a single machine low memory machine but if you want to use discourse (not written in PHP), it requires 10x 20x the resources for a single forum.

This is true about almost every other solution AFAICT.

Re:Ask HN: Coding on an iPad? on Monday January 13, 2025 @03:17PM (#42688492)
AFAIK this is still mostly forbidden by Apple

> 2.5.2 Apps should be self-contained in their bundles, and may not read or write data outside the designated container area, nor may they download, install, or execute code which introduces or changes features or functionality of the app, including other apps. Educational apps designed to teach, develop, or allow students to test executable code may, in limited circumstances, download code provided that such code is not used for other purposes. Such apps must make the source code provided by the app completely viewable and editable by the user.

https://developer.apple.com/app-store/review/guidelines/

So except for education you can't code on an iPad.

That said, you could access a website like stackblitz or codepen or codesandbox. No idea how well those run on iPad.

Ask HN: Why can't C++ compilers find this error?

Debugging some 3rd party library I ran into a "reference a stack object that no longer exists" error. repo #include <iostream> int* f() { int x = 4; int* xp = &x; return xp; } int main() { int* p = f(); std::cout << *p; } Without giving it much thought, why is this hard for a modern C++ compiler to detect?Note that gcc will detect some of...

( Read More... | 3 comments | on HN )
Re:Show HN: Shadeup – A language that makes WebGPU easier on Thursday January 18, 2024 @02:10AM (#39038892)
IIRC, WebGPU is shipping on Android in ~4 days

Safari Technology Preview finally turned it on again. Of course when Apple will ship it on Mac and/or iOS is unknown but at least they showed some progress after hiding for 6 or more months

Firefox is doing their best to ship ASAP.

Re:Niklaus Wirth has died on Thursday January 04, 2024 @02:29PM (#38871192)
I'm not suggesting Turbo Pascal was written in Modula2, I'm saying it implemented Modula2, not Pascal. Modula2 is a superset of Pascal. Pascal never had modules AFAIK but Turbo Pascal did.

https://en.wikipedia.org/wiki/Modula-2

Re:Making Small Games, Which Is Fun in Itself on Wednesday January 03, 2024 @11:10PM (#38862887)
This is super true. It's why programmers like writing game engines. It's relatively well defined all the parts needed so it feels like you're making lots of progress when in reality you're just re-inventing the wheel and not doing the truly hard part, the actual design and content creation. I'm super guilty of it myself.
Re:Making Small Games, Which Is Fun in Itself on Wednesday January 03, 2024 @11:08PM (#38862874)
I agree with you.

I watched some students prototype a simple diplomacy type game on paper first, targeted at phones. On paper people got it, talked to each other, negotiated. On the phone, people just stared at their screens, made choices entirely in isolation, no "diplomacy" what-so-ever.

Re:Niklaus Wirth has died on Wednesday January 03, 2024 @07:52PM (#38861802)
Lords of the Rising Sun was written in Modula2 on the Amiga

https://www.google.com/search?q=lords+of+the+rising+sun

My understanding (please correct me) is that Turbo Pascal on PC was actually Modula2 ?