https://help.libreoffice.org/latest/en-US/text/sbasic/python...
4,321 karma · joined October 25, 2008
https://help.libreoffice.org/latest/en-US/text/sbasic/python...
https://www.gnu.org/software/emacs/manual/html_mono/woman.ht...
This is false. Org-mode has had this functionality for over two decades.
One detail intrigued me. The author has a PhD in Informatics but "had never used any programmers’ editor other than Notepad++". He credits being able to touch-type for some of his efficiency and went about learning a swathe of tools including Emacs and several diagramming languages. These diagram files and the OrgMode file are a valuable reference in themselves.
It'd be really great if you could put your answer in the readme. It was the first question that came to my mind when looking at your project.
I'm looking forward to trying out schemesh!
What it comes down to is that there are phase transitions in computational systems that depend on how constrained the problem is.
Consider a sudoku puzzle. If the board is almost empty of numbers then it's easy to solve. If the board is almost full of numbers it's easy to solve. But there's some critical amount of numbers filled in (say half of them) that makes the sudoko most difficult to solve. That's where the phase transition is.
The notion of a phase transition comes from thermodynamics where ice becomes water becomes gas.
Here's an early paper on phase transition is AI.
https://www.sciencedirect.com/science/article/pii/0004370287...
Here's a later one on phase transitions for the satisfiability problem (SAT).
Also note that copyright laws exist outside the US and may differ.
When I interact with it by asking it a question in Spanish, the parts between the <think> ... </think> are in English before it goes on to answer in Spanish.
Give it a try in your favourite language.
I went on to ask it if it "thinks" in English, Spanish or Chinese but it just gives the pat answer that, being an LLM, it doesn't think in any language.
The blog post mentions it as one of the reasons for the inefficiency of the conventional algorithm.
A glance at the algorithm shows that the recursion in question is a tail call. This means that any overhead can be readily eliminated using a technique known for nearly fifty years already.
Steele, Guy Lewis (1977). "Debunking the "expensive procedure call" myth or, procedure call implementations considered harmful or, LAMBDA: The Ultimate GOTO". Proceedings of the 1977 annual conference on - ACM '77.
Costs nothing beyond your subscriptions to the individual models.
https://github.com/karthink/gptel
The author shows it with 4 models at once in this demo video:
Python source code available at
www.pqconnect.net/pqconnect-1.2.1.tar.gz
"Programming languages should be designed not by piling feature on top of feature, but by removing the weaknesses and restrictions that make additional features appear necessary."
(define (apply a b)
(cond ((null? a) (list b))
((procedure? a) (cons (car a) b))
((null? (car a)) (cdr a))
((procedure? (car a)) (apply (apply (caar a) b) (apply (cdr a) b)))
((null? b) (caar a))
((procedure? b) (apply (cdar a) (car b)))
(else (apply (apply (cdr a) (car b)) (cdr b)))))
(define t-false null)
(define t-true (list null))
(define t-not (cons (cons (list null) (cons null null)) null))
(apply t-not t-false)
(apply t-not t-true)
Leaf is null, Stem is list and Fork is cons.Anyway, if you found this interesting, you might enjoy Eli Bendersky's blog post from nearly 15 years ago where he adds an "until ... do" statement to Python.
https://eli.thegreenplace.net/2010/06/30/python-internals-ad...
Here are two approaches in Emacs.
https://emacs.stackexchange.com/a/69571
https://rigsomelight.com/2010/02/14/emacs-interactively-find...
For example
"\\`\\(?:[^^]\\|\\^\\(?: \\*\\|\\[\\)\\)"
can be written as (: bos
(| (not (in "^"))
(: "^"
(| " *" "["))))
Emacs also has other features to highlight matches and groups to help understand regexes better.https://www.emacswiki.org/emacs/Rx_Notation https://github.com/mattiase/xr https://www.emacswiki.org/emacs/RegularExpression
Why not "between Suomi and Sverige"?
Or "between Finland and Sweden"?
Is it because Åland is mostly Swedish speaking that "Finland" gets written in English and "Sverig" gets written in Swedish?