News for hackers. Stuff that matters.
Re:Jupyter switches to C++ kernel and widgets by betatim on Friday February 08, 2019 @09:58AM (#19114719)
The title is misleading and wrong. The article is about a new library that lets you write kernels in C++.

There is however a kernel for C++ that you can try here: https://mybinder.org/v2/gh/QuantStack/xeus-cling/stable?file... if interpreted C++ is your thing :)

Re:Jupyter switches to C++ kernel and widgets by T-A on Friday February 08, 2019 @10:36AM (#19115136)
Read the whole article. It starts by introducing xeus and xeus-cling for those who don't already know about it, then gets to the subject of the title, xeus-python, which is based on xeus and, indeed, written in C++:

https://github.com/QuantStack/xeus-python

Re:Jupyter switches to C++ kernel and widgets by detaro on Friday February 08, 2019 @11:05AM (#19115472)
Having a C++-based Python kernel available doesn't mean "Jupyter switches to"
Re:Jupyter switches to C++ kernel and widgets by proverbialbunny on Friday February 08, 2019 @06:36PM (#19119666)
Playing with that xeus-cling notebook, does anyone know how to curb the `error: redefinition of` errors when changing code and rerunning it?

This bug is prohibitive enough I suspect it will be a deal breaker for the majority who want to use this kind of tech.

Re:Jupyter switches to C++ kernel and widgets by drmeister on Friday February 08, 2019 @09:57AM (#19114703)
Nice - I think we will make the switch to this. We wrote a Common Lisp kernel for Clasp (Common Lisp system that interoperates with C++ and uses LLVM as the backend -https://github.com/clasp-developers/clasp) We implemented ipykernel and ipywidgets in Common Lisp by translating the Python code. I think we could switch to Xeus and lower the maintenance burden and contribute to Xeus.
Re:Jupyter switches to C++ kernel and widgets by Tomte on Friday February 08, 2019 @09:07AM (#19114184)
No, that's not the article's title (which is a reasonable one), but a very heavy-handed editorialization.
Re:Jupyter switches to C++ kernel and widgets by stonewareslord on Friday February 08, 2019 @09:59AM (#19114727)
I think OP doesn’t realize Jupyter supports multiple kernels and already has a bunch, they’re just adding another.
Re:Jupyter switches to C++ kernel and widgets by martinRenou1 on Friday February 08, 2019 @11:02AM (#19115443)
The title is wrong here. We don't claim that xeus-python will replace IPython. IPython/IPykernel has plenty of great features and xeus-python covers just a small portion of it.
Re:Jupyter switches to C++ kernel and widgets by martinRenou1 on Friday February 08, 2019 @11:04AM (#19115461)
But still, thanks for the mention! :)
Re:Jupyter switches to C++ kernel and widgets by mistrial9 on Friday February 08, 2019 @10:28AM (#19115059)
hmm no disrespect intended but .. this line of the article jumps out .. "C++ is a good choice for a standard implementation of the protocol, it is a common denominator of most of the languages out there, it has a massive developer community and is widely adopted in the industry for performance middleware applications."

AFAIK the linking characteristics of C++ are pretty bad, since the symbols are mangled in a compiler-specific way, no?

If a small library implements a protocol for any new kernel to re-use, wouldn't it be better to use a language that results in stable external symbols, for linking ?

Re:Jupyter switches to C++ kernel and widgets by T-A on Friday February 08, 2019 @10:38AM (#19115161)
> AFAIK the linking characteristics of C++ are pretty bad, since the symbols are mangled in a compiler-specific way, no?

extern "C"

Re:Jupyter switches to C++ kernel and widgets by pjmlp on Friday February 08, 2019 @11:02AM (#19115444)
Any programming language that supports overloading uses mangled symbols in a compiler-specific way.

Having said this, for C++ there is extern "language" {}, with extern "C" {} being the most common.

Re:Jupyter switches to C++ kernel and widgets by detaro on Friday February 08, 2019 @10:39AM (#19115163)
Seems like it exposes a C API.
Re:Jupyter switches to C++ kernel and widgets by hprotagonist on Friday February 08, 2019 @08:59AM (#19114106)
This isn’t a switch — ipython is still there.

This is a new lightweight option that drops some of the magic in favor of flexibility.

Re:Jupyter switches to C++ kernel and widgets by Sean1708 on Friday February 08, 2019 @09:47AM (#19114600)
I don't think the big news of the article is the Python kernel, but rather the C++ library that makes writing other kernels easier.