Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT Security ToolsNew Alpha Release: Tor Browser 16.0a12(22.09.2026 um 02:00 Uhr)
IT Security ToolsOneDrive-UDC2(22.09.2026 um 08:43 Uhr)
IT Security ToolsAADOutsider-py(22.09.2026 um 09:24 Uhr)
Malware / Trojaner / VirenBambooToken Linux Malware Uses MQTT to Run Shell Commands and Steal Files(22.09.2026 um 09:46 Uhr)
IT Security ToolsNew Alpha Release: Tor Browser 16.0a12(22.09.2026 um 02:00 Uhr)
IT Security ToolsOneDrive-UDC2(22.09.2026 um 08:43 Uhr)
IT Security ToolsAADOutsider-py(22.09.2026 um 09:24 Uhr)
Malware / Trojaner / VirenBambooToken Linux Malware Uses MQTT to Run Shell Commands and Steal Files(22.09.2026 um 09:46 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

I Taught My JavaScript AI to Rewrite Its Own Code

What if the AI systems we build could take an active role in their own evolution? This is the question that drove my latest experiment. Many of you are familiar with my from-scratch neural network library, slmnet. After porting it from…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

What if the AI systems we build could take an active role in their own evolution? This is the question that drove my latest experiment.



Many of you are familiar with my from-scratch neural network library, slmnet. After porting it from the browser to Node.js, I set myself a challenge: to stay within a pure JavaScript and Node.js environment. No Python wrappers, no C++ bindings. This constraint was intentional—it forced a deeper understanding and ensured that every part of the system was transparent and malleable.



This foundation allowed me to explore a fascinating, advanced AI concept: creating a system that could learn to optimize itself.



I architected a high-level supervisor, the Meta-Controller, designed to guide an AI agent (powered by slmnet itself) through a cycle of self-improvement. The process is a fully automated loop:




  1. Benchmark: The cycle begins by measuring the current performance of the slmnet library. A standardized script runs a short training session and outputs two key metrics: final loss (accuracy) and execution time (speed). This gives us a hard, numerical baseline.


  2. Analyze & Decide: The Meta-Controller then presents the AI agent with a choice. It shows it the current, stable code of a core file (e.g., Ops.js) and a pre-written "mutation"—an alternative version containing a potential optimization. The AI's task is not to generate complex code from nothing, but to act as an engineer in a code review. It must analyze the difference, form a hypothesis, and make a simple, critical decision: is this change worth testing?


  3. Automated Testing: If the AI agrees, the Meta-Controller temporarily overwrites the live code with the proposed mutation. It then immediately re-runs the exact same benchmark to measure the impact of the change.



  4. Evolve or Revert: This is the core of the feedback loop. The new performance metrics are compared to the baseline.




    • If the change was beneficial—faster execution or a lower loss—it's deemed a successful evolution. The new code becomes the new standard.

    • If the change was detrimental or made no difference, it’s a failure. The Meta-Controller instantly reverts the code back to its last known stable version.





The first time I ran this loop, the AI—being very new—produced a nonsensical answer. But the system itself performed flawlessly. It correctly identified the invalid response, logged the failure, and maintained the stability of the codebase without human intervention. The architecture for self-optimization was proven to work.



What this experiment demonstrates is that the core concepts of meta-learning and self-improving systems are not exclusively the domain of massive, closed-off models. We can build, test, and understand these feedback loops using accessible tools. By confining the project to pure JavaScript, I built a transparent testbed where the process of an AI reasoning about its own code is not a black box, but a clear, observable engineering cycle.



https://github.com/Xzdes/reasoningHeuristicAI

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I Taught My JavaScript AI to Rewrite Its Own Code

Thematisch verwandte Begriffe: Taught, JavaScript, Rewrite, Code · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-55210 | Joplin is an open source note-taking and to-do application that organise…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick