I briefly worked in a team that implemented a JVM on a mobile OS (before the iPhone) and one of the senior devs said Jazelle was in effect very inefficient because of all the context switching between ARM mode and Jazelle mode.
Turned out a carefully tuned ARM JVM was in practice th best
I’ve tried 2 AI tools recently. Neither could produce the correct code to calculate the CPU temperature on a Raspberry Pi RP2040. The code worked, looked ok and even produced reasonable looking results - until I put a finger on the chip and thus raised the temp. The calculated temperature went down.
As an aside the free version of chatGPT didn’t know about anything newer than 2023 so couldn’t tell me about the RP2350
How can you be sure putting the finger on the chip raise the temp? If you feel hot that means heat from the chip is being transferred to your finger, that may decrease the temp, no?
wouldn't your finger have acted as a heat sink, lowering the temp? sounds like the program may have worked correctly. could be worth trying again with a hot enough piece of metal instead of your finger
Ha. I asked it to write some code for the Raspberry Pi RP2350. It told me there might be some confusion as there is no official product release of the RP2350.
If it doesn’t know that, then what else doesn’t it know?
Scarily close to satire of humans in denial about AI capabilities (not saying that it's the case here but I can imagine easily such arguments when AI is almost everywhere superhuman)
I just checked. The code it gave me, though syntactically correct, was wrong functionally. The rp2040 temp reading increases and the ADC value decreases. ChatGPT didn’t invert the values.
It's doable, but it took me closer to 20 years.
I got to zero net assets in July 2001. Retired from paid work (mainly sw eng contracting) at the start of covid in April 2020.
I should say, at the start I wasn't married and had no dependents. Also, for large parts of those 20 years, I didn't need to own or use a car.
I tried code gen for the first time recently. The generated code look great, was commented and ran perfectly. The results were completely wrong.
The code was to calculate the cpu temperature from the Raspberry Pi RP2350 in python.
The initial value look about right, then I put my finger on the chip and the temp went down!
I assume the model had been trained on broken code. This lead me to think how do they validate code does what it says
Nobody is saying that you don't have to read and check the code. Especially for things like numerical constants. Those are very frequently hallucinated (unless it's something super common like pi).
I’ve now retired from professional programming and I’m now in hobby mode. I learn nothing from reading AI generated code. I might as well read the stack overflow questions myself and learn.
Did you review the code itself, or test the code beyond just putting your finger on the chip? Is it possible that your finger was actually cooler than the chip and acted as a heat sink upon contact?
The code looked fine. And I don’t think my finger is colder than the chip - I’m not the iceman.
The error is the analog value read by the ADC gets lower as the temperature rises.
30 odd years ago, part of my role was to colour balance cameras in a studio environment. We didn’t need computers - but at most there were only 5 cameras :)
I think Newton is on the phone...
Once the accelerating force is removed the object will go into an orbit that includes the point at which the force stops. This however is Earth
It doesn't remove fuel entirely, they still need an engine to circularize their orbit.
> The velocity boost provided by the accelerator's electric drive results in a 4x reduction in the fuel required to reach orbit, a 10x reduction in cost, and the ability to launch multiple times per day.
Wow are there issues with making things like chips that can even survive that? I remember when I was a scientist and 10,000g was some very high speed centrifuging that you better make sure everything like even glass and plastic can handle.
Unless it reaches escape velocity (ie its never coming back) then it will always comeback to where it started from. The object is under the same gravitaional influences as the Earth
As others have pointed out, there is a rocket motor to put the payload into an orbit.
Even easier if you setup debugging using another pico, debug probe or even a Pi (not sure if this works on the 5)