HNHacker News
TopNewBestAskShowJobs

giamma

525 karma · joined November 24, 2021

meet.hn/city/45.4077172,11.8734455/Padua
submissionscomments
giamma··on ZetaOffice: LibreOffice in the Browser
OnlyOffice has decent performance and is pure canvas. However, they have (or had) issues with respect to accessibility, as screen readers don't read canvas.
giamma··on Show HN: Bike route planner that follows almost only official bike trails
Not as good as the project from the OP: I tried to connect two cities in Italy, Padova and Riva del Garda (because I know the cycle roads you could use to travel from one to the other) and this project perfectly nailed it, while cycling Brouter suggests low traffic roads but seems to not be aware of many cycle roads.
giamma··on Show HN: Bike route planner that follows almost only official bike trails
Love your project!

Maybe you already considered, but there are a number of collection libraries out there that are optimized for holding Java primitives and/or for very large sets of data, which could help you save significant memory. Eclipse Collections [0] and Fastutil [1] come to mind first, but there are many out there [2]

[0] https://github.com/eclipse-collections/eclipse-collections [1] https://fastutil.di.unimi.it/ [2] https://github.com/carrotsearch/hppc/blob/master/ALTERNATIVE...

giamma··on New Apple security feature reboots iPhones after 3 days, researchers confirm
I see your point. I already had the NAS in place so it was a nobrainer for me, but if you just want to backup to computer you can still run a light webdav server on your computer. For example, I am using dufs [0], which is very easy to deploy and configure.

[0] https://github.com/sigoden/dufs

giamma··on New Apple security feature reboots iPhones after 3 days, researchers confirm
I am using an app for this. It's called WebDavNav+ and there is a free version WebDavNav for evaluation.

You can create sync configurations and switch on auto sync.

I have an Odroid HC4 with Open Media Vault and docker which is my personal NAS. It runs a WebDav container and so on a daily basis my iPhone is backing up photos to my NAS using WebDavNav+.

giamma··on Grim Fandango
Do you know Zak McKracken and the Alien Mindbenders [0]? A Lucas Games video game published in 1988 on C64 and several other platforms.

Puzzles were very difficult at that time in games, possibly intentionally because Lucas Games was selling hint books.

Throughout the whole game you take planes to fly from one location to another, and this eventually depletes your credit card.

At some point you have so little money that the only plane ticket you can afford is a rusty world-war-era biplane that will fly you to some destination through the famous Bermuda Triangle [1]. It's the only option you have so you will eventually take it. But why that? Because when in flight, a tractor beam pulls you up and you find yourself, the biplane and the pilot in an alien space ship, which is how the game justifies the myth of the Bermuda Triangle.

Now if I remember correctly, you will be stuck there and will have to reload a saved game, unless you have a guitar with you. In fact, in the space ship you meet the alien captain who is wearing the classic white Elvis dress. If you earlier purchased a guitar in the shop close to your apartment and now give the guitar as a gift to the alien captain, you will then become friends, and the alien captain will allow you to leave the spaceship with the biplane. Even more, on the ship there is a machine named "lotto-o-matic" or similar, that will predict lotto numbers. So you have to use the machine and collect the receipt. Back to USA, you can use those lotto numbers and win an incredible amount of money that will allow you to take all the planes you need for the remaining of the game.

I remember this particular puzzle as I was stuck for weeks in this limbo without money trying countless useless solutions. I leave in Italy those hint books did not exist and there was no internet. Luckily at some point a local game magazine (Zzap! [2]) answered a letter from another gamer who was asking for a clue.

[0] https://en.wikipedia.org/wiki/Zak_McKracken_and_the_Alien_Mi... [1] https://en.wikipedia.org/wiki/Bermuda_Triangle [2] https://en.wikipedia.org/wiki/Zzap!64

giamma··on Ataraxia
In Epicureanism ataraxia is paired with ἀπονία (aponia).

Aponia is for the body what ataraxia is for the mind. You can find more details in the Wikipedia page about Epicureanism [1]. True pleasure comes from the absence of spiritual trouble and the absence of physical pain. The Latins used to say "mens sana in corpore sano" (healthy mind in a healthy body)

