[sage-devel] Re: Current status of possibility of integrating libraries written in Rust into Sage

2024-06-01 Thread Jing Guo
It seems that Dima Pasechnik's replies are not displaying here, so I will add them: *First message:* *Hi,* *pyo3 seems to be for calling Python from Rust. You need the opposite, Rust from Python, e.g. as described in https://bheisler.github.io/post/calling-rust-in-python/

[sage-devel] Current status of possibility of integrating libraries written in Rust into Sage

2024-06-01 Thread Jing Guo
Dear all, Recently we released a library for counting graph homomorphisms [0] in Sage. Due to performance and parallelism reasons, I was considering the possibility of re-writing some/all of the algorithms in Rust. I found a Rust library called `pyo3` [1] seems to be good for Python-Rust

Re: [sage-devel] Re: Standard/Recommended practices for adding codes with third-party libraries into Sage codebase?

2024-05-20 Thread Jing Guo
024 at 3:43 AM Matthias Koeppe > wrote: > > > > On Sunday, May 19, 2024 at 12:53:25 PM UTC-7 Jing Guo wrote: > > > > In the past few months I have been working on a Sage library for counting > > graph homomorphisms: https://github.com/guojing0/count-graph-homs (It'

[sage-devel] Standard/Recommended practices for adding codes with third-party libraries into Sage codebase?

2024-05-19 Thread Jing Guo
Dear all, In the past few months I have been working on a Sage library for counting graph homomorphisms: https://github.com/guojing0/count-graph-homs (It's still updating, hence not 100% complete) In `concurrent_hom_count.py`, I use third-party libraries, such as `numba`, `dask`, and `numpy`.

Re: [sage-devel] Unable to `load` or `import/cimport` Cython files into Sage while developing

2023-12-31 Thread Jing Guo
05:42 WET, Jing Guo wrote: > > Thank you for all your helps. I asked in that GitHub repo and here is the > > issue: https://github.com/3-manifolds/Sage_macOS/issues/62 > > > > The reason it does not work is probably caused by my macOS being too old > > (10.13.6), so `ld

Re: [sage-devel] Unable to `load` or `import/cimport` Cython files into Sage while developing

2023-12-31 Thread Jing Guo
age itself. You would better open an issue at > https://github.com/3-manifolds/Sage_macOS. If you do, please post the > link of the issue in this thread. > > Best > Vincent > > On Wed, 27 Dec 2023 at 13:43, Dima Pasechnik wrote: > > > > On Wed, Dec 27, 2023 at

Re: [sage-devel] Unable to `load` or `import/cimport` Cython files into Sage while developing

2023-12-27 Thread Jing Guo
8 except Exception as msg: 459 msg = str(msg) + "\n" + distutils_messages --> 460 raise RuntimeError(msg.strip()) 462 if verbose >= 0: 463 sys.stderr.write(distutils_messages) RuntimeError: command '/usr/bin/gcc' failed with exit code 1 ld: unknown option: -p

Re: [sage-devel] Unable to `load` or `import/cimport` Cython files into Sage while developing

2023-12-26 Thread Jing Guo
: > > > On 27 December 2023 01:25:30 WET, Jing Guo wrote: > > Sorry for the confusion. I used Sage downloaded from the website. > > it's not clear what you mean. > We don't distribute Sage binaries, you need to build them. > Please provide more details. > > > > >

Re: [sage-devel] Unable to `load` or `import/cimport` Cython files into Sage while developing

2023-12-26 Thread Jing Guo
gt; built (?) Sage? > > > > > On 26 December 2023 14:52:23 WET, Jing Guo wrote: > > > Dear all, > > > > > > I have implemented an algorithm related to graph homomorphism counting, > > > and recently I am thinking about improving its performance, so I

[sage-devel] Unable to `load` or `import/cimport` Cython files into Sage while developing

2023-12-26 Thread Jing Guo
Dear all, I have implemented an algorithm related to graph homomorphism counting, and recently I am thinking about improving its performance, so I think of writing some of the modules/codes in Cython. For instance, I wrote helper functions in `helper_functions.pyx`, which can be imported

[sage-devel] Re: Ubuntu 22.04, Sage 10.3.beta0: Cannot import sage.all; caanot test due to libflint

2023-12-08 Thread Jing Guo
Issue was resolved. I ran make doc-uninstall make doc-clean make sagelib-clean sagelib-uninstall make I also manually removed it and it was rebuilt later. 在2023年12月7日星期四 UTC+1 15:29:31 写道: > Dear all, > > I have been developing on sage 10.2.rc0, i.e., the latest version prior to >

[sage-devel] Ubuntu 22.04, Sage 10.3.beta0: Cannot import sage.all; caanot test due to libflint

