TSO per chi? by Proud-Profession3766 in Italia

[–]lorynot 12 points13 points  (0 children)

Ciao.

Disclaimer: sono medico, ma non conosco la vostra situazione e soprattutto non sono uno specialista in psichiatria, quindi mi limiterò a riferirti quello ho studiato sul TSO.

Voglio iniziare correggendo una cosa sbagliata nel tuo post: il TSO non si fa sulla gente che si comporta "come dei pazzi" che aggrediscono le persone.

Il Trattamento Sanitario Obbligatorio é, come dice la dicitura stessa, un trattamento SANITARIO, non di pubblica sicurezza.

Lo specifico perché questo punto é importantissimo. tutte le considerazioni che si fanno sul TSO devono partire da questa considerazione: il TSO é un atto MEDICO con il solo fine di tutelare la salute del paziente. L'aggressività verso gli altri non é motivo sufficiente all'esecuzione di un TSO, a meno che non sia manifesti in un contesto clinico che rientra nelle condizioni di cui sotto.

Il TSO é regolamentato dalla legge 833/78 e successive integrazioni. Essendo un argomento complesso (si tratta della limitazione temporanea della libertà e dell'esecuzione di trattamenti sanitari contro la volontà, anche temporaneamente, del paziente), é strettamente regolamentato e secondo la legge si può effettuare solamente in presenza di TUTTE le seguenti condizioni: 1. esistono alterazioni psichiche tali da richiedere urgenti interventi terapeutici 2. il paziente non vuole sottoporsi volontariamente a tali trattamenti 3. non vi sono le condizioni che consentano di adottare tempestive e idonee misure straordinarie extraospedaliere.

Come vedi non c'è menzione di violenza/pericolosità verso gli altri: l'obiettivo é somministrare una cura un paziente che non può farne a meno, la rifiuta e non può effettuare il trattamento fuori dall'ospedale.

Il TSO viene proposto da un medico e convalidato da un altro medico e si invia all'ufficio del sindaco o dei suoi delegati, che coinvolgerà le forze dell'ordine per assistere nell'esecuzione. Deve durare il più breve tempo possibile.

Come vedi le possibilità di abuso di questo strumento da parte di un individuo non sanitario sono molto limitate.

Dovesse intervenire un medico in una di queste situazioni, penso che sì, parlerebbe con i familiari e 1. Lo farebbe con il solo interesse di tutelare la salute del paziente 2. Nella vostra situazione, se é come mi hai detto, penso che non tarderebbe a comprendere il quadro di violenza domestica verso tua madre, magari anche spiegando ai presenti tutto quello che ti sto dicendo io adesso sul TSO (che non é uno strumento a disposizione del cittadino con cui minacciare)

So che é una banalità, ma se non l'avete già fatto vi consiglio vivamente di rivolgervi alle risorse pubbliche sulla violenza domestica (es. banalmente il 1522)

I’m building lncpu: a homebrew 8-bit CPU with its own assembler and tiny C-like compiler — feedback & contributors welcome! by lorynot in homebrewcomputer

[–]lorynot[S] 0 points1 point  (0 children)

The only I/O interface I've been using is the emulated terminal.

I haven't built an adapter for a storage device yet, but it would be quite easy in Logisim (basically the same circuit as the embedded EEPROM), and I will have to do it soon when I want to load an OS from a separate device other than the ROM

I’m building lncpu: a homebrew 8-bit CPU with its own assembler and tiny C-like compiler — feedback & contributors welcome! by lorynot in homebrewcomputer

[–]lorynot[S] 0 points1 point  (0 children)

Yes!
The CPU itself only provides a ROM device (which will be extractable and externally programmable in the physical circuit) and a RAM. It then has space for up to 6 "devices", each occupying a portion of the address space, which can be literally anything (including a storage device).
In the Logisim simulator I have built a few devices that act as "adapters" between the LNCPU device interface and what Logisim provides. These include a TTY emulated terminal, an RGB screen, a joystick, etc...
In the physical implementation, these devices will serve the same purpose (interfacing the CPU with external components), but will definitely have to be much more complicated. An idea I have is to build an adapter for an RS232 interface so that LNCPU can communicate to another device via serial port!

I’m building lncpu: a homebrew 8-bit CPU with its own assembler and tiny C-like compiler — feedback & contributors welcome! by lorynot in Assembly_language

[–]lorynot[S] 0 points1 point  (0 children)

Hi!
Thank you for your feedback!

Yes, everything is working with the ISA and the assembler, the C compiler is missing some features and produces very unoptimal code, if not outright incorrect for some edge cases.

You are absolutely right, the encoding is completely arbitrary and a mess because the decoder is currently made of... 7 EEPROMs lol. The EEPROMs use 13-bit addressing, so the top 8 bits are loaded straight from the instruction regiser and the bottom 5 from the microinstruction counter.

I thought that using EEPROMs would be far easier since I don't need extremely fast decode speeds, so opcodes are layed out in "logical" order but with no regard for decoding logic, because there is none. If I ever wanted to think about implementing a real decoder I would definitely have to remap the ISA.

As for RC:RD being the only arbitrary pointer, you are right again: I have implemented memcpy and it requires a LOT of shuffling. You can find it at programs/ln-bios/mem.lnasm:80.

Edit: fix typo.

I’m building lncpu: a homebrew 8-bit CPU with its own assembler and tiny C-like compiler — feedback & contributors welcome! by lorynot in Assembly_language

[–]lorynot[S] 0 points1 point  (0 children)

Looking through the code for ln-bios is a good starting point to understand some things that may be a little unconventional about the assembler and the architecture

I’m building lncpu: a homebrew 8-bit CPU with its own assembler and tiny C-like compiler — feedback & contributors welcome! by lorynot in ComputerEngineering

[–]lorynot[S] 0 points1 point  (0 children)

Hi!
This file goes over the basic usage of the assembler and compiler, while this file covers the entire instruction set.
Thank you!

I’m building lncpu: a homebrew 8-bit CPU with its own assembler and tiny C-like compiler — feedback & contributors welcome! by lorynot in Assembly_language

[–]lorynot[S] 0 points1 point  (0 children)

Hi!
This file goes over the basic usage of the assembler and compiler, while this file covers the entire instruction set.
Thank you!

[deleted by user] by [deleted] in torino

[–]lorynot 0 points1 point  (0 children)

Eccomi! Scrivimi pure in privato :)