[1] https://en.wikipedia.org/wiki/Epicureanism

giamma··on AWS CEO tells workers to quit if they don't want to come back to the office
I have no direct experience, but apparently this is an historical problem. Way before the pandemic a friend of mine relocated to USA (from Italy) and started working for AWS as a product manager.

She did not last much and eventually jumped to another big company. Sure the job was challenging in AWS, but what she was complaining the most about was the speed at which people were leaving and being replaced.

She told me that she often had to schedule meetings with people from other teams/departments, sometimes 2-3 weeks in advance to find a free calendar slot, and when it was finally the date for the meeting, it often occurred that one of the invitees did not show up, without any prior notice, only for her to discover that the person resigned.

So very often she had to reschedule the meeting with different people and wait another couple of weeks for them to be available. This made it very frustrating and difficult for her to get things going, as she was a product manager for a product that required a lot of cross-team collaboration.

giamma··on OS/2 TCPBEUI Name Resolution
Based on documentation, ArcaNoae comes with support for large hard drives, newer video chips, USB etc etc.. I guess it should run on most hypervisor(s) or virtualization systems, provided you use a humble hardware configuration (e.g. no need to use GBs or RAM) even VirtualBox or KVM most likely will work. But whether it's supported by the hypervisor vendor or not is a different story.

Plain OS/2 did not receive any update for 20+ years, it's installer won't work on modern hardware/virtualization systems.

giamma··on OS/2 TCPBEUI Name Resolution
I think they are not really interested in individual users, they aim at corporations having legacy applications that run on OS/2 only, so the goal is to make the system virtualization friendly and runnable on more recent hardware.

That said, my understanding (as a former OS/2 user 3 decades ago), is that a community edition cannot exist because IBM and MS still hold the copyright and intellectual property and the software cannot be distributed for free.

giamma··on OS/2 TCPBEUI Name Resolution
Well, ArcaNoae is still under development [1] and community events are still being organized [2]

[1] https://www.arcanoae.com/roadmaps/arcaos/ [2] https://www.arcanoae.com/blog/

giamma··on LinkedIn blocked due Meshtastic video in private chat
Same as you, but I cannot find a good configuration for the linkedin App to prevent it from sending me too many notifications. I get 5+ notifications per day related to "this message is trending...", "your contact posted this...", "you are invited to do that...." and buried between them, from time to time, contact invitations that are worth considering.
giamma··on Elasticsearch is open source, again
My guess: as I wrote in another comment, Elasticsearch had significant evolution in the area of "search engine", while OpenSearch trajectory (to use the wording of the press release) has been in the direction of APM/monitoring.

When Elastic changed the license, all vendors of APM products based on Elasticsearch jumped to OpenSearch.

Maybe, they want to pass the message that the fork, OpenSearch, is enough different to not represent real competition, and in any case, now that it exists, after the investment done, AWS will offer that as an alternative to Elasticsearch and not Elasticsearch itself but managed by AWS as it used to be before the license change.

Now, who wants a managed Elasticsearch service will only buy it from Elastic.

giamma··on Elasticsearch is open source, again
My understanding (after talking to several market analysts) is that OpenSearch is focused on APM/monitoring/log-aggregation, while Elasticsearch has an edge on pure search engine functionality and now AI.

That's because the license change by Elastic impacted not only Amazon, who could not provide Elasticsearch as a service anymore through its administrative consoles, but also all those vendors who were building APM/monitoring/log-aggregation solutions as-a-service on top of Elasticsearch. In fact, such vendors would typically use Elasticsearch as a back-end behind some custom UI.

So those vendors teamed up with AWS to develop OpenSearch.

Now last time I checked the commit history of the two projects, Elasticsearch had 3x more commits and many of them on cool new stuff, while OpenSearch focus seems to have remained on APM/log aggregation.

As someone who needs an actual "search engine", I am glad of the change, as I was worried OpenSearch may not be a viable open source alternative as it could be lagging behind in this domain.