2023-12-07 Thread Jing Guo
Dear all, I have been developing on sage 10.2.rc0, i.e., the latest version prior to 10.3.beta0. I am developing on CoCalc with Ubuntu 22.04. Since some functions that I helped contribute were recently merged into 10.3.beta0, so I want to develop on this version. However, after I run `./sage

[sage-devel] Integrating algorithms implemented in C++ and Java into SageMath

2023-10-08 Thread Jing Guo
Dear all, Some days ago I asked a question [0] here regarding performance of Sage and fast graph algorithms. For a project I am/will be working on, I am thinking about *adding a interface/library for homomorphism counting into Sage*, which should be helpful for many researchers. This

[sage-devel] Questions about performance of SageMath, and of graph (algorithms) libraries

2023-09-30 Thread Jing Guo
Dear all, I contributed to algebraic geometry and dynamics parts of SageMath. During the process, sometimes the tests could take some time to process, which I guess is reasonable, since schemes and other objects can take long time to compute. Today I saw a post [0] on JAX from Hacker News, in

[sage-devel] "TypeError: Not an element of the order." in multiple places when generalizing `canonical_height` in `projective_ds.py`

2023-08-31 Thread Jing Guo
Dear all, As part of this year's GSoC, I am trying to generalize `canonical_height` from `projective_ds.py` to number fields with unique factorization. The PR is https://github.com/sagemath/sage/pull/35967 As of now, there are 8 test failures in this PR, one of which is the following one

[sage-devel] "TypeError: not a constant polynomial" when trying to fix `normalize_coordinates` in `projective_morphism.py`

2023-06-25 Thread Jing Guo
Hello everyone, As it is mentioned [here](*https://github.com/sagemath/sage/issues/35797*), we are trying to resolve this issue, which is mainly going on in this [PR]( *https://github.com/sagemath/sage/pull/35809*). One of the questions that we face is that when running the following example

Re: [sage-devel] Develop Sage inside GitHub Codespaces and/or other "cloud" options?

2023-06-04 Thread Jing Guo
environment with fully compiled sage. > > On Saturday, 3 June 2023 at 22:40:15 UTC+8 William Stein wrote: > >> On Sat, Jun 3, 2023 at 7:13 AM Jing Guo wrote: >> >>> Thank you, Dima. I just learned that CoCalc also provides dev >>> environment setup... >

Re: [sage-devel] Develop Sage inside GitHub Codespaces and/or other "cloud" options?

2023-06-03 Thread Jing Guo
Thank you, Dima. I just learned that CoCalc also provides dev environment setup... I guess I will try GitPod first then. 在2023年6月3日星期六 UTC+2 14:26:01 写道: > On Sat, Jun 3, 2023 at 1:19 PM Jing Guo wrote: > > > > I have not. I am exploring different options and weighing the

Re: [sage-devel] Develop Sage inside GitHub Codespaces and/or other "cloud" options?

2023-06-03 Thread Jing Guo
I have not. I am exploring different options and weighing the pros-and-cons. 在2023年6月3日星期六 UTC+2 14:01:00 写道: > On Sat, Jun 3, 2023 at 12:16 PM Jing Guo wrote: > > > > Hello everyone, > > > > Last year, I developed Sage inside Linux VM (Debian, to be specific) o

[sage-devel] Develop Sage inside GitHub Codespaces and/or other "cloud" options?

2023-06-03 Thread Jing Guo
Hello everyone, Last year, I developed Sage inside Linux VM (Debian, to be specific) on my old Macbook Pro, so the compiling time was not really good, or was not what it could have been. Recently, I learn that there exist some services like GitHub's Codespaces, which seems to provide

Re: [sage-devel] VOTE: move Sage development to Github

2022-09-21 Thread Jing Guo
+1 for Github 在2022年9月22日星期四 UTC+8 06:01:46 写道: > +1 for Github > > Op wo 21 sep. 2022 19:23 schreef David Roe : > >> Dear Sage developers, >> Following extensive discussion, both recently >> >> (prompted >> by issues

[sage-devel] Return "type" of the `logarithmic_embedding` function

2022-07-27 Thread Jing Guo
Hi, I am implementing the `logarithmic_embedding` function [0] (based on Krumm's code) for my GSoC project, which is used for implementing `points_of_bounded_height` function [1]. However, we encounter the following problem: By definition (Def. 4.9.6, on page 208 of "A course in computational

[sage-devel] Where to put height function for polynomials

2022-06-22 Thread Jing Guo
Hi, I am contributing to Sage via GSoC this summer. As part of my work, I am implementing the (global) height on polynomials for number fields. After looking into relevant functions, such as degrees and coefficients, my mentors and I think the following three files can be the candidates:

[sage-devel] Re: Developing for Sage without running "./sage -br" too often?

2022-06-12 Thread Jing Guo
Thank you, Matthias. After using this, I typed and ran "./sage -br" and for some reason it could not build... So I run "make" again and am waiting for it to finish. 在2022年6月12日星期日 UTC+8 02:05:18 写道: > Use "./configure --enable-editable" > > >

[sage-devel] Developing for Sage without running "./sage -br" too often?

2022-06-11 Thread Jing Guo
Dear all, As it's written in the developer guide [0]: > Once you have made any changes you of course want to build Sage and try out your edits. As long as you only modified the Sage library (that is, Python and Cython files under src/sage/...) you just have to run: "./sage -br" Because of

[sage-devel] Re: Unable to build Sage develop branch on MacOS 10.13.6

2022-04-16 Thread Jing Guo
Thank you, Prof. Koeppe. I was just wondering that is there another way to resolve this without having to "build everything" from scartch again? 在2022年4月16日星期六 UTC+8 01:53:28 写道: > Using macports is currently untested. I have a branch for macports support > in