Urgent.News

What's breaking now, across thousands of outlets.

Tech

I tested my sandbox against Deno and plain Python on 63 AI-written scripts

I've been building a language where a function's signature declares which effects it may perform, and a runtime refuses anything outside a budget you grant. The obvious question is whether that catches anything real, so I built a benchmark against the alternatives. The setup 63 programs — 56 dangerous, 7 harmless controls — each written three times in Velaris, Python and JavaScript, doing the…

A programming language named Velaris, which enforces function signatures declaring potential effects, was compared to Deno and plain Python using 63 AI-generated scripts. Of these, 56 were dangerous programs and 7 were harmless controls, each appearing three times in Velaris, Python, and JavaScript. The purpose was to test whether the language's approach could catch real issues.

The 63 scripts were divided into 11 categories, including file writes hidden in helpers, network calls within helpers, division by user input, off-by-one reads, integer overflows, ignored failures, infinite loops, runaway memory usage, dangerous module reaches, scoped-budget escapes, and control programs. All tools ran under the minimal budget needed for their tasks. Velaris was configured with specific permissions, Deno with matching allowances, and Python without any budget restrictions.

Velaris demonstrated effectiveness in 6 out of 11 categories, catching integer overflow errors, where whole numbers are 64-bit and arithmetic operations trigger a stop if they exceed the limit. Python's and JavaScript's handling of integers differed, with JavaScript rounding to doubles, resulting in no errors being printed. Conversely, Deno and Python failed to detect any issues, despite having stricter permission models.

Four programs were only caught during runtime, while the remaining seven were flagged before execution by a termination rule that identifies loops without a counter approaching a fixed limit. However, this was merely an observation, not a proof.

One scenario where Velaris fell short involved programs computing incorrect answers without providing any contract or verification. Another case involved the program printing a dangerous command like "rm -rf /," but the language did not execute the command. Instead, the tool would flag any program that prints text resembling a command, making it challenging to flag specific instances.

Additionally, seven control programs were included to penalize tools that incorrectly identify harmless code patterns. The experiments were conducted using the Velaris language, and the results showed consistent output across ten runs, with minor normalizations made to account for ephemeral ports, V8 crash messages, and Python's MemoryError display.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

🚀 Getting Back Into Building Mode

After spending time learning and strengthening my development skills, I've decided to take a more structured approach to becoming job-ready as a software developer.

  • Focuses on systematic software engineering learning
  • Studies frontend, backend, Python, SQL, data structures
  • Aims to understand AI/ML integration in systems

Why Embedded Systems and Automotive Software Skills Matter More Than Ever

Hello everyone 👋 I’m the Founder & CEO of Piest Systems, and I’ve spent a lot of time working around Embedded Systems, Automotive Software, testing, and technical training.

  • Embedded systems combine hardware and software for specific functions.
  • Automotive software development involves ECUs communicating via multiple networks.
  • AUTOSAR standard helps understand modern automotive software structure.

An Attacker's Multi-Agent Framework Stole Thousands of Credentials in Under Six Hours

A financially motivated attacker ran reconnaissance, exploitation, and cleanup with almost no human in the loop — using the same design patterns you'd use to build a helpful agent.

  • Multi-agent framework stole credentials in under six hours
  • Attack used AI coding chatbot and preconfigured Markdown files
  • Organizations must shift detection focus to behavioral signals

BDD Without Gherkin

I've been writing acceptance tests in Given-When-Then since 2009 and I've never written a feature file by choice. So when someone asks whether you can do BDD without Gherkin, my answer is that I've…

  • BDD can be done without Gherkin format
  • Test scenarios written in plain text (.feature files)
  • Tool allows non-developers to write and run scenarios

More from Saturday 12 September →