Skip to content
#

interpreter

Here are 4,198 public repositories matching this topic...

Red is a next-generation programming language strongly inspired by Rebol, but with a broader field of usage thanks to its native-code compiler, from system programming to high-level scripting and cross-platform reactive GUI, while providing modern support for concurrency, all in a zero-install, zero-config, single 1MB file!

  • Updated Feb 24, 2022
  • Red
ihar-orca
ihar-orca commented Feb 21, 2022

A full script:

#!/bin/bash

cat /etc/passwd | cut -f3 -d":" | sort -n | uniq -c | while read x; do
	[ -z "${x}" ] && break
	set - $x
	if [ $1 -gt 1 ]; then
		users=$(awk -F: '($3 == n) { print $1 }' n=$2 /etc/passwd | xargs)
		exit 1
	fi
done

Just a simple script to reproduce the issue:

#!/bin/bash
set - "test"

When I'm trying to run this script using the inte

Thihup
Thihup commented Aug 19, 2021

Current, if we try to run a more recent Java class in an old JVM, we get the following error message:

Error: LinkageError occurred while loading main class some.Class
	java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=some/Class, offset=6

However, it is not so easily to detect that the class was compiled with a version above the supported by the JVM.Hotspot

boa
raskad
raskad commented Sep 29, 2021

In strict mode arguments and eval are mostly treated as keywords. For example they cannot be assigned to. But they should be allowed as return values from a strict function.

The following code examples currently fail, but should work:

let eval = 1;

function a(){
    "use strict";
    return eval;
}

a() // returns 1
function a(){
    "use st
root
guitargeek
guitargeek commented Feb 10, 2022

If one uses the VisualizeError and FillColor options of RooAbsReal::plotOn(), for example like this:

using namespace RooFit;
model.plotOn(frame, VisualizeError(*r, 1), FillColor(kOrange));

You get a false warning:

WARNING:Plotting -- Fill color or style was set for plotting "model", 
pocketlang
ThakeeNathees
ThakeeNathees commented Jun 30, 2021

Currently, our math module isn't completely filled with necessary math functions, where you can contribute us by adding more math functions. This issue has reference on how to add log function to the math module.

How to implement

PR #154 has example on how to add log10 to the math module, which you can use as a reference to add log (base 2) function.

Finally

And don't forget

Improve this page

Add a description, image, and links to the interpreter topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the interpreter topic, visit your repo's landing page and select "manage topics."

Learn more