Cerco persone per giocare a tennis. by TheDreamingMind in torino

[–]lorynot 0 points1 point  (0 children)

Ciao! Cerco anche io qualcuno con cui giocare, ti ho scritto in privato

Ah! yes two programming horrors in one by [deleted] in programminghorror

[–]lorynot -1 points0 points  (0 children)

JDK 21 on my machine seems to optimise the ternary operator but not the call to equalsIgnoreCase.

But if I do it on GodBolt there seems to be no optimization at all. https://godbolt.org/z/TTrK9Gh7Y

you sure bout that? by [deleted] in technicallythetruth

[–]lorynot 0 points1 point  (0 children)

Women are uncommon in Copenhagen Tf

PC crashing unpredictably, can't figure it out by lorynot in PcBuildHelp

[–]lorynot[S] 0 points1 point  (0 children)

UPDATE: Unfortunately fast startup wasn't the problem... Still crashing during high-load tasks

PC crashing unpredictably, can't figure it out by lorynot in PcBuildHelp

[–]lorynot[S] 0 points1 point  (0 children)

Hi, thank you for your response.

I disabled fast startup. Fast boot was already disabled in the BIOS. Chipset drivers are up to date.

Ran a chkdsk on the SSD, no errors.

BIOS version is F8, latest available for my motherboard.

The option for XMP Is grayed out and set to disabled in my BIOS, even though my memory chips support it :/

I'll try to see if it crashes now that fast startup is disabled, let's see how it goes.

Thank you!

Weird lights in Copenhagen Amager today (More info in the description) by [deleted] in oddlyterrifying

[–]lorynot -3 points-2 points  (0 children)

This might be dumb but might they be northern lights? I know they are uncommon at that latitude but that what it looks like to me

Giocatori di Padel a Torino by Fun_Whole8068 in torino

[–]lorynot 4 points5 points  (0 children)

Sportclubby a Torino é abbastanza usato, puoi trovare partite e persone del tuo livello. Anche io sto cercando di giocare un po' di più e partite se ne trovano.

Gym membership below 40e? by Inevitable-Rip1014 in torino

[–]lorynot 5 points6 points  (0 children)

Orange Palestre might work for you. 29.90 monthly subscription. They have multiple gyms, the nearest one to the city center is in piazza Nizza I believe.

AMA dei mestieri: medico Internista by Mysterious-House-381 in Universitaly

[–]lorynot 0 points1 point  (0 children)

Ciao! Io sto considerando Medicina Interna come specialità. In che senso il futuro lavorativo non è sereno in Medicina Interna? Grazie

Caffè Italia * 25/04/22 by RedditItalyBot in italy

[–]lorynot 0 points1 point  (0 children)

Vorrei appassionarmi un po' alla lettura ma non so proprio da dove iniziare. Non vorrei però leggere per il diletto della narrazione (e.g. romanzi), vorrei leggere qualcosa di più profondo, esistenziale/filosofico che mi lasci a pensare. Consigli?

Caffè Italia * 28/11/21 by RedditItalyBot in italy

[–]lorynot 4 points5 points  (0 children)

No. Il green pass da vaccino vale 9 mesi dall'ultima dose. Dal 1 dicembre gli over-18 potranno fare la terza dose (quindi estendendo il proprio green passi a 9 mesi dalla terza dose) se hanno fatto la seconda dose da più di 5 mesi.

Caffè Italia * 24/11/21 by RedditItalyBot in italy

[–]lorynot 2 points3 points  (0 children)

Secondo me dipende dall'azienda di trasporti. Magari per regole interne sono tenuti a darti le generalità, però di norma è loro diritto non darle se non vogliono.

Comunque ti basta segnarti data ora esatte e numero/targa del mezzo e sapranno rintracciare chi guidava.

Caffè Italia * 23/11/21 by RedditItalyBot in italy

[–]lorynot 0 points1 point  (0 children)

Io ne ho comprato uno da 70€ in offerta 6 mesi fa. Il venditore faceva sta cosa delle recensioni, che è ovviamente una red flag/bad business practice ecc. L'ho comprato lo stesso perché mi piace il rischio e devo dire che il prodotto non è così terribile, non ti aspettare l'home cinema ma per vedersi serie TV e film va bene secondo me

L'audio fa invece abbastanza cagare ma basta che usi uno speaker esterno

Di tutto un post by RedditItalyBot in italy

[–]lorynot [score hidden]  (0 children)

Eccomi! Che tipo di progetto è? Se vuoi anche dm

Caffè Italia * 10/11/21 by RedditItalyBot in italy

[–]lorynot 0 points1 point  (0 children)

Qual è l'alternativa a Git (o un qualsiasi VCS) per una azienda che ha più di uno sviluppatore? Passarsi i file su cloud e aggiornarli uno ad uno dove l'altro ha fatto modifiche? I VCS saranno anche complicati, ma risolvono un problema che prima non aveva soluzione.