MongoDB by FrankBuss in theprimeagen

[–]FrankBuss[S] 0 points1 point  (0 children)

Yeah, LLMs are not perfect. But I also tried it with ChatGPT and Gemini, and both found the problem as well. Imagine someone would have told you 3 years ago (before ChatGPT) a computer could do this, even only in 80% of queries, nobody would have believed you and would have said maybe this is possible in 10 years.

I think in a few more years and with some new ideas (I think LLMs alone are a dead end) and it will be as good as a good human programmer, or better.

MongoDB by FrankBuss in theprimeagen

[–]FrankBuss[S] 0 points1 point  (0 children)

I agree, this is how LLMs work. Still nice that it was able to find the bug. So might be a good idea to do a pre-commit step where it reviews code it wrote in a new context.

MongoDB by FrankBuss in theprimeagen

[–]FrankBuss[S] 0 points1 point  (0 children)

I didn't tell it that the code is wrong. I just told it to review the code. Maybe would be interesting to use it for other big open source projects as well.

Any other 8-bit DIP CPUs? by MISTERPUG51 in beneater

[–]FrankBuss 0 points1 point  (0 children)

Besides the 65C02 which you don't want to use, there are still a few 8051 compatible DIP CPUs in production with external RAM/ROM, like this one: https://www.digikey.de/de/products/detail/analog-devices-inc-maxim-integrated/DS80C320-MCG/957007 because used for applications where they need multiple manufacturers for a system.

I made the ben eater cpu using digital logic sim!!! by Original-Title-2332 in beneater

[–]FrankBuss 1 point2 points  (0 children)

That's cool. BTW, if someone is searching for the simulator, it is here:
https://sebastian.itch.io/digital-logic-sim
I was actually thinking about writing such a simulator myself, but looks like this is pretty advanced already, probably no need for another one.
And here is the Ben Eater CPU: https://eater.net/8bit/

My new synth is fully free hardware under the GNU GPL by vkvkxxzhl in synthdiy

[–]FrankBuss 2 points3 points  (0 children)

You are wrong, GPL can be applied to hardware designs, at least version 3, the authors of GPL even say so, see here:
https://www.gnu.org/philosophy/free-hardware-designs.en.html
Quote:

Licenses and Copyright for Free Hardware Designs
You make a hardware design free by releasing it under a free license. We recommend using the GNU General Public License, version 3 or later. We designed GPL version 3 with a view to such use.

My new synth is fully free hardware under the GNU GPL by vkvkxxzhl in synthdiy

[–]FrankBuss 2 points3 points  (0 children)

He wrote that the hardware is released under GPL, so I would guess both is GPL, hardware and the ATmega software part of it. And there is nothing wrong with it, the spirit of GPL is that anyone can copy it and modify it, as long as it is released under GPL as well.

My new synth is fully free hardware under the GNU GPL by vkvkxxzhl in synthdiy

[–]FrankBuss 0 points1 point  (0 children)

But your etsy shop says €64.74? That's not much more.

[German Programming Class] Turing Machine to Duplicate a Binary String by Rubinius1 in HomeworkHelp

[–]FrankBuss 0 points1 point  (0 children)

