I'm interested in doing some more advanced things with SF, including parsing grammars, since there's already a library do this, using it would be nice, but it's written in C, so I'm not entirely sure it can be used in SF, there is a complete Lua port, but it's known to leave trash behind, is there a way to use C libraries in SF?
she/her
Founder of The Anisu Corporation
25-05-2021, 10:10 PM, (This post was last modified: 25-05-2021, 10:17 PM by The17thDoctor. Edited 1 time in total.)
(25-05-2021, 09:29 PM)Consolio Wrote: I'm interested in doing some more advanced things with SF, including parsing grammars, since there's already a library do this, using it would be nice, but it's written in C, so I'm not entirely sure it can be used in SF, there is a complete Lua port, but it's known to leave trash behind, is there a way to use C libraries in SF?
Unless you code it in lua yourself, there is no way to get anything done via C using Starfall.
Moreover, I think that creating your own solutions is also the fun part of SF. If there was a library for everything, I think things would tend to just be us using libraries over and over without any creativity.
The17thDoctor: Server take me to the most handsome person srcds_linux: I cant send people to themselves...
26-05-2021, 05:10 PM, (This post was last modified: 26-05-2021, 05:11 PM by 57e11a. Edited 1 time in total.)
(26-05-2021, 05:10 PM)Consolio Wrote: You don't seriously expect me to spend weeks working on a project that already exists and is already good, do you?
Of course I do this is what makes coding fun. I do not argue against adding this library in a way or another but just saying it's also fun to code stuff yourself.
The17thDoctor: Server take me to the most handsome person srcds_linux: I cant send people to themselves...
(26-05-2021, 05:10 PM)Consolio Wrote: You don't seriously expect me to spend weeks working on a project that already exists and is already good, do you?
Kinda the entire point of starfall someone has already made something and some people just make it again in their own way. Also sockets > LPeg
"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016
[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
(26-05-2021, 05:10 PM)Consolio Wrote: You don't seriously expect me to spend weeks working on a project that already exists and is already good, do you?
Kinda the entire point of starfall someone has already made something and some people just make it again in their own way. Also sockets > LPeg
"Write your own compiler inside a language you aren't extremely fond of and do it inside of a game"
(26-05-2021, 05:45 PM)Consolio Wrote: "Write your own compiler inside a language you aren't extremely fond of and do it inside of a game"
This is what I meant about not having to make things as complicated, you dont necessarily have to re-write an entire library in lua, just make a system that works in the scope of your program.
The17thDoctor: Server take me to the most handsome person srcds_linux: I cant send people to themselves...
(26-05-2021, 05:10 PM)Consolio Wrote: You don't seriously expect me to spend weeks working on a project that already exists and is already good, do you?
Kinda the entire point of starfall someone has already made something and some people just make it again in their own way. Also sockets > LPeg
"Write your own compiler inside a language you aren't extremely fond of and do it inside of a game"
Also how are sockets and grammars related?
They aren't they are just more useful lol
"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016
[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
As it is a compiled library, I really don't think it's even possible to include it unless Facepunch includes it in the Garry's Mod Lua library. Non-Source and non-Lua related things cannot be sent to clients at all, so it wouldn't be possible on the client even if you did find a way of accessing the library.
You can imagine the huge security risks if anyone could upload and run unmanaged code to clients too. Even if it was serverside only (which is actually possible), I personally don't think it would be a great addition to the server.
I agree with Doc and Red, Starfall (and a lot of coding) is working within the predefined limits, where I find the fun is. Sometimes you have to bite the bullet and do it a different or even roundabout way.