Justin got this 100% correct.  Starlight and Starlark are not intended to 
be used to just run existing python code.  there's a ton they don't 
support, so pretty much any non-trivial python program would not be 
compatible.

It's really more of a way to give users the ability to write small to 
moderately sized scripts to customize behavior of your application without 
having to recompile and potentially without even having to restart the 
application.

On Monday, December 10, 2018 at 4:58:48 AM UTC-5, Justin Israel wrote:
>
>
>
> On Mon, Dec 10, 2018, 9:39 PM <mic...@scylladb.com <javascript:>> wrote:
>
>>
>>
>> Do you think it is suitable for porting python applications?
>> Usually you go through cgo like this 
>> https://www.datadoghq.com/blog/engineering/cgo-and-python/ it could be 
>> an interesting alternative. 
>>  
>>
>
> The documentation for Starlark says it is a subset of python, originally 
> targeted at being a configuration language for Bazel. So it wouldn't be 
> complete enough to straight port full Python applications, unless you 
> really backed alot of it with Go code. The cgo approach gives you full 
> access to the CPython API and to embed an interpreter. 
>
> Starlight does sound interesting though for allowing specific extension 
> scripts for a Go application.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to