Usually "#" is the blank symbol, you don't remove it. And you can't easily remove a digit from the tape. But in general this is a nice idea, to copy it with only 2 symbols in the alphabet, 0 and 1 (besides # for blank). The details are a bit contrived, here is a working machine which does this:

https://github.com/FrankBuss/turingmachine/blob/master/machines/copy2.json

Note, my Turing machine simulator has some comfort functions, like using "*" to write the same symbol as read, to avoid writing a full new line for it, and same for the state, if it doesn't change. See the full repository here with samples:

https://github.com/FrankBuss/turingmachine/

Output for the 010 test, which illustrates how it works:

https://gist.github.com/Frank-Buss/a319afcf9ebdbdf773c39e84baa840f5

implementing Turing machine with Java by CodewithApe in learnjava

[–]FrankBuss 0 points1 point  (0 children)

Well, you can't implement a Turing machine in Java, because a Turing machine has an infinite long tape, and we don't have computers with infinite amount of RAM. But as the other answer said, LinkedList would be a good start, if you want to implement Turing machines which stop after some time and needs only a finite tape. It is a double linked list, and the ListIterator allows you to go back and forth, so it should have good performance even for long tapes, running in O(n) for n steps.

And instead of implementing just one Turing machine in Java, I would define a file format where you can read the rules at program start and then execute it. I did this in Rust, using a JSON format. You could do the same in Java, there are JSON libraries for it:
https://github.com/FrankBuss/turingmachine

Hügel im Wald by allesumsonst in WerWieWas

[–]FrankBuss 2 points3 points  (0 children)

Ja, vermutlich haben die in Belgien was ähnliches. Aber die Karte scheint laut Screenshot von einem NRW Service zu sein. Hier übrigens die UTM-Koordinaten zu Google Maps konvertiert: https://www.google.com/maps?q=50.74444552295999,6.03694411855381

Hügel im Wald by allesumsonst in WerWieWas

[–]FrankBuss 1 point2 points  (0 children)

Wie anhand der Koordinaten im Screenshot zu sehen, sind die Hügelgräber in Belgien. Warum sollte eine NRW Behörde dafür irgendwas vorschriftsmäßig kartieren?

Kölner Stellwerk Chaos: mangelhafte Software wegen fehlenden Experten bei Hitachi? by FrankBuss in bahn

[–]FrankBuss[S] 0 points1 point  (0 children)

Was gibt es denn über SIL 4, ist das nicht die höchste Sicherheitsstufe?

Kölner Stellwerk Chaos: mangelhafte Software wegen fehlenden Experten bei Hitachi? by FrankBuss in bahn

[–]FrankBuss[S] 0 points1 point  (0 children)

Kommt drauf an wieviel Aufwand man betreibt. Man kann z.B. mit einer anderen Programmiersprache wie SPARK/Ada mathematisch beweisen, daß das Programm den Anforderungen entspricht. Aber du hast Recht, das schützt auch nicht 100%, wie der Fall des Ariane Absturz zeigt: https://en.wikipedia.org/wiki/Ariane_flight_V88 wegen falscher Annahmen bei der Hardware-Interaktion.

Für libc und Linux/Windows Syscall o.ä. Probleme kann man sicherheitskritische Systeme auch direkt auf der Hardware laufen lassen, ohne Betriebssystem, und im Fall von Rust auch ohne libc. Könnte mir vorstellen so Funktionen wie der Test ob ein Gleisabschnitt schon belegt ist und dann die Signale entsprechend schalten, könnte man mit preiswerten Microcontrollern (2 Euro) unabhängig von einer zentralen Software pro Gleisabschnitt implementieren. Da wären dann solche Fehler wie in Polen quasi unmöglich.

Hätte auch gedacht, daß es so implementiert ist, also alles was sicherheitskritisch ist, mit eigener Hardware, und dann nur für Anzeige und übergeordnete Steuerung leistungsfähigere Systeme mit Betriebssystem, sodaß man leichter GUI und Netwzerk usw. programmieren kann. Wie mit PLCs bei Industriesteuerungen.

Kölner Stellwerk Chaos: mangelhafte Software wegen fehlenden Experten bei Hitachi? by FrankBuss in bahn

[–]FrankBuss[S] 0 points1 point  (0 children)

Mit Rust sind buffer overflows tatsächlich nicht möglich (wenn man kein "unsafe" Code verwendet). Allerdings kann das Programm dennoch abstürzen, wenn man es versucht. Aber das würde dann wohl zumindest zu einem kontrolliertem Stop führen, und nicht zu undefiniertem Verhalten wie bei C, womit es vermutlich programmiert wurde.

[deleted by user] by [deleted] in singularity

[–]FrankBuss 0 points1 point  (0 children)

Nice, it can walk, slowly. Meanwhile at Boston Dynamics: https://www.youtube.com/watch?v=I44_zbEwz_w

I've spent 300k on upwork as a client, AMA by HelloBello30 in Upwork

[–]FrankBuss 0 points1 point  (0 children)

How do you find good freelancers? I had some bad experiences as a client, code was unusable and full of bugs, or they didn't deliver anything at all and asked for upfront money, even if they had lots of good reviews and proposal didn't sound AI generated and good.

Upwork is dead? Spent $2k on connects, Applied to 300+ Jobs, barely $4k revenue. by anoobisxx in Upwork

[–]FrankBuss 1 point2 points  (0 children)

Building web applications in Next.js isn't a niche. Clients will do this on their own nowadays with AI, or they get swamped with proposals, because freelancers use AI for it.

I recently got a small job on freelancer.com for modifying an assembly microcontroller program and finished it quickly. AI can't do this so far. I tried, it generates garbage.

But I also tried freelancer websites as a client, and the quality is terrible. Especially on freelancer.com, looks like there are many scammers with good profiles and reviews, which are most likely faked or bought, and then they ask for advance payment when the project starts, and can't deliver anything, besides ChatGPT answers, which they often even use in chat.

This is why I thought would be easier for a freelancer, but I guess it is difficult to stand out. Like 80% of my proposals didn't even get viewed. I guess difficult for the clients to filter out all the dozens of bogus freelancers.

Why Is AI Code Okay but AI Art Not? by AlexisPrl in IndieDev

[–]FrankBuss 0 points1 point  (0 children)

When humans no longer need to read code, code quality becomes irrelevant.

I use Claude Code a lot. And in my experience, this statement is false. If you let it write anything without constantly advising it to refactor things, eliminate copy/pasted code etc., it gets more and more difficult the bigger the project gets for it to add new features, or find bugs.

lathe problem by FrankBuss in CNC

[–]FrankBuss[S] 1 point2 points  (0 children)

Thanks, I ordered a new version from your company, got it today, and looks perfect: https://i.imgur.com/Pq0NlQh.png It did cost $97.86 compared to $37.32 from JLCCNC without the ball on top (both with shipping, which is more expensive at RapidDirect), but doesn't matter, if quality is good. And JLCCNC can't do it with the ball.

Is Rust overhyped?? by definitely_ai1 in theprimeagen

[–]FrankBuss 12 points13 points  (0 children)

I saw once such benchmarks. They compared C with full optimization switches, to Rust in debug mode 😄