Code Monkey home page Code Monkey logo

actomaton's Issues

7guis showcase

I wonder whether this could be used as the underlying "data framework" for implementing 7guis using any GUI toolking of your choice (probably one of those used in Apple ecosystems)?

Unsafe flags were added and after that I cannot use Actomaton as a dependency

Hi.

I played with Actomaton version 0.3.1 and I was happy with it.
Now I tried to upgrade to 0.6.0 and I get the following compilation error:
The package product 'ActomatonStore' cannot be used as a dependency of this target because it uses unsafe build flags.

The commit which introduced the change is this:
Add Sendable conformances, -warn-concurrency & -enable-actor-data-race-checks compiler options

To me this unsafe flags error seems confusing, like for the others.
If that unsafe flags are banned from the dependencies, what should we do? Is that absolutely necessary to add or there is a workaround setting into the project which depend on unsafe flagged packages?

Drag & drop - Race condition warning

Hi, I'm trying to dispatch an action to the store, using the new drag and drop api for SwiftUI (MacOS Ventura).

Here's the modifier:
.dropDestination(for: I.self) { items, location in store.send(.interaction(.droppedListItems((items, itemId)))) return false }isTargeted: { inDropArea in self.dropHovered = inDropArea }

I get the warning "Data race detected: @mainactor function at ActomatonUI/ViewStore.swift:40 was not called on the main thread"

What am I doing wrong ? Any solution to this would be highly appreciated. Thanks!

Breaking type-check when using effect binary operation multi times

Description

i’m facing problem about some project which is using actomaton did breaking type-check.

no problem using binary operation + 1~3 times.
but sometimes use over 3 times, it's problem occurred.

i hope some advice about it πŸ™

Sample code

It happens type-check error.
Compiler error message:

The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions

γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2022-09-06 14 44 29

Workaround: I do separated some effects as local variables. it's work fine.

ex.

 let effect1 = Effect { 
      // do some side effect
     Action.a
 } + Effect {
    // do some side effect
    return nil
 }
 
 let effect2 = Effect { 
      // do some side effect
     Action.b
  } + Effect {
    // do some side effect
    return nil
 }
 
// work fine
 return effect1 + effect2

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.