jsMath
sage days 8 cython talk

Yes, C++ and Cython Work Together


1. Cython generates code that C++ compilers compile

2. C name space specifiers


       
       
       
       
2
2
       
2
''
2
''
       
       
       
Exception (click to the left for traceback):    
...
/Users/was/.sage/temp/teragon.local/88048/spyx/_Users_was__sage_sage_notebook_worksheets_admin_101_code_sage97_spyx/_Users_was__sage_sage_notebook_worksheets_admin_101_code_sage97_spyx_0.pyx:15:7: Attempting to index non-array type 'intvec'
Traceback (most recent call last):    
  File "/Users/was/build/sage-2.10.3.alpha0/local/lib/python2.5/site-packages/sage/server/support.py", line 300, in cython_import_all
    create_local_c_file=create_local_c_file)
  File "/Users/was/build/sage-2.10.3.alpha0/local/lib/python2.5/site-packages/sage/server/support.py", line 281, in cython_import
    create_local_c_file=create_local_c_file)
  File "/Users/was/build/sage-2.10.3.alpha0/local/lib/python2.5/site-packages/sage/misc/cython.py", line 243, in cython
    raise RuntimeError, "Error converting %s to C:\n%s\n%s"%(filename, log, err)
RuntimeError: Error converting /Users/was/.sage/sage_notebook/worksheets/admin/101/code/sage97.spyx to C:


Error converting Pyrex file to C:
------------------------------------------------------------
...



cdef intvec v = intvec_factory(10)
print v.get_entry(2)
print v[2]      ^
------------------------------------------------------------

/Users/was/.sage/temp/teragon.local/88048/spyx/_Users_was__sage_sage_notebook_worksheets_admin_101_code_sage97_spyx/_Users_was__sage_sage_notebook_worksheets_admin_101_code_sage97_spyx_0.pyx:15:7: Attempting to index non-array type 'intvec'

       
       
       
       

Tour

1. Givaro

2. NTL