Shai Almog (@debugagent) header
Shai Almog (@debugagent) profile picture

There are 1k+ Java Champions, but only one guy whose candidacy was withdrawn. Co-founder of Codename One, bull in china shop & infamous a*hole (unintentionally)

Joined August 2021
Photo by Shai Almog (@debugagent)Photo by Shai Almog (@debugagent)Photo by Shai Almog (@debugagent)Photo by Shai Almog (@debugagent)Photo by Shai Almog (@debugagent)Photo by Shai Almog (@debugagent)Photo by Shai Almog (@debugagent)Photo by Shai Almog (@debugagent)Photo by Shai Almog (@debugagent)Photo by Shai Almog (@debugagent)
People think performance is about low level optimizations, but that's wrong for real world apps. Performance is about caching, batching and better logic. Platforms are already DEEPLY optimized. Doing that in native for every platform/device isn't tenable.
native rewrite does not guarantee better perf i started native rewrite for my indie app Kado, following shopify playbook: agents porting 1 screen at a time, and checked by tests + screenshots against RN app. on iphone 13, native launches faster, but scrolls 1 screen 3x worse 🧵
1
64
Fieldline is an MIT-0 field service template for Codename One: routes on a map, signatures, a Gantt dispatch board, and a seeded plain-Java scheduler whose tests assert no hard constraint breaks across 25 random cities. codenameone.com/blog/field-s…
30
A WeakReference that never clears is a strong reference with extra steps. ParparVM's collector clears weak referents and ranks soft ones by last get(). Cache benchmark: 97.44% hits at 82.1 MB, vs 87.99% at 91.0 MB when flushing on memory pressure. codenameone.com/blog/parparv…
42
Splat, caught on replay: a 4v4 paintball match on the desktop and its instant replay. The backend referees every match and rewinds to what the shooter saw before it counts a hit. It's a Java template that ships to Steam. codenameone.com/blog/ship-yo…
94
Write an invoice PDF on the phone and on the server with the same Java classes. View it with a pure-Java renderer that draws the same pixels on iOS, Android, desktop and web, open encrypted files, and print, with no per-platform branch. codenameone.com/blog/generat…
53
On Catalyst, Codename One drew each extra Mac window into an image and copied it: about 33 MB per 4K BGRA surface. The default Mac build targets AppKit instead, with an NSWindow and its own CAMetalLayer per window, NSMenu and NSTextInputClient. codenameone.com/blog/native-…
69
One customer seeing another's invoices crashes nothing and fails no test. It usually comes from one query missing WHERE tenant_id = ?. Codename One's Java backend filters every ORM query by tenant and blocks native SQL unless you opt in for one call. codenameone.com/blog/multi-t…
2
1
130
Maven can't find recent Codename One releases? New versions are published to the Codename One repository, not Maven Central. Add it under <repositories> and <pluginRepositories>: Maven resolves plugins from a separate list. codenameone.com/blog/maven-c…
1
1
3
148
Codename One's DataGrid scrolls a million rows and paints only the visible ones. Workbook turns it into a spreadsheet: XLSX, ODS and CSV in and out, 402 Excel functions that recalculate live, and formula completion as you type. codenameone.com/blog/a-milli…
51
On Android, another app can draw over your confirm screen and disguise the tap. Codename One's DeviceIntegrity BLOCK policy drops any gesture that starts fully obscured, from DOWN through UP. Android 12+ can also hide overlays. codenameone.com/blog/tapjack…
64
An agent can now turn one paragraph into a Codename One app and submit it to TestFlight and Google Play. I'm teaching my kids Java anyway: an agent is very good at sounding right, and only someone who reads the code can tell when it isn't. codenameone.com/blog/why-my-…
2
2
90
An OS update can restyle UIKit and Material widgets under your app. Codename One links its own components in and tests them in CI against captures from native reference apps. The suite also found an iOS gradient bug dating to 2012. codenameone.com/blog/pixel-p…
1
85
Looks like Java4Shell will be a more limited affair, sourcing details from the @datadoghq writeup by @Frichette_n and Sebastian Obregoso: 1. Requires x86-64 CPU with AVX-512 VBMI. From what I can gather, this is most newer generation cloud instances that aren’t ARM. You can run `grep -om1 -E 'avx512[_]?vbmi' /proc/cpuinfo` on the host to see if you’re potentially impacted. 2. It’s far easier to try and abuse this to cause a DoS than a full RCE. RCE must be targeted and is not generic. 3. Patches are out and two mitigations exist: starting the JVM with option `-XX:-UseBASE64Intrinsics` or a more breaking change `-XX:UseAVX=2` which reduces performance and will break ARM64 JVMs if it’s in a shared config. 4. The full exposure is really JDK 17.0.6+ on AVX-512 VBMI x86 hosts, with code that Base64-decodes untrusted input through the JDK’s basic or URL decoders. I’d treat this as a high-priority DoS with a targeted RCE possibility, not a Log4Shell.
2
53
4
304
28,737
Most AI features in mobile apps don't need a cloud model. A 0.5B GGUF model runs on the phone through llama.cpp, behind the same Java API as the cloud clients. Choosing local vs cloud is one line. codenameone.com/blog/run-an-…
70
Java4Shell dropped today and the patching advice is easy: update Java. Working out whether you're actually exposed is not. Runtime bugs are business as usual now. But this one comes with a twist: it only fires on x86-64 CPUs with AVX-512 VBMI. The same app on the same Java version can have completely different exposure depending on what hardware it runs. Your dependency scanner won't flag it, because it's not a dependency. Your version inventory won't settle it, because the version is just a part of it. To actually answer "are we affected?" you have to check every JVM, including the ones bundled inside Jira, Jenkins and Keycloak. You need the flags it was really started with, the CPU features that JVM can see, and the node it's running on.. it’s a right mess. Most orgs don't have anywhere close to that kind of view. IMO This is where agents earn their keep. My colleagues wrote a read-only runbook prompt you can hand to an agent with infra access. It inventories the runtimes, reads the effective flags, checks the CPU, and comes back with a table of affected, mitigated, unknown, and the evidence behind each. I think this is how incident response goes now. Humans decide yes this matters, and agents do the legwork of finding out what's true across the estate. And the job of a detection engineer is now to figure out scale, agent harnesses, and what they need access to. Weird times to be living in for sure, check out the full blog:
Java4Shell (CVE-2026-114938, CVSS 9.2): a crafted Base64 value → RCE via OpenJDK's built-in decoder. Affects 17.0.6+ on x86-64 with AVX-512 VBMI. Patch, or use -XX:UseAVX=2 on x86-64 only. Semgrep customers: run Detect-2Shell workflow.
2
15
82
8,018
Shai Almog retweeted
An update regarding CVE-2026-114938 (Java4Shell): Native Image applications built with GraalVM 25.0 or earlier are not affected. For applications built with GraalVM innovation releases 25.1 and later, a patch will be included in GraalVM 25.6 (scheduled for November 24, 2026), and we recommend for users of those releases to upgrade.
3
14
3
78
5,811
A Windows IoT kiosk in Java, compiled to a native .exe with no JVM: one build hint blocks Alt+Tab and Alt+F4, and one Maven goal deploys it over SSH. Java CLI tools also compile to a native binary, with tables, progress bars and prompts. codenameone.com/blog/windows…
1
74
Rootless jailbreaks keep the iOS system volume sealed, so Cydia-path and sandbox-write checks come back clean on a jailbroken phone. Codename One's detector checks /var/jb with lstat and cross-checks the APIs bypass tweaks hook. codenameone.com/blog/rootles…
254
PSA: Codename One is not vulnerable to the new Java4Shell vulnerability. You should update the JVMs you use in the IDE when a patch becomes available but thanks to our AOT architecture and short supply chain we're safe from this one. calif.io/java4shell #java #java4shell
1
107
Splat's first build had lag-compensated shots and a server that caught cheaters. Nobody played it past a minute. Swapping code-drawn shapes for CC0 art made it a game. It's a Java template, and Codename One games now ship to Steam. codenameone.com/blog/ship-yo…
79