Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Abdulazeez Abdulazeez Adeshina
@Youngestdev
Do look into it sha.

ok.

i have returned a comment on the PR

Also, how's the web implementation coming up ? Already working towards it ?
A Toy Soldier
@iamthecarisma_twitter
Not yet
Abdulazeez Abdulazeez Adeshina
@Youngestdev
Ok
From my basic knowledge of C..
A Toy Soldier
@iamthecarisma_twitter
since there is a new way to use dll from simple developemnt will be faster
Abdulazeez Abdulazeez Adeshina
@Youngestdev
I think having the cheatsheet of SIMPLE_API will be nice
I think they are defined in one file sef.. I'll check that

What about .so and .dylib files ?

since there is a new way to use dll from simple developemnt will be faster

A Toy Soldier
@iamthecarisma_twitter
same rule apply to all shared library .so .dll .dylib
Abdulazeez Abdulazeez Adeshina
@Youngestdev
Great then
Abdulazeez Abdulazeez Adeshina
@Youngestdev
Quickly give me the command to compile the C code to *.so
I can't look into the files now :smile:
A Toy Soldier
@iamthecarisma_twitter
which C code
Abdulazeez Abdulazeez Adeshina
@Youngestdev
Creating Dynamic modules.
Just a C snippet implementing a simple-lang function
A Toy Soldier
@iamthecarisma_twitter

simple, you can use the

```c
SIMPLE_API void init_simple_module(SimpleState *sState)
{
//standard streams
register_block("__std_print",std_print);
}

void std_print(void *pointer)
{
fprintf(stdout, "%s", SIMPLE_API_GETSTRING(2) );
}

compile to your lib e.g `lib.so` so in simple you could do

callDynamicModule("lib.so")

__std_print("Hello World")
```

refer to this.
the first code block in your dll.c
the second in your .sim file

Abdulazeez Abdulazeez Adeshina
@Youngestdev
Okay, I'll check that.
So the compilation command ?
A Toy Soldier
@iamthecarisma_twitter
check the Makefile-Linux.mk in consoler folder for the commands
sorry i can't paste kinda busy
Abdulazeez Abdulazeez Adeshina
@Youngestdev
Wehhhh
I'll add that to my todo list then.
A Toy Soldier
@iamthecarisma_twitter
I have resoleved the list index [0][0] issues, which was pointed out by @appcypher while writing the hashtable library
Abdulazeez Abdulazeez Adeshina
@Youngestdev
Okay nice..
I caan see @appcypher is on...
What's happening ?
appcypher
@appcypher
Hi guys, I'm always online cos gitter is always open on my browser.
BTW, ETA on the unix makefiles is going to land soon.
I'm taking a break from work in 2 weeks time, so I should be plenty available then to complete what I started
Abdulazeez Abdulazeez Adeshina
@Youngestdev
Oh nice
A Toy Soldier
@iamthecarisma_twitter
@Youngestdev please review this simple-lang/simple#46
Abdulazeez Abdulazeez Adeshina
@Youngestdev
Aye!.
Dropped some comments.
A Toy Soldier
@iamthecarisma_twitter
Heyo guyz happens simple-lang cannot handle really large numbers, that problem is solvable by making the numbers into string array and perform mathematical operation on it. I am experimenting the implementation using simple-lang itself after all successfull operation then it can be moved to the C source for faster operation.
You can test https://github.com/Thecarisma/simple/blob/master/examples/basic/misc.sim which is able to add infinite string numbers successfully
Abdulazeez Abdulazeez Adeshina
@Youngestdev
Making them into string array.. seems interesting. Let me check that code out and see wah I can do.
That's a nice idea but my be slow and maybe not cool for production. Because we definitely have to be doing conversion each time we've gotta add large numbers.
A Toy Soldier
@iamthecarisma_twitter
That is how other lang do it python, java, ruby e.t.c there is no data type that can hold really large number except string. Talking of speed I ll make it into a c lib and use in simple-lang it ll be faster then, there are also ways to make the operation faster by using the best arithmethic method such as the karatsuba for multiplication and the classic carryover for addition.
Abdulazeez Abdulazeez Adeshina
@Youngestdev
That'll be just okay then!
A Toy Soldier
@iamthecarisma_twitter
A more sensible approach has been applied to DynamicLoader.sim in such a way that it does not rely on __first_call.sim any more
yet to be pushed
Abdulazeez Abdulazeez Adeshina
@Youngestdev
Ah nice, that should fix the Mac issue.
Abdulazeez Abdulazeez Adeshina
@Youngestdev
Hey @/all . I'll try installing Haiku Os and see if I can get simple-lang working on it.
A Toy Soldier
@iamthecarisma_twitter
Simple-lang works very well on Haiku Os. I ve used it before but the OS is a bit slow and it freaking require mouse capture from VM
Abdulazeez Abdulazeez Adeshina
@Youngestdev
Ehen. I just downloaded it, I'll be checking it later
Abdulazeez Abdulazeez Adeshina
@Youngestdev
Abdulazeez Abdulazeez Adeshina
@Youngestdev
Hey guys, I have a suggestion and perhaps we might change the structure of simple-lang
I think this should be proposed as an RFC. I'll set up the rfc rn
Abdulazeez Abdulazeez Adeshina
@Youngestdev
appcypher
@appcypher
Makes sense
Abdulazeez Abdulazeez Adeshina
@Youngestdev
For every substantial feature ( heavy / core ) to be implemented to simple must first pass the RFC circle before decision taking is made and a PR is made in the main repo
So, I have made the first issue in the rfc - Let's discuss the changes to be done in simple more on the RFC. Here, simple-lang/rfcs#1