Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Phlisg25246yWorking on go/js projects, I often log things to the console, just to know which is what
Can you log stuff in some sort of terminal/file at runtime? Not ideal but 'tis a solution :D -
hasu23706y@Phlisg main language is lisp, and inside lisp we use prolog, and inside prolog sometimes we need a lisp function.
I'm currently struggling with the syntax even. There is not that much documentation on it, and the lisp compiler ignores the prolog part kind of, so one is not quite sure if it's correct. -
Condor324966yGood thing that you realize that languages within languages are a recipe for disaster.. once I've looked at some noob's hacking script that was.. wait for it.. Python within bash!! Such a convoluted mess that was probably glued together shit from Stack Overflow. I ended up reducing the size of her to a quarter of the original LOC, and only used bash. Refactoring the shit from others, why... 😞
Anyway, be sure to get the hang of the language you're using before you write anything more permanent than a local dev branch 😅 -
Mixing languages is usually fine, like using Python and coding speed criticial or hardware related parts in C. Or coding in C and using assembly where C is too high level.
But either these interworkings are very local so that it's easy to follow up, or you need well structured components with clear interfaces. -
grayfox36206yLisp and prolog... Are you doing something related to computational linguistics or natural language processing?
-
hasu23706y@antorqs but prolog is used to access the database for virtual reality data on which i base my plans.
Related Rants
when you have to use one language inside of another, and you basically have to call functions allowing you to call the other's language function within it, and you get the hell confused, since it gets harder and harder to see what is what and who can call who and how, and the compiler ofc. won't say anything about it since it only cares about the main language you are in and not the nesting of the other...
I just have no idea what I'm doing right now, or if my thought process and understanding of this is even close to where it is supposed to be.
D: I'm just confused and insecure about this right now....
time for experiments to figure this out, and get the hang of it
rant
nesting
why
one language inside another