Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 2 3 4 5 … 18 Next »
LPeg in SF
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
LPeg in SF
25-05-2021, 09:29 PM,
#1
57e11a Offline
Cheating Donating Member
***
Posts: 198
Threads: 68
Joined: Apr 2019
LPeg in SF
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
[Image: iZUefQi.gif]
Find
Reply
25-05-2021, 10:10 PM, (This post was last modified: 25-05-2021, 10:17 PM by The17thDoctor. Edited 1 time in total.)
#2
The17thDoctor Offline
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
RE: LPeg in SF
(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...
Website Find
Reply
26-05-2021, 05:10 PM, (This post was last modified: 26-05-2021, 05:11 PM by 57e11a. Edited 1 time in total.)
#3
57e11a Offline
Cheating Donating Member
***
Posts: 198
Threads: 68
Joined: Apr 2019
RE: LPeg in SF
You don't seriously expect me to spend weeks working on a project that already exists and is already good, do you?   Smile

she/her
Founder of The Anisu Corporation
[Image: iZUefQi.gif]
Find
Reply
26-05-2021, 05:30 PM,
#4
The17thDoctor Offline
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
RE: LPeg in SF
(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?   Smile

Of course I do Smile 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...
Website Find
Reply
26-05-2021, 05:38 PM,
#5
Red The Blue Color Offline
TSCM Super Donating Member
****
Posts: 422
Threads: 34
Joined: Feb 2015
RE: LPeg in SF
(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?   Smile

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.
Find
Reply
26-05-2021, 05:45 PM,
#6
57e11a Offline
Cheating Donating Member
***
Posts: 198
Threads: 68
Joined: Apr 2019
RE: LPeg in SF
(26-05-2021, 05:38 PM)Red The Blue Color Wrote:
(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?   Smile

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?

she/her
Founder of The Anisu Corporation
[Image: iZUefQi.gif]
Find
Reply
26-05-2021, 06:39 PM,
#7
The17thDoctor Offline
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
RE: LPeg in SF
(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...
Website Find
Reply
26-05-2021, 08:47 PM,
#8
Red The Blue Color Offline
TSCM Super Donating Member
****
Posts: 422
Threads: 34
Joined: Feb 2015
RE: LPeg in SF
(26-05-2021, 05:45 PM)Consolio Wrote:
(26-05-2021, 05:38 PM)Red The Blue Color Wrote:
(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?   Smile

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.
Find
Reply
26-05-2021, 11:12 PM,
#9
frdhog Offline
Hasn't finished a ship in 2 years
****
Posts: 72
Threads: 31
Joined: Feb 2016
RE: LPeg in SF
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.
Website Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.