Comments (6)
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.
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.
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.
Ah, I had thought about doing that as a workaround, but I thought I'd ask first.
Thanks!
from lci.
OK, I just pushed a commit that interpolates strings in library calls.
from lci.
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)
- NUMBAR doesn't always work with line continuation
- EOL doesn't replace MKAY when calling a variadic function
- Function can read and modify variables in outside scope
- Python 2 is EOL in 3 months
- BTW may not appear on the same line as TLDR
- LIEK does not perform a deep copy HOT 2
- Is lolcode dead?
- Suggestion: PIPE library to allow execution of commands in LOLCODE
- 'future' branch interpreter array errors HOT 2
- Windows Standalone Version
- Loops always create a loop-scope variable and initialize it to 0
- Does not work on replit.
- Does this allows to embed into software as a script language? HOT 1
- LOLCODE for Windows 10 HOT 1
- test fail with Python 3
- Error Installing: There was a Make error - Readline.h HOT 4
- CMake ERROR HOT 1
- Functions of NOOB very limited
- Out of Bounds Read and Null Pointer Dereference in LCI Version 0.10.5
- Link to spec? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lci.