guile | mirror of GNU Guile | Translation library
kandi X-RAY | guile Summary
kandi X-RAY | guile Summary
mirror of GNU Guile
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of guile
guile Key Features
guile Examples and Code Snippets
Community Discussions
Trending Discussions on guile
QUESTION
I have problem with my code, I'm not able to save newline using binary port, I want to write unit test for my Scheme implementation but I'm not able to figure out why I got this results also in Gambit and Kawa (Gauche and Guile fail to run the code, because of missing procedures).
...ANSWER
Answered 2021-Mar-06 at 13:27A newline is saved into the file: checking the file with od
or something will show you that.
However your logic reading the file is incorrect: you never do anything with the last character you read. If you instead wrote (say)
QUESTION
I'm in the process of trying to update some old guile 1.8 code to guile 3.x. I'm struggling to find a good replacement for a particular construct.
Here's an example that represents the old 1.8 code:
...ANSWER
Answered 2021-Jan-30 at 12:53You'll need to change make-nodes
. If you think about an expression like
QUESTION
Is it possible to write an R5RS macro that would "flatten" arbitrarily deep syntax tree?
Example:
ANSWER
Answered 2021-Jan-31 at 07:41Here's my quick attempt:
QUESTION
I've written Scheme REPL that works in all implementations I've tested, but have problem when when someone press enter and don't type anything.
...ANSWER
Answered 2021-Jan-11 at 11:47I was able to fix my REPL:
QUESTION
Beginner here...
Doing a code to check language performance in Cpp, Java and Python.
The code must generate a random number N (1-60), fill a NxN matrix with random numbers between 0 and 9 and calculate its determinant.
I started with cpp, but sometimes it succeeds, sometimes it fails. My guess is that crashes are related to bigger than "long long int" numbers. Can you guys please check my code?
GNU GCC / CodeBlocks.
Thanks,
Guile.
...ANSWER
Answered 2021-Jan-10 at 13:50Inside your function setMatrix
:
QUESTION
I am trying to link guile to an Rcpp file. It seems like things compile but there is an error when loading:
...ANSWER
Answered 2020-Dec-17 at 18:11You are so, so close. You essentially solved this. I just took your file, made a small modification of making the script an argument and (as you didn't post script.scm
) commented out the content-specific stuff. We still load it though:
QUESTION
I have heard its a conventional practice to store program dependent files in /usr/share/application-folder
in linux. So I'm trying to do it in my c program in a function called load_interface_files()
for example. I am not sure if this is a good practice or not, I've heard about creating configuration files for this kind of issues.
Anyways, here's the the code I wrote to make a directory in /usr/share
.
ANSWER
Answered 2020-Dec-01 at 04:25use ls -ld /usr/share
to see what the permissions on the directory are (without -d
, you get the contents and their permissions).
Use code like:
QUESTION
I'm playing with Scheme I want to run something like this:
...ANSWER
Answered 2020-Nov-12 at 12:31I tried it with mit-scheme
but I suspect in the other versions of scheme the meaning of reduce
is identical.
QUESTION
I want to develop and run a ruby on rails web app on my Bootcamp windows Mac laptop. I am using rubyinstaller and railsinstaller, but the installation breaks always at some PGP key check which I have no idea about.
Facing issue while trying to install ruby installer
...ANSWER
Answered 2020-Sep-13 at 06:431st for RIDK, just run 1,3 enter when instalation
2nd for SQLite3 issue, follow the following link solution of reducing sqlite version in gem file and running "bundle install" Rails error on windows 10 (An error occurred while installing sqlite3 (1.4.1), and Bundler cannot continue)
QUESTION
I am using autotools to build a project that I want to cross-compile for both Linus and Mac OSX. I am building two libraries, libevent.la
and libaffinity.la
. libevent
should be build when automake is run on both platform. However, libaffinity.la
should be build only if the platform is MACOSX. To this end, I have the following in my configure.ac
file:
ANSWER
Answered 2020-Jul-23 at 19:49The main problem turns out to have been that the lines in the conditional section were indented with tabs. These are not particularly significant to Automake, but they will have been carried through to its generated Makefile.in
, and, from there, to the Makefile
generated by configure
. Tabs are significant to make
: a leading tab is how make
recognizes the lines of a rule's recipe. (Only a tab will do; spaces do not have the same significance.)
The effect, then, was that make
interpreted extlib_LTLIBRARIES += libaffinity.la
as one of the commands in the recipe for some rule, so that when it tried to apply the rule, it wanted to execute a system command named extlib_LTLIBRARIES
. There being no such executable command found in the path, the shell failed and reported "No such file or directory", which message make
forwarded on to its own output.
The fix is to avoid indenting with tabs in your Makefile.am
(spaces are ok), except where you actually intend to write a recipe for a make
rule (for which an initial tab is obligatory).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install guile
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page