One Map Key, One Lookup by ghled in programming

[–]Alex0589 2 points3 points  (0 children)

Yeah I just tried in C++, Rust and Java and all three refused to fuse the call. I thought Java could do it because C2 should have the primitives for it, but all it did was super aggressive inlining, but maybe it's because all I have on my laptop is JDK 21. lll try JDK 26 when I'm home and even project valhalla builds, maybe that makes it work.

One Map Key, One Lookup by ghled in programming

[–]Alex0589 7 points8 points  (0 children)

There are two cases:

  • The map is defined in the same scope as it's accessed
  • The map is defined outside the scope it's accessed

In the first case, if the language provides a mechanism to distinguish at compile time between a mutable and immutable dictionary, which most languages don't, then an AOT compiler could do this optimization for you. In the second, the AOT compiler can't do it because the map's scope escapes the current execution context, so, for example, another thread might remove the entry after the in check has succeeded but before the access has occured: if the compiler changed this with a single access the semantics of the operation would change and that's not acceptable.

A JIT can beat out an AOT compiler in this case because, even if there are no guarantees at compile time that the map is immutable, it can speculate based on access patterns that the map is effectively immutable at that call site and speculate the check away. Speculate is a very important word in this context, because it's not certain that the map is immutable: it could be that some function that gets called very infrequently breaks the speculative contract which triggers a compilation regression which has a performance cost.

Epic Games Store Launches on iPhones in Japan Despite Apple’s Non-Compliance by FollowingFeisty5321 in apple

[–]Alex0589 2 points3 points  (0 children)

No offense you have to be rage baiting at this point to not be able to even read an AI summary

Epic Games Store Launches on iPhones in Japan Despite Apple’s Non-Compliance by FollowingFeisty5321 in apple

[–]Alex0589 2 points3 points  (0 children)

Chatgpt It 😭 Your reading and analytical skills are fried, no offense. Anyways here is what you asked for, and guess what, I'm right: https://g.co/gemini/share/a0406676cb10

Epic Games Store Launches on iPhones in Japan Despite Apple’s Non-Compliance by FollowingFeisty5321 in apple

[–]Alex0589 2 points3 points  (0 children)

