Question again

2021-09-16 Thread af kh
Hello, I was doing some coding on a website called replit then I extracted the file, and opened it in Python. For some reason, after answering 'no' or 'yes' after the last sentence I wrote, the Python window shut off, in replit I added one more sentence, but it isn't shown on Python, it just shu

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-16 Thread Mostowski Collapse
Compound is not used for boxing. Integers and floats are represented directly. Also integers are not mapped to floats. But maybe compound could be a little flattened, like using directly an array. But then you cannot assure anymore "clean, simple, readable code". For example now I have clean, simp

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-16 Thread Chris Angelico
On Fri, Sep 17, 2021 at 3:20 AM Mostowski Collapse wrote: > > Compound is not used for boxing. Integers and floats > are represented directly. Also integers are not mapped to > floats. But maybe compound could be a little flattened, > "Boxing" in this case isn't about ints and floats, since Java-

Re: Question again

2021-09-16 Thread DFS
On 9/16/2021 1:50 AM, af kh wrote: Hello, I was doing some coding on a website called replit then I extracted the file, and opened it in Python. For some reason, after answering 'no' or 'yes' after the last sentence I wrote, the Python window shut off, in replit I added one more sentence, but

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-16 Thread Mostowski Collapse
About Exceptions: Thats just building ISO core standard Prolog error terms. About Garbage Collection: Thats just Prolog garbage collection, which does shrink some single linked lists, which ordinary programmig language GC cannot do, or maybe some Weak Pointer magic can do it? The use case is ver

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-16 Thread Mostowski Collapse
Here is a challenge for Python. Can Python solve Sudoku? Mostowski Collapse wrote: I am not testing this use-case. But a related use-case might highlight why speed did never hurt anybody. Lets say you program a flying drone with Python, and the measurement is from the drone sensor and communica

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-16 Thread Mostowski Collapse
A friend just sent me a Web Sudoku made with Dogelog Runtime https://gist.github.com/jburse/c85297e97091caf22d306dd8c8be12fe#gistcomment-3895696 LoL Mostowski Collapse schrieb am Donnerstag, 16. September 2021 um 21:59:05 UTC+2: > Here is a challenge for Python. > Can Python solve Sudoku? > >

RE: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-16 Thread Avi Gross via Python-list
Some questions make no sense to me. Can a kind of snake solve Sudoku? Do you mean a specific puzzle, or any puzzle or even a puzzle with no solution? Can a programming language do it? Well, in my experience, programming languages are tools to be used by humans, or sometimes by other programming

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-16 Thread Mostowski Collapse
The new release 0.9.6 is quite speedy: "Maailman vaikein" 85000240072009004010700230500090004000800700170036040 time(solve(Puzzle)) % Wall 41354 ms, gc 520 ms, 3143029 lips in Browser See also: Preview: New para/1 instruction for Dogelog runtime. (Jekejeke) https

Re: Question again

2021-09-16 Thread Alan Gauld via Python-list
On 16/09/2021 06:50, af kh wrote: > Hello, > I was doing some coding on a website called replit I have no idea what that is but... > after answering 'no' or 'yes' after the last sentence I wrote, > the Python window shut off, That's what you told it to do in the code. Regardless of which answe

RE: Question again

2021-09-16 Thread Avi Gross via Python-list
Alan, I wonder if this is yet another case when a pop-up window closes rapidly when done and any last text written is just not perceived. Good design in such cases makes a final pause till the user acknowledges in some way that they are done and then no more messages! Avi -Original Message-

Re: The code version of python -i

2021-09-16 Thread dn via Python-list
Abdur-Rahmaan, Apologies for delay: several last-minute tasks were landed on me, so I haven't been able to 'read the list' since last week. > If i have a file name flower.py and i add x = 1 in it. > When i run python -i flower.py i get a shell > > If type x i get 1 x > 1 > > The value

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-16 Thread Chris Angelico
On Fri, Sep 17, 2021 at 7:17 AM Mostowski Collapse wrote: > > About Exceptions: Thats just building ISO core > standard Prolog error terms. > > About Garbage Collection: Thats just Prolog > garbage collection, which does shrink some > single linked lists, which ordinary > programmig language GC ca

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-16 Thread Greg Ewing
On 16/09/21 4:23 am, Mostowski Collapse wrote: I really wonder why my Python implementation is a factor 40 slower than my JavaScript implementation. There are Javascript implementations around nowadays that are blazingly fast. Partly that's because a lot of effort has been put into them, but it

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-16 Thread Greg Ewing
On 16/09/21 2:56 pm, Mostowski Collapse wrote: I can access the functor of a compound via: obj.functor but when I flatten Compound into arrays, it would become: obj[0] Should I declare a constant FUNCTOR = 0? You could, but keep in mind that access to a global in Python is somew

Re: Question again

2021-09-16 Thread dn via Python-list
On 17/09/2021 12.25, Avi Gross via Python-list wrote: > I wonder if this is yet another case when a pop-up window closes rapidly > when done and any last text written is just not perceived. > > Good design in such cases makes a final pause till the user acknowledges in > some way that they are don