Git Product home page Git Product logo

Comments (6)

justinmeza avatar justinmeza commented on July 2, 2024

I think this is a good idea! Have you happened to see some of the more recent commits on the "future" branch to support binding to external libraries? I'm still working out the right interface for binding, but I have some examples with some basic file I/O and string manipulation in "binding.c" (BTW, I'm horrible at coming up with LOL-worthy names, so feel free to suggest some better ones!). I think that we can potentially encapsulate these functions using the same interface. Take a look and let me know what you think.

We'll probably want to come up with a set of commands that provide enough functionality to build interesting programs. Feel free to hop on IRC to discuss, I can also set up a forum to document these things, or maybe GitHub is good enough?

from lci.

arth avatar arth commented on July 2, 2024

Hi,

I'm checking out the future branch, and having a play with SOCKS. I'm attempting to send a newline, however the literal string seems to be passed when I try things like:

I IZ SOCKS'Z PUT YR socket AND YR conn AN YR "blah:)" MKAY

Is there any way to send newlines?

from lci.

justinmeza avatar justinmeza commented on July 2, 2024

Ah, I think this is a bug with string interpolation in library calls. Thanks for catching that. Right now, when a library call gets a string as an argument, it does not interpolate it. I will file a separate issue for fixing that.

One thing that will work is assigning the string to a variable and passing that to the SOCKS calls. Here's an example that I've checked works: https://github.com/justinmeza/httpd.lol/blob/master/httpd.lol#L68-L77 .

from lci.

arth avatar arth commented on July 2, 2024

Ah, I had thought about doing that as a workaround, but I thought I'd ask first.

Thanks!

from lci.

justinmeza avatar justinmeza commented on July 2, 2024

OK, I just pushed a commit that interpolates strings in library calls.

from lci.

lar3ry avatar lar3ry commented on July 2, 2024

We'll probably want to come up with a set of commands that provide enough functionality to build interesting programs. Feel free to hop on IRC to discuss, I can also set up a forum to document these things, or maybe GitHub is good enough?

Don't know where else to put this. On the forum register page (http://forum.lolcode.org/ucp.php?mode=register), there is no text field for the captcha. I have tried it with IE, Chrome, and Firefox, but it's all the same. Can't register.

from lci.

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.