问题标签 [bigloo]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
516 浏览

multithreading - 如何在 OS X 的 Bigloo 方案中启用本机线程支持?

我正在尝试Bigloo从源代码编译Scheme,但我无法弄清楚如何通过./configureOS X 10.5(Leopard)启用本机线程支持(而且我还没有读到线程不应该在这个平台上工作的任何地方)。

我运行./configure --enable-sqlite --enable-web --enable-ssl --enable-pthreads --enable-fthreads,但是在配置摘要中,我总是得到:

我想Bigloo使用Hop,当我尝试使用如此创建的二进制文件运行它时,我总是收到警告:

0 投票
1 回答
380 浏览

multithreading - 正确使用 Scheme (Bigloo) 中的线程

我正在尝试使用 Bigloo 实现在 Scheme 中编写应用程序服务器。编码:

它编译正常,但程序在启动后立即终止:

我哪里错了?

非常感谢。

0 投票
4 回答
3586 浏览

java - 如何规避 Java 编译中的“方法太大”错误?

我有一个用 bigloo 方案功能语言编写的解析器,我需要将它编译成一个 java 类。整个解析器被编写为单个函数。不幸的是,这导致 JVM 编译器抛出“方法太大”警告,然后给出“localvar 中的远标签”错误。有什么可能的方法可以规避这个错误吗?我在某处读到有关 DontCompileHugeMethods 选项的信息,它有效吗?拆分功能对我来说似乎不是一个可行的选择:( !!

0 投票
1 回答
884 浏览

scheme - 使用 Bigloo 编译

我已经在 DrRacket/Scheme 中编写了一个方案文件,并且我有我的 .rkt 文件。我现在需要编译我用 Bigloo 编写的内容。我已经安装了 Bigloo,但我不知道如何使用它。

有谁知道怎么做?

0 投票
1 回答
186 浏览

scheme - 编译器 Bigloo 问题

我想问的是,按下 Dr.Racket 中的“制作可执行文件”按钮与使用 bigloo 制作可执行文件有什么区别。

另一个问题是,我在使用 bigloo 编译 *.scm 文件时遇到问题。任何人都可以帮助我吗?

谢谢

0 投票
2 回答
1996 浏览

scheme - Scheme: Proper application of the eval function?

at work I encountered a basic problem when trying to implement a configuration script with Scheme. To avoid the need of inventing an artificial and restricted language the script should contain actual code. This code shall be evaluated later on. To make the configuration work as desired it has to have access to certain variables. These variables are only known in the context of the evaluation. Therefore the configuration script has to be evaluated in the current environment. Here is a primitive example of what I am talking about:

When running this code I'd always get an error message telling me that the variable 'a' is unknown. So the question is: Do you know how to evaluate frozen code inside the current environment?

P.S.: I use the bigloo compiler.

///////////////////////////////////////////// EDIT: //////////////////////////////////////////////////////

When using the approach suggested by Chris I came to another interesting problem, the usage of the case keyword. The following two examples both use the same case construction which should trigger the output of a "yes!" line. Unfortunately they behave differently.

Usual -> output is "yes!" as expected:

With eval -> output is surprisingly "no":

Does that make any sense?

0 投票
1 回答
829 浏览

scheme - 如何避免 LALR 语法中用于解析嵌套列表的移位减少冲突?

我想创建一个 LALR 语法来解析嵌套列表,但我总是遇到移位/减少冲突。

我有 list1,它是 type1 项目和 list2 的列表:

我有一个 list2 ,它是 type2 项目的列表:

此语法产生移位/减少错误。我怎样才能避免它?

这是具体的Bigloo来源:

终端是:comment、new-line、text-chunk 和 white-space。非终结符是:输入、节点列表、节点和文本。

Bigloo 抱怨文本到文本块的缩减规则:

但我不认为这是一个 Bigloo 问题。它看起来像一个语法问题。

0 投票
2 回答
261 浏览

list - 在一维中变换 M 维列表

我是方案编程的新手,我正在学习基本算法,例如如何定义映射、追加等。

但是有一种算法我找不到实现。我谈到将 M 维列表转换为一维。我试图自己定义它,但没有成功。

我到底想要什么:

0 投票
1 回答
490 浏览

makefile - pthread 的 bigloo 方案“进行测试”失败

我正在尝试在 Linux Mint 12 (lisa) 上从 bigloo 方案的最新源 3.8a 构建,它是 Ubuntu 11 (Oneric) 衍生产品:

这是我的“配置”:

“制作”成功;但是 pthread 的“make test”失败

根据这篇关于这个 pthread 问题的优秀帖子,我们需要在链接 pthread 库时重新排列命令行参数。但是,我无法找到所需的 Makefile 代码——可能是因为它依赖于 Makefile 默认值,该默认值以某种方式链接库。

任何帮助将不胜感激。

0 投票
1 回答
662 浏览

c++ - 从嵌入的角度来看,Bigloo 和 ECL 有什么区别?

我一直在寻找将 Lisp 嵌入到一些 C++ 代码中。我感兴趣的两个选项是 Bigloo Scheme 和 ECL(Common Lisp)。通读文档,他们似乎支持非常相似的功能集。明明Bigloo是Scheme,ECL是CLisp,但它们还有什么区别呢?

特别是我对以下标准感兴趣:

  • 易于嵌入(对于 C++,而不仅仅是 C)。我不想写一堆样板。
  • 表现。Bigloo 是基于性能的,并且有许多编译器优化选项,尽管我找不到任何可与 ECL 相媲美的东西。
  • 编码风格。这个更适合 Bigloo - 它比 ECL 更实用吗?

我将这个问题的目标对准了两个都使用过的人。