Post Reply 
RPL/2
02-03-2019, 10:42 PM
Post: #47
RE: RPL/2
(02-03-2019 07:24 PM)pier4r Wrote:  Awesome that you still are dedicated on it despite the seemingly small interest. It is not easy! Well done.

I should finally use my raspi one day. I dislike unused powerful devices, damn me.

I use RPL/2 every days to run very large simulations (there are multithreading/multitasking capabilities in RPL/2).

Example:
Code:

#!/usr/local/bin/rpl -cspd

SPECIFICATION
<<
    "none" implicit
    nbrcpus 1 ->list crtab 'PROCESSUS' save

    <<
        // Les interruptions sont non interruptibles
        -> PROC
        <<
            "Interruption "
            PROC wfdata PROC recv drop ->str " depuis " + +
            PROC wfdata PROC recv drop
            dup ->str 3 roll swap + disp
            'PROCESSUS' swap 1 ->list { } put
            PROCESSUS disp
        >>
    >> 1 stoswi

    0
    -> J
    <<
        do
            // Recherche d'un processus disponible
            'PROCESSUS' 0

            while
                1 PROCESSUS size for I
                    if
                        PROCESSUS I 1 ->list get
                        { } same
                    then
                        drop I exit
                    end
                next

                dup 0 same
            repeat
                .1 wait
            end

            1 ->list
            J

            <<
                wfpoke peek drop2

                -> I J
                <<
                    rand wait
                    "D├ębut thread "
                    I list-> drop ->str + disp
                    1 swi
                    J send
                    I list-> drop send wfack
                    "Fin thread "
                    I list-> drop ->str + disp
                >>
            >>

            1 swiqueue
            spawn swap drop dup 4 rolld put
            1 swiunlock
            "START" swap poke

            'J' incr
        until
            false
        end
    >>
>>

This program starts subprocess (SPAWN) , one by CPU thread. Each subprocess sends data to main thread. I use this kind of program to spawn ngspice simulations in parallel to compute amplifiers harmonic distorsion.

Since I have announce last release (this afternoon CET), sources were donwloaded three times and amd64 deb package once.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RPL/2 - JKB - 09-18-2015, 09:09 AM
RE: RPL/2 - JKB - 11-26-2015, 12:50 PM
RE: RPL/2 - Thomas Klemm - 11-26-2015, 08:44 PM
RE: RPL/2 - JKB - 03-01-2016, 10:48 PM
RE: RPL/2 - JKB - 09-27-2016, 04:08 PM
RE: RPL/2 - compsystems - 09-27-2016, 07:54 PM
RE: RPL/2 - JKB - 09-28-2016, 08:25 AM
RE: RPL/2 - JKB - 10-12-2016, 08:10 AM
RE: RPL/2 - JKB - 06-28-2017, 09:24 AM
RE: RPL/2 - JKB - 07-31-2017, 12:23 PM
RE: RPL/2 - pier4r - 08-01-2017, 06:24 PM
RE: RPL/2 - JKB - 08-01-2017, 06:30 PM
RE: RPL/2 - pier4r - 08-01-2017, 09:33 PM
RE: RPL/2 - JKB - 08-01-2017, 09:48 PM
RE: RPL/2 - pier4r - 08-02-2017, 07:37 PM
RE: RPL/2 - JKB - 08-03-2017, 05:25 PM
RE: RPL/2 - pier4r - 08-13-2017, 02:12 PM
RE: RPL/2 - JKB - 08-21-2017, 09:15 AM
RE: RPL/2 - pier4r - 08-21-2017, 09:30 AM
RE: RPL/2 - JKB - 08-21-2017, 09:54 AM
RE: RPL/2 - pier4r - 08-21-2017, 11:45 AM
RE: RPL/2 - pier4r - 08-27-2017, 11:44 AM
RE: RPL/2 - JKB - 08-30-2017, 06:56 AM
RE: RPL/2 - pier4r - 08-30-2017, 09:10 AM
RE: RPL/2 - JKB - 09-28-2017, 12:07 PM
RE: RPL/2 - pier4r - 09-28-2017, 01:58 PM
RE: RPL/2 - JKB - 10-11-2017, 04:21 PM
RE: RPL/2 - lost2 - 10-17-2017, 01:30 PM
RE: RPL/2 - JKB - 10-17-2017, 02:42 PM
RE: RPL/2 - lost2 - 10-18-2017, 02:48 PM
RE: RPL/2 - pier4r - 10-17-2017, 02:51 PM
RE: RPL/2 - JKB - 10-17-2017, 03:04 PM
RE: RPL/2 - JKB - 06-22-2018, 05:30 PM
RE: RPL/2 - compsystems - 06-22-2018, 06:53 PM
RE: RPL/2 - JKB - 06-22-2018, 09:50 PM
RE: RPL/2 - pier4r - 06-23-2018, 10:20 AM
RE: RPL/2 - JKB - 12-25-2018, 09:16 AM
RE: RPL/2 - edryer - 12-25-2018, 02:43 PM
RE: RPL/2 - pier4r - 12-26-2018, 02:39 PM
RE: RPL/2 - Thomas Klemm - 12-26-2018, 03:37 PM
RE: RPL/2 - pier4r - 12-26-2018, 03:47 PM
RE: RPL/2 - JKB - 12-26-2018, 04:58 PM
RE: RPL/2 - JKB - 12-28-2018, 08:32 AM
RE: RPL/2 - JKB - 02-03-2019, 01:49 PM
RE: RPL/2 - JKB - 02-03-2019, 01:50 PM
RE: RPL/2 - pier4r - 02-03-2019, 07:24 PM
RE: RPL/2 - JKB - 02-03-2019 10:42 PM
RE: RPL/2 - compsystems - 11-20-2020, 07:28 PM
RE: RPL/2 - Sukiari - 11-21-2020, 08:39 AM
RE: RPL/2 - JKB - 12-19-2021, 10:00 AM



User(s) browsing this thread: 1 Guest(s)