Now I need to check what happens with the clients: will the client remain Apache License or will they change to AGPL? The latter would be a problem for closed source software.

giamma··on Show HN: Skip – Build native iOS and Android apps from a single Swift codebase
Hello, this looks like a cool product, congratulations.

How does it handle the different UI guidelines on the two platforms?

I have not been using Android for some years, but the first example that comes to my mind is that as far as I remember Android has a platform-level back button, while on iOS each application provides a "back" link to be tapped to go back to its previous screen. If I wanted a single code base that followed the recommended UI approach on each platform in order to be as user friendly as possible, would I need to write certain parts twice using #IFDEF or similar blocks?

giamma··on Jellyfin: We're Good, Seriously
I have an android TV running Kodi. Kodi connects via SMB to my NAS (Odroid HC-4, OpenMediaVault) and can easily show all my content.

Would Jellyfin improve my experience? I could run it on odroid without transcoding, and then use the official android-tv client. Would it be worth the effort of switching?

giamma··on Java Virtual Threads: A Case Study
When a real thread is allocated from a virtual thread to another, the JVM needs to save into the heap the stack of the first virtual thread and restore from the heap the stack of the second virtual thread, see slide 13 of [1]. This is in fact called mounting/unmounting as already pointed out, and occurs via Java Continuation, but from the JVM perspective this is a context switch. It's called JVM and the V stands for Virtual, so yes, it's not the kernel doing it, but it's happening, and it's more frequent the more virtual threads you have in your application.

[1] https://www.eclipsecon.org/sites/default/files/slides/JavaLo...

giamma··on Java Virtual Threads: A Case Study
The JVM will need to do context switching when reallocating the real thread that is running a blocked virtual thread to the next available virtual thread. It won't be CPU context switching, but context switching happens at the JVM level and represents an effort.
giamma··on Java Virtual Threads: A Case Study
You will still have to worry, too many virtual threads will imply too much context switching. However, virtual threads will be always interruptable on I/O, as they are not mapped to actual o.s. threads, but rather simulated by the JVM which will executed a number of instructions for each virtual thread.

This gives the chance to the JVM to use real threads more efficiently, avoiding that threads remain unused while waiting on I/O (e.g. a response from a stream). As soon as the JVM detects that a physical thread is blocked on I/O, a semaphore, a lock or anything, it will reallocate that physical thread to running a new virtual thread. This will reduce latency, context switch time (the switching is done by the JVM that already globally manages the memory of the Java process in its heap) and will avoid or at least largely reduce the chance that a real thread remains allocated but idle as it's blocked on I/O or something else.

giamma··on Java Virtual Threads: A Case Study
Yes, at EclipseCon 2022 an Oracle manager working on the Helidon framework presented their results replacing the Helidon core, which was based on Netty (and reactive programming) with Virtual Threads (using imperative programming). [1].

