News for hackers. Stuff that matters.

IvanK_net

Re:Scattered thoughts on how doing math feels these days on Thursday October 29, 2026 @07:40PM (#50297823)
How do you know it was written by a human? All we can do is to believe the author.
Re:A simplified proof of ETH is False [pdf] on Tuesday October 27, 2026 @04:01AM (#50255883)
Was this simplified version made by AI, or did a real person write it?
Re:I guess I'm using WebP now? on Sunday October 11, 2026 @07:05PM (#50048976)
For the past two years, I have been exporting my images in WebP instead of JPG. If I share it online or send it by an email, I am pretty sure the other side will be able to see them.

I honestly think that all phones and even professional cameras should replace JPG with WEBP, we will have like 30% smaller photos.

The DNG format (for raw photos) allows JPEG XL compression (it used to allow only JPEG in the past). I wish some country made it mandatory for cameras to let user take photos in DNG (just like USB-C is mandatory in the EU).

I am happy that HEIC from Apple did not take off (as it was proprietary, protected by patents).

Github asked me to file a new ticket, so it is all under Ticket 4833281 now.
Re:Shipping JPEG XL in Chrome on Wednesday October 07, 2026 @03:02PM (#49997307)
The support for WEBP images across the industry is like 100x better than AVIF or JXL.
Thanks! One is Ticket 4822535, another is Ticket 4726557.

Github did take down this https://github.com/spooknik/Photopea-Appimage and other repos in the past, but now, I feel like I talk to a robot. I am happy to hear that they have real employee! :D

Hey guys, thank you all very much for your comments! I just woke up, I did not really believe my post would get this much attention, so thanks!

Honestly, I was a hoping that giving attention to this problem here at HN might lead to someone from Github actually noticing my problem and looking into it.

I think I will try solving it with a lawyer. But it would be really cool if I could spend my days writing code instead of dealing with lawyers and stuff.

These Github repositories contain copies of my JS files (identical JS - letter by letter), with a few lines deleted to allow running it on any domain.

I wanted to discuss the behaviour of Github without giving these "projects" even more attention.

Re:Vibecoding Photoshop: Time and pressure on Wednesday October 07, 2026 @02:27AM (#49989070)
It is the question I get asked the most. I pronounce it "photo-P", but I am the minority :D

https://x.com/photopeacom/status/1492164676200841227

Re:Vibecoding Photoshop: Time and pressure on Wednesday October 07, 2026 @02:24AM (#49989051)
Thanks a lot!

1) About 30% of my original code is open-source as JS libraries: they end with ".js"-https://github.com/photopea?tab=repositories

2) WASM is not faster than Javascript "by default". Both can be fast or slow depending on how you write it. I don't think having everything in WASM would make Photopea significantly faster. Also, Photopea uses many libraries as WASM (WEBP decoding, ZSTD decoding, JPG decoding, Harfbuzz, ... JXL / AVIF encoding)

3) I never used any Framework, but if it is just a bunch of a JS code, I think I managed to write an equally good JS code for the UI over the past 14 years.

Re:Vibecoding Photoshop: Time and pressure on Tuesday October 06, 2026 @07:26PM (#49985641)
By the way, PhotoSuite is just a stolen copy of my project www.photopea.com , which I have been working on for 8 hours a day for the past ... 14 years? :D

It was discussed here on HN yesterday and then, the anonymous person behind it removed the "Issues" section completely from their Github

https://news.ycombinator.com/item?id=49972730

https://replayweb.page/?source=https://archive.org/cors/gith...

There have been only two photo editors that fully support the PSD format: Photopea and Adobe Photoshop. When a new one appears, which fully supports the PSD format, from an anonymous creator, it is very likely a copy one of these two. And they usually name it Photopea-offline, etc.
Wow, that might actually work, thanks!

GitHub Refuses To Remove Cracked Copies Of My Software Even After A Month

I am a developer of https://www.photopea.com, a popular photo editor that runs in a web browser.Many people are asking AI models to take the Javascript code from my website, remove all ads from it, and they publish such a "new product" on Github for everyone to download.There exist tens of such repositories on Github. I want my website to be the only source of a stable version of my program...

( Read More... | 352 comments | 9 points | on HN )
Re:Photopea creator weighs in on Photosuite project on Tuesday October 06, 2026 @10:54AM (#49979440)
That is really awful :( I tried posting about it on X, but I shouold probably try HN. https://x.com/photopeacom/status/2106877355738140875
Re:Photopea creator weighs in on Photosuite project on Tuesday October 06, 2026 @07:28AM (#49976951)
To make sure that AI never uses your work (source code or binaries) for training, I see two possible solutions:

- the software would run only on your own server and clients will access it remotely through an interface

- you will sell the software together with the hardware and a proprietary operating system, which does not allow anyone to get the ones and zeros of your software

So, the only way to prevent GTA6 being "decompiled" and "forked" by AI models is to run it remotely (with a video interface), or sell it together with a proprietary console :D

Re:Photopea creator weighs in on Photosuite project on Tuesday October 06, 2026 @07:16AM (#49976853)
Yes, and I totally support it! They start "from zero" and build everything piece by piece by testing the input / output of each feature. I just hope they use Photoshop / Photopea / Other software only from the users perspective and not by analyzing the code (source code or "binaries" - it probably does not matter to AI nowadays).

In this case, it was a clear copy-paste of my code, whith the variable names changed by the AI.

Re:Photopea creator weighs in on Photosuite project on Tuesday October 06, 2026 @03:03AM (#49975169)
Hey guys, I am the creator of Photopea, I just woke up! I did not expect that it will blow up like this.

Thank you all for your support! Many repositories like this one exist on GitHub, I tried to report in in the past, but I was completely ignored by Github / Microsoft. I feel pretty powerless here :( I tried to call them out publicly - https://x.com/photopeacom/status/2106877355738140875

This "PhotoSuite" thing got me a bit angry, since the author presented it as an original work, when I clearly see that such a project can be made from my "pp.js" file in two hours using Claude. Also, I believe that their README.md did not mention Photopea before I wrote my first comment there.

Thousands of people shared "PhotoSuite" on social media and nobody minded the fact that they don't know who the creator is. The creator is still offering it on their website as their original work: https://www.photosuite.app/

We live in interesting times. AI can (or will be able to) de-obfuscate every bit of code that was ever published, convert binaries to readable C++ and so on. So, in theory, AI models will train on the source code that we consider "closed-source" now, and will be able to recreate this software if asked. But it wouldn't be possible if a real person did not spend thousands of hours of their life to write that software years sooner.

I have always been excided to see people make AI create something new, what didn't exist before. But so far, I mostly saw only "approximations" of expensive software, when AI tries to recreate each feature and each button according to what it thinks it should do, or "forks", when AI takes the full code of something and tries to "bend" it to hide the similarity with the original work.

Re:Packing Binary Is Fun on Monday September 28, 2026 @06:08AM (#49875750)
There already exists a "binary analogy" of JSON called Protocol Buffers or Kiwi. They are pretty simple (a parser can be made in 2 kB of code). Wouold be great if the author compared his reinvented wheel with existing wheels :D
Re:Divide by Depth for Instant 3D on Tuesday September 22, 2026 @03:10AM (#49797644)
It reminds me my "3D engine in 47 lines ov javascript", which can only draw line segments :) https://jsfiddle.net/06L845jx/86/

And 54 lines of javascript: https://jsfiddle.net/06L845jx/127/

Original discussion: https://www.reddit.com/r/javascript/comments/9nihtw/a_simple...

When I run my website in Chrome on Android (with 8 GB of RAM), my website can get 6.5 GB of RAM.

When I run my website in any browser on iOS (iPad with 16 GB of RAM), my website can get 1.88 GB of RAM.

This much RAM might be needed only for a few seconds (computing a visual effect). A user is "focused" at just one app at a time. If a user uses my tool for hours, I think it makes sense to give them all the resources (CPU, GPU, RAM, ...)

Nice! :)
Thank you! :)
My tool is used by 1 million people a day https://www.photopea.com

This is the reason I never made a mobile version and all mobile users use it in a browser.

The biggest problem (bug) with this approach is that iOS limits the RAM usage to 2 GB per website. I have to tell many of my users to ditch their $1000 iPads and get a used $150 Macbook for better experience.

I think Apple does it on purpose https://bugs.webkit.org/show_bug.cgi?id=268816

Re:Music Theory for the 21st-Century Classroom on Monday September 14, 2026 @04:24AM (#49693607)
I could write that it is 2 to the power of (1/12), but 90% of the worlds population have no idea what it means. It is easier to remember "6 percent" than "2^(1/12)"
Re:Music Theory for the 21st-Century Classroom on Monday September 14, 2026 @04:22AM (#49693595)
If someone is going to spend 3 hours learning "as much music theory as they can", I don't think they should start with the history of temperament in music. Also, I think that about 70% of the worlds population does not know what a square root is.
Re:The case against JPEG XL on Monday September 14, 2026 @02:20AM (#49692685)
Note, that JPEG XL was added as a possible compression method for DNG files (Digital Negative - stores raw images with raw sensor data of a camera).

Because of it, for the past couple of years, all new iPhones and almost all Android phones (mostly Samsungs) already contain a JPEG XL encoder / decoder (to generate these DNGs).

Re:Music Theory for the 21st-Century Classroom on Thursday September 10, 2026 @02:21PM (#49648151)
Am I the only one who thinks that the classic music notation is 3x harder to learn than the basic music theory (without the rules of notation)?

I think that you can learn music theory (to play an instrument or to compose music e.g. in a "piano roll tool" / MIDI editor) much faster if you skip the classic notation. And I think that it is even better to learn the notation AFTER you understand the music theory.

I even made my own guide to music :D https://www.jampea.com/learn

Re:bzip3 on Monday September 07, 2026 @06:19PM (#49603614)
Hey, I am the creator of https://www.photopea.com and if a user decides to publish their work, it compresses PSD files (inside a browser) and sends them to the server for storing. Right now, we have about 2 TB of files. I use the DEFLATE compression which I fully implemented myself (compressor and decompressor, inside a library called UZIP.js).

I wish I could use something better :D but it must be implemented in Javascript to run inside a browser, and the library should not be too large (mine is about 8 kB ZIPped). I would love to switch to ZSTD once someone implements a compressor in Javascript that is under 40 - 60 kB. Or do you think that bzip3 could be re-implemented easily in JS using some AI?

I really admire you for being so smart at such a young age :) I wish you best of luck in your scientific career! I visited Warsaw this year, but I am not sure if that is where you are from :D

Re:Music Theory for Programmers on Sunday September 06, 2026 @04:56PM (#49590855)
I am the creator of https://www.photopea.com (a popular photo editor).

Recently, I wrote https://www.jampea.com/learn , which is the music theory for "technical people". I believe it is the fastest way to get to understand the theory behind music (will take you 2 to 5 hours in total, 10% will be reading and 90% will be thinking about what you just read).

Older ยป