Code Monkey home page Code Monkey logo

Comments (7)

emil14 avatar emil14 commented on June 3, 2024

Here's e2e

package test

import (
	"os/exec"
	"testing"

	"github.com/stretchr/testify/require"
)

func Test(t *testing.T) {
	cmd := exec.Command("neva", "run", "main")

	out, err := cmd.CombinedOutput()
	require.NoError(t, err)

	require.Equal(
		t,
		`is odd
is odd
is even
is even
is odd
is odd
is even
is even
is odd
is odd
is even
is even
is odd
is odd
is even
is even
is odd
is odd
is even
is even
`,
		string(out),
	)

	require.Equal(t, 0, cmd.ProcessState.ExitCode())
}

from neva.

Catya3 avatar Catya3 commented on June 3, 2024

printSlow version will also trigger the bug

component PrintSlow(data string) (sig any) {
    nodes { p1 Println, time.Sleep }
    200000000 -> sleep:dur // 200 ms
    :data -> p1 -> sleep:data -> :sig
}

from neva.

Catya3 avatar Catya3 commented on June 3, 2024

Just to be pedantic, #575 is about early termination whereas this one is about items printed out of order. Is that a correct interpretation?

from neva.

emil14 avatar emil14 commented on June 3, 2024

@Catya3 yeah, don't sure if they are related

unpredictable termination was because of branching, basically data-race

this one also looks like some kind of race

from neva.

Catya3 avatar Catya3 commented on June 3, 2024

It looks like For actually fixes the unpredictable termination and now we have items executed out of order. Not sure what causes it

from neva.

emil14 avatar emil14 commented on June 3, 2024

Yeah I think the same. I just wanna keep 575 opened until we fix this one, just to be sure

from neva.

emil14 avatar emil14 commented on June 3, 2024

Closed in favor of #644

from neva.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.