Homebrew Can anyone help me with embedding a scripting language into c?

joshjosh100

Member
OP
Newcomer
Joined
Oct 11, 2015
Messages
24
Trophies
0
Age
26
XP
77
Country
United States
I looking to embed python/perl into c for programming myself a games and various other stuff in c and scripting with python/perl..... also rather not use lua as i'm more familiar with python

anybody can explain how i can program a python/perl into a c program, im having trouble figuring it out
 

joshjosh100

Member
OP
Newcomer
Joined
Oct 11, 2015
Messages
24
Trophies
0
Age
26
XP
77
Country
United States
basically from what ive seen, if I embed a interpreter into my c program i can do this, but i need to know how to embed it

--------------------- MERGED ---------------------------

Basically I need to find a way to embed python/perl/ruby into c... where it can read scripts to do things that c could not do as easy
 

robot56

Well-Known Member
Newcomer
Joined
Sep 13, 2015
Messages
94
Trophies
0
Age
34
XP
111
Country
United States
Honestly, I don't know how implementing a scripting language interpreter would be useful for "doing things C couldn't do easily". If anything, it complicates things further -- take a look at the Lua Player Plus port to the 3DS.

Maybe you should learn a bit more of C? Or use C++? Depending on what you're trying to accomplish you might be able to use an existing library made for what you're having difficulty with.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Psionics offline right now or I would
  • SylverReZ @ SylverReZ:
    @cearp, Psi is offline at the minute, but he knows where to find them.
  • cearp @ cearp:
    get your mind out of the gutter, I'm talking about piracy
  • cearp @ cearp:
    not that type of crack
    +1
  • K3Nv2 @ K3Nv2:
    I mean the drug not the booty pervs
    +2
  • linuxares @ linuxares:
    @cearp At a plumber convenstion. Loads of cracks!
    +2
  • K3Nv2 @ K3Nv2:
    A plumber is either on crack or in crack or showcasing crack
    +2
  • cearp @ cearp:
    or of course, dealing with cracks (in pipes)
  • K3Nv2 @ K3Nv2:
    Sure he could be on cracked flooring causing the leak
  • K3Nv2 @ K3Nv2:
    How much you bet delta going to be DRMd to hell and back
  • The Real Jdbye @ The Real Jdbye:
    @linuxares the dev just ends up at 0
  • The Real Jdbye @ The Real Jdbye:
    it's no worse than if you pirated
  • The Real Jdbye @ The Real Jdbye:
    it's probably better, because not all keys on key sites are stolen
  • The Real Jdbye @ The Real Jdbye:
    plus piracy is not always an option
  • The Real Jdbye @ The Real Jdbye:
    i heard a related story for a dev actually
  • The Real Jdbye @ The Real Jdbye:
    from a dev*
  • K3Nv2 @ K3Nv2:
    DRMs are getting stronger these days
  • The Real Jdbye @ The Real Jdbye:
    they bought their own game on a key site and checked where they came from and it turned out they were review copies he had given out by email to someone
  • The Real Jdbye @ The Real Jdbye:
    *all* of them
  • NinStar @ NinStar:
    no storefront I'm aware of (at least on pc) requires the devs to pay for the keys they generate
  • NinStar @ NinStar:
    they don't lose money doing this, even if someone decide to chargeback
  • The Real Jdbye @ The Real Jdbye:
    so that seems to be a pretty common thing, i kinda blame the dev for that one though as they were giving out like 5 keys to someone just because they asked for multiple copies for review for whatever reason and there were multiple people doing this. he should've seen the red flags
    SylverReZ @ SylverReZ: @Xdqwerty, Hello