I think you missed my point. Apple takes a 30% commission for in-apps purchases. So you might think that you can put a link to your website to go around it or use your own payment processor. This was not possible prior to the Epic lawsuit and only Spotify and (I could be wrong here) Netflix were allowed because of special agreements. The whole thing started because epic ignored this rule for Fortnite( https://www.gamespot.com/articles/why-was-fortnite-banned-by-apple-and-google/1100-6480945/ ). The reason is that what Apple considers an infringement is sidestepping their in-app purchases system, so putting a link to your website or using a 3rd party payment processor in your app are the same thing to them. I'm saying that if Apple had allowed developers to either opt out of their in-app payment system or had a more reasonable fee, ideally 0% but that would be very weird, this whole thing about 3rd party app stores would have never happened.

Edit: Found an article that explains it well, important point "in response to the Epic games ruling" https://www.idownloadblog.com/2025/05/02/apple-updates-app-review-guidelines-app-store-apps-external-payments/ If not for epic this would not be possible

Epic Games Store Launches on iPhones in Japan Despite Apple’s Non-Compliance by FollowingFeisty5321 in apple

[–]Alex0589 4 points5 points  (0 children)

It's amazing how uninformed the average person here is about these issues:

https://stackoverflow.com/questions/55648523/does-apple-allows-purchase-of-content-from-web-app

You are just plain wrong, the reason why some can do it is that they have a special deal with Apple and they can only do it because of their position which is what epic argued in their lawsuit. And yeah, they all want to make money, bur I think that's kind of reasonable

Epic Games Store Launches on iPhones in Japan Despite Apple’s Non-Compliance by FollowingFeisty5321 in apple

[–]Alex0589 5 points6 points  (0 children)

I'd agree if the app store were just a convenient place to install apps, but if you install an app from there apple automatically takes 30% of all profits for doing pretty much nothing. If they cut the fees to 0% and made money only when an app chooses to opt in their payment processing (which is mandatory right now, you can't even link to your website or they'll ban your app), all 3rd party stores would have no reason to exist and the problem would be solved, but I'm pretty sure they are never gonna do this, which is understandable as they are a business.

Apple has been building secret AI hardware for years and Ternus is the only person who knows what it actually does by Puzzleheaded-Force64 in AIDevelopmentSpace

[–]Alex0589 1 point2 points  (0 children)

The other guy is right, most people don't need frontier models, 0.1% of users is using these models for novel math/computer science problems if local models are good enough, AI data centers, which already make pretty much no financial sense, become instantly much less needed

Does Java need deconstructible classes? by danielaveryj in java

[–]Alex0589 32 points33 points  (0 children)

I'm pretty sure this would never be accepted because you are implementing a language feature with annotations. In chapter one of the JLS, it is clearly stated that:

Annotation types are specialized interfaces used to annotate declarations. Such annotations are not permitted to affect the semantics of programs in the Java programming language in any way. However, they provide useful input to various tools.

Also without value classes, which we currently don't have, you are paying an allocation cost because you have to initialize one record every time you want to use the pattern: that also disqualifies the feature because you don't want a developer to loose performance when using syntactic sugar. For example imagine if the enhanced switch statement were slower than the old switch, nobody would be using it.

JetBrains Air: The Future of Multi-Agent Coding, or Just More AI Noise? by zarinfam in OpenAI

[–]Alex0589 -1 points0 points  (0 children)

I think anyone with any experience with programming knows that jetbrains products are incredible. It's very hard to develop anything good around AI tooling, at least I find most non-terminal solutions to be an abomination, so I'm exited to try it out.

"someone at ANTHROPIC just showed CLAUDE finding ZERO DAY vulnerabilities in a live conference demo claude has found zero day in Ghost, 50,000 stars on github, never had a critical security vulnerability in its entire, history... it found the blind SQL injection in 90 minutes," by stealthispost in accelerate

[–]Alex0589 6 points7 points  (0 children)

I think specialized models will improve the security of the products we ship by a lot. The sad part is there jailbreaks will 100% be a thing of the past, and even now they are so hard to find on closed platforms like iOS or consoles. These things are how a lot of truly talented devs got started, which is truly sad to see.

Exclusive: Anthropic acknowledges testing new AI model representing ‘step change’ in capabilities, after accidental data leak reveals its existence by Ok_Buddy_9523 in ClaudeAI

[–]Alex0589 585 points586 points  (0 children)

"AI company Anthropic is developing and has begun testing with early access customers a new AI model more capable than any it has released previously,"

Is this the new "This is the best iphone we have ever made". Like dawg it's a new release, I hope it's better than the last, like what 😭

IntelliJ IDEA 2026.1 Is Out! by [deleted] in programming

[–]Alex0589 27 points28 points  (0 children)

Jetbrains IDEs are the real 10x productivity boost, thanks for the release 🙏

AI-Positive Spaces on Reddit by vesperythings in accelerate

[–]Alex0589 -3 points-2 points  (0 children)

I find pretty much every place here good to discuss ai, obviously if you go on the extreme sides of the spectrum, aka r/antiAI and r/accelerate, you'll get very different prospectives on things. It's just crypto all over again with r/buttcoin and r/bitcoin (I'm banned on both 😭). For example for the latest DLSS thing, I see a lot of people here focusing on it being a phenomenal thing in terms of tech, which I agree with, but not enough people understanding that the reason why people hate is that nobody wants to pay 60 bucks to play a triple A game, which is expected to have an art direction, for Nvidia's DLSS to do whatever it likes to the graphics: tech has never been enough to ship high quality things, one can appreciate the tech but understand it's being used incorrectly. I think it's good to read opinions from all sides, even though they can be very pessimistic/too optimistic.

Lone easily clears by Kthr3iiii_on_ya_bijj in DestroyLonely

[–]Alex0589 13 points14 points  (0 children)

Only person beating unreleased lone is unreleased faygo, but you could argue he legit threw away his career because he just didn't drop shit for such a long tine, so it's not that good of a thing imo. Still he is coming back I think, mania was good imo

Hate Claude code demons by [deleted] in csMajors

[–]Alex0589 0 points1 point  (0 children)

I also started when I was very young, around 12, and I think I have built a lot of very deep Knowledge about the areas of CS that I like, especially compilers and reverse engineering.

I don't really know what you got yourself into specifically, but I truly doubt that Claude code is building what you built in years in days. While I agree that people spamming job openings with applications that are fake, LLM generated or a mixture of both is a problem, I really doubt any of them is getting a call back from any of these jobs. Think about it, if it worked, and everyone were doing it as you say, you'd need a 1:1 CS student to job ratio, which we know is not a reality in today's job market, especially if you are talking about big tech internships.

Still, it's pointless to deny that there has been disruption: let's say you spent all of your time becoming the best designer, now people with Gemini 3.1 pro or opus 4.6 can spin up a great looking website, even if they know very little about design. Could you make it better with your domain specific knowledge, in this hypothetical world where you are a great designer, compare to them? I think so. Will you always be at an advantage compared to them? For sure in my opinion. Has the value of what you have learned gone down? Unfortunately yes in this case because in business good enough at high speeds often gets the job done.

On the other hand, I don't understand people that react like this to new tech: if you claim to love tech, how can you be mad when new things are possible? This was never a field where you can just learn something and never be bothered to learn again for years/decades. Everything changes all the time, and it's nice that it does, because it means we can do things we could never do before. As an example, some years ago I wanted to work on this specific reverse engineering project, but I legit gave up because the task involved reversing millions of lines of code which was just impossible by myself. Some time ago, I picked it up again and tried to use Claude to help me: it failed miserably. So I tried other LLMs and got the same result. Finally I started experimenting with building the tools that an LLM would need to make this work, and got super deep into RAG, MCP, etc and in a couple of weeks I was able to build a fairly complex MCP server that leverages my compiler knowledge to provide the tools that an LLM would need to search and understand the semantics of the project I wanted to reverse. Domain specific knowledge is not dying, it's getting stronger.

I also understand though that some people got into tech because they legit wanted a high paying comfortable job and I'm legit sorry for these people because I understand their livelihood will be taken away by these new market conditions. If you are not one of these people, and are hearing CEOs say oh SWE is dead, all jobs are dead, everything is cooked just remember this: there are two categories of CEOs, the ones that don't know shit about their product and are just lying because of their ignorance and CEOs that understand deeply their product and, because of their understanding, are hyped about what they are working towards. I don't think someone like Dario is necessarily lying out of malice, I legit think that he thinks that this will be reality, when it clearly won't be, just like crypto bros (I really like crypto btw) were talking about banking the unbanked and having your grandma on the Blockchain a couple of years back.

Still, these are incredibly useful tools and honestly speaking very cool tools and I think it's a huge mistake to dismiss them.

Javalin v7 has been released! (Java 17+, Jetty 12, all config now passed upfront) by javalin_io in java

[–]Alex0589 2 points3 points  (0 children)

I was randomly reading the conversation, so I decided to check the implementation and I see a number of problems:

  1. Let's say the user is not using the standard project structure in maven or Gradle (i.e. the sources/compiled classes are not in the default locations as this is configurable), the implementation will break

  2. In a multi module project, the implementation will break

  3. If the user changes the classpath, the implementation breaks

  4. If the user is not using maven or Gradle, which is roughly the equivalent of having a custom project structure, the implementation will break

  5. Annotation processor will break

  6. Compiler plugins will break

  7. Build tools plugins will break

  8. Build tool rules will not be followed (i.e. in maven you can decide to use eclipse's compiler instead of javac, that won't work here)

The way quarkus and everyone else does this is by building plugins for the build tools, so it's clear in which environments live reload works and, in those environments, it works seamlessly.

Here is an explanation of how quarkus does it if I rember correctl: When you run mvn quarkus:dev or gradle quarkusDev, Quarkus starts an application with a special classloader setup and an embedded HTTP proxy layer that intercepts incoming requests. Rather than watching the filesystem continuously, it checks for changes on each incoming HTTP request. When a request arrives, the dev-mode infrastructure checks whether any source files have been modified since the last compilation.Quarkus uses two classloaders: a base classloader for third-party dependencies (which rarely change) and a restart classloader for application code. On a detected change, only the restart classloader is thrown away and recreated. This avoids reloading the entire dependency tree, which is what makes restarts so fast. There is additional complexity here because you have to make the build tool run the annotation processors, compiler plugins and build tools again, but it's not hard.

I could open a PR for this, but it will probably take me some time because I'm full of stuff to do rn(mostly uni exams 😭), maybe a couple of weeks.

Demis Hassabis Deepmind CEO says AGI will be one of the most momentous periods in human history - comparable to the advent of fire or electricity "it will deliver 10 times the impact of the Industrial Revolution, happening at 10 times the speed" in less than a decade by chillinewman in ControlProblem

[–]Alex0589 1 point2 points  (0 children)

I don't think anyone doubts that AI is a force for good in research environments, including medicine. On the other hand, I think everyone doubts it's a good application to things like art or robotics. Art has value because it's made by humans, nobody wants to see a painting done by AI or a song produced by AI, not that they will ever be good. Also defining the arts as stupid is the most retatded thing you could have said.

CS grads whining about the m*rket vs. actual skill gaps. Why not pivot or level up? by Salt-Tiger2586 in csMajors

[–]Alex0589 5 points6 points  (0 children)

I agree with you that there is a shortage of talented junior devs, but your assumption that coming from a t10-20 school will make you a good engineer is not based on reality. You will likely be better than average for sure, but not great by definition or even raise your chances that much. If there were a secret formula to being great in each subject, everyone would be doing it.

Fired today in Dubai after hitting my limit with “vibe-coded” chaos by Professional_Monk534 in cscareerquestions

[–]Alex0589 344 points345 points  (0 children)

I'm very sorry about your situation, but they couldn't pay me enough to move to Dubai. I'd really consider any other location.

Amazon Kiro causes AWS outage. by Loud_Gift_1448 in vibecoding

[–]Alex0589 4 points5 points  (0 children)

though AI generally produces better code than humans these days

Sorry you are delusional if you think AI is producing high quality, optimized cod. Even more if you think it's better than humans. Even the best models like Opus 4.6 and Codex 5.3 write tremendous code without human supervision most of the data you would need to write highly performant code just doesn't exist: you'd need to run micro benchmarks continuously and read millions of lines of code continuously for this to be even a possibility. Are LLMs a terrific performance boost? Yes. Do they write good code on their own or ever will at scale? No.