Coder Social home page Coder Social logo

logicjs's People

Contributors

eush77 avatar frizi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

logicjs's Issues

License

Hi—I'm interested in using this project in a different, MIT-licensed library.

I don't see a license specified anywhere in this repo or in the source code. Have you guys settled on a license? If so, can you please specify it in a LICENSE file or in source code headers? I'd really like to be able to use this project but am unable to without an explicit license.

If MIT is a good fit for you, here's a LICENSE.md that you could create:

Copyright (c) 2015 @mcsoto \<https://github.com/mcsoto\>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Babel Plugin

I really dig this package -- what if we could use this library for pattern matching in JS via a babel plugin?! Have you put any thought into this? That could be really really cool.

Hitting 'Too much recursion' beyond 200 'OR'

Hi,

I'd like to use this lib as a basis for a logic database. The logic.or function calls itself repeatedly when I use the lib as shown in the doc. As it is today, I'm not able to use a goal with more than 200 OR'ed subgoals.

Is there a workaround to avoid recursion, maybe streams or async or anything else?

Javascript arrays to lists

Hi, just as a follow up question - I was wondering how javascript arrays might be transformed into the list structure required for the queries.

Negation primitive goal

The library supports primitive goals such as and, or & eq. But does it support the not primitive goal?

NPM support

It would be a lot easier if I could install this using NPM.
If you are not familiar with how to publish to NPM read this

Made a project with this!

Hello mcsoto, I made a project using your library. You can see it here:
https://github.com/Goom11/SidewaysMath/
it runs here: https://goom11.github.io/SidewaysMath/

it solves math puzzles like this:

 EGG
+EGG
----
PAGE

where each character represents a digit and the digits must be unique (the solver does not actually check uniqueness)

I'd love it if you have the bandwidth if you could look at my code and see if I utilized your project correctly or if I could have done anything differently. If not, no worries.

Had a lot of fun with this project.

Publish to NPM?

If this project is published on NPM it reduces the friction of using it in other projects :)

Support for ES6 import/export Syntax

Hey there,

first of all, thank you for your wonderful library!

I wanted to use it in my Svelte/Rollup based application and faced some problems with JavaScript strict mode and module import/export. As a result, I created a fork of this repo that supports ES6 modules at LogicJS-ES6. I would not recommend a merge though because that would break CommonJS compatibility. Just wanted to leave this here for everybody facing the same problem.

Keep up the good work.
@stromhalm

Question on possible recursion

Hi, I just happened to have stumbled on this repo, and this seems very nice. I was just wondering if there might be support for recursion here, and if so, if there may be any caveats, etc.

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.