Unfortunately the slides from that presentation were not uploaded to the conference site, but this article summarizes [2] the most significant metrics. The Oracle guy claimed that by using Virtual Threads Oracle was able to implement, using imperative Java, a new engine for Helidon (called Nima) that had identical performance to the old engine based on Netty, which is (at least in Oracle's opinion) the top performing reactive HTTP engine.

The conclusion of the presentation was that based on Oracle's experience imperative code is much easier to write, read and maintain with respect to reactive code. Given the identical performance achieved with Virtual Threads, Oracle was going to abandon reactive programming in favor of imperative programming and virtual threads in all its products.

[1] https://www.eclipsecon.org/2022/sessions/helidon-nima-loom-b...

[2] https://medium.com/helidon/helidon-n%C3%ADma-helidon-on-virt...

giamma··on Judge dismisses DMCA copyright claim in GitHub Copilot suit
You are right but there is no legally defined threshold so it's subjective.

As a matter of fact, the Eclipse Foundation requires every contributor to declare that every piece of code is their own original creation and is not a copy/paste from other projects, with the exception possibly of other Eclipse Foundation or Apache Foundation projects because their respective licenses allow that. Even code snippets from StackOverflow are formally forbidden.

If I am not mistaken, in the Oracle-Google trial over Java on Android, at the end Google re-implementation of Java API on Android was considered fair-use, because Google kept the original "signatures" of the Java SDK API and rewrote most of the implementation with the exception of copying "0.4% of the total Java source code and was minimal" [1] However the trial came to this conclusion after several iterations in court.

[1] https://en.wikipedia.org/wiki/Google_LLC_v._Oracle_America,_....

giamma··on Zed on Linux Is Here
You should give Theia Ide [1] a try. It's plugin-compatible with VSCode, same user experience. It's slower to start and takes more memory but on my 3 y.o. intel Mac it is definitely snappier than VScode.

[1] https://theia-ide.org/

giamma··on Judge dismisses DMCA copyright claim in GitHub Copilot suit
Software like Blackduck or Scanoss is designed to identify exactly that type of behaviour. It is used very often to scan closed source software and to check whether it contains snippets that are copied from open source with incompatible licenses (e.g. GPL).

To be able to do so, these softwares build a syntax tree of what your code snippet is, and compare the tree structure with similar trees in open source software without being fooled by variable names. To speed up the search, they also compute a signature for these trees so that the signature can be more easily searched in their database of open source code.

giamma··on Proposal to change default annotation processing policy in JDK 23
With respect to auto-generating documentation, I was thinking about the possibility for annotation processors implementors to add javadoc comments or yet another annotation to their processor that JDK could use to dump a list of processors found in the classpath as a table with some information.

> javac <other parameters> -proc:info

some.library.Proccessor:

    scans classes annotated <whatever> and produces a file in META-INF/services
    for <some.library> to be able to load your implementation via ServiceLocator
some.otherlibrary.OtherProcessor:

    .....
With that table creating your inclusion/exclusion files would be easier
giamma··on Proposal to change default annotation processing policy in JDK 23
"This policy of implicitly running annotation processors by default may have been reasonable when the feature was introduced in JDK 6 circa 2006, but from a current perspective, in the interest of making build output more robust against annotation processors unintentionally being placed on the class path, the policy should not be the default anymore."

This makes sense, especially in light of the growing number of supply chain attacks. However, given how many libraries a typical Java application has in the classpath, most of which are transitive dependencies of popular frameworks, I foresee many build jobs not producing working binaries anymore when JDK23 is adopted. Plus, I'd love to be proven wrong, but I could bet that most people will fix the issue by simply adding the "all-on" switch to the command line instead of carefully evaluating which annotation processors are really needed by their codebase. So I am afraid that in the long term this change will not improve security or reduce build times. Unless maybe JDK 23 comes with some tool to print a catalogue of the annotation processors found in the classpath, with their respective purpose and documentation, so that developers can make an educated guess about what they need or don't need.

giamma··on TTE: Terminal Text Effects
One of the killer features of terminal for me is that it's always clean and polished without fancy animations. You can possibly use transparency but that's more than a visual effect, it can actually be useful to let you see what's happening in a background window.

So while technically amazing, I do hope these text effects will never land in real world application, unless it's related to video gaming.

giamma··on OWASP Data Breach Notification
I believe they mean they removed the data, which was unused, from their own website.
giamma··on SSPL Is Bad
Very well said.
giamma··on SSPL Is Bad
It's not always true, a small but growing number of companies have ethics and solid principles and are becoming B-Corp [1] certified. I am lucky enough to work for one of such companies.

[1] https://en.wikipedia.org/wiki/B_Corporation_(certification)

giamma··on SSPL Is Bad
> I'm well familiar with Opensearch now being the preferred choice over Elasticsearch

That's interesting feedback, I am using Elasticsearch and was looking into Opensearch as an alternative. What I see from their respective repositories is that Elasticsearch is more actively developed, it receives almot 3x commits in the same amount of time. Plus, as some of my clients want to install on-prem, it's not clear to me if you can get commercial support for on-prem installations.

← PreviousPage 3 of 5Next →