News for hackers. Stuff that matters.

ciarcode

Re:Statecharts: hierarchical state machines on Sunday April 26, 2026 @09:19AM (#47910098)
Well, this is used in the automotive domain for long time now. Look at matlab/simulink: you can draw your algorithm as a state machine and generate the code out of it. Recently I implemented a state machine to manage a quite complex react component, who moves from one visual state to another through some css transitions. It’s not a difficult state machine, but I think people are not so well versed in it.
Re:A 10x Faster TypeScript on Wednesday March 12, 2025 @01:19PM (#43345482)
In the post, they specifically talk about two points that seems to address some of your doubts

1. “We expect to have a more curated API that is informed by critical use-cases (e.g. linting, transforms, resolution behavior, language service embedding, etc.).”

2. “We also can imagine opportunities to optimize, use other underlying IPC strategies, and provide batch-style APIs to minimize call overhead.”

Anyway, I’ve used the compiler API a lot too, and I really enjoy its huge capabilities, making possible practically everything on the source code (EDIT: and hijack the build process too). I hope we won’t miss too much.

Re:A 10x Faster TypeScript on Wednesday March 12, 2025 @04:22AM (#43340931)
I think they answered in their FAQ here: https://github.com/microsoft/typescript-go/discussions/455#d....

If I got it correctly, they created a node native module that allows synchronous communication on standard I/O between external processes.

So, this node module will make possible the communication between the typescript compiler GO process, that will expose an “API server compiler”, and a client side JavaScript process.

They don’t think it will be possible to port all APIs and some/most of them will be different than today.

Ah ok, that kind of lager!
What about SETs?
Re:Software engineering changed my life on Saturday September 24, 2022 @05:05PM (#32966533)
It’s a war among poor people, that the ruling class love to maintain power.
In automotive, development of control algorithms for the engine is entirely “visual”, through simulink/matlab. You design the model on simulink, then it generates the C code. I don’t have direct experience outside the automotive sector, but I believe that this approach is used in other sectors like aerospace. Maybe designing models is better than writing low level code for control algorithms?
Re:Italian watchdog bans use of Google Analytics on Thursday June 23, 2022 @04:54PM (#31855032)
You do maybe
Re:Italian watchdog bans use of Google Analytics on Thursday June 23, 2022 @04:54PM (#31855027)
I don’t think you’re really Italian ahahah
Re:Top navy admiral wants rust-free ships on Saturday April 30, 2022 @09:02AM (#31215735)
These days remember us that is better to have top class military. I’m sad about it, but this is the reality, I guess.
Re:Operating Systems: CPU Scheduling on Saturday April 16, 2022 @06:15PM (#31056552)
I always think to priority-based scheduling in this way. Maybe it can help someone else.

The scheduler will always schedule the highest priority task among ones in the ready queue, but at different times.

- If preemptive, the scheduler will schedule the higher priority task (higher than the currently running one) as soon as it enters the ready queue.

- If non preemptive, the scheduler will schedule the higher priority task only when the running one terminated or explicitly call a yield() (call to yield --> cooperative)

In principle, you can mix both scheduling types, making some tasks "non-preemptable" and other tasks "preemptable".

Re:Operating Systems: CPU Scheduling on Saturday April 16, 2022 @05:26PM (#31056227)
Then it would be not an hard real time system.
Perfect summary of what is happening right now in Europe. German citizen in particular have a strong privacy-oriented culture after what happened during WWII.

https://time.com/5290043/nazi-history-eu-data-privacy-gdpr/?...

I would be glad to find an integrated guide on how to build a state-of-the-art website and how to deploy/maintain it on a server like AWS or DigitalOcean.

I mean, I'm not interested in a html/css/javascript tutorial, we have enough resources on that. What I found really missing on the internet (maybe I'm not that good at searching), is a step-by-step detailed guide on how to deploy/update/maintain a website. An unordered list of thing that came up to my mind:

- How to deploy the website on a server

- Which server should one use

- How to expose it on the internet (buy domain name)

- Version control and hosting the repository (GitHub vs gitlab vs ...)

- Updating your website (CI/CD like Jenkins?)

- Reproducible environments (Docker?)

- How to integrate analytics

- How to integrate ads respectfully (of your users)

- How to integrate paying contents

- How to address security

- Ho to address scalability

Re:Super Mario 64 has been ported to iOS on Sunday October 10, 2021 @04:42AM (#28816832)
I think this is finally the time to switch to Safari from Chrome for me.
What would happen if I block the mods? I won’t see anymore stuff from their subreddit or anything?
Could you please argument your POV?
Re:Self hosting is important on Saturday July 24, 2021 @08:06AM (#27940194)
Not related to the discussion, but I need to say I didn’t know I could use NB (i.e., “nota bene”) in an English conversation. Thanks
I don’t understand, you think that switching to French will expose us to each single European country culture?
I think this is the solution used in FreeRTOS if you use heap1 as allocator.
Re:Some Were Meant For C (2017) [pdf] on Tuesday March 02, 2021 @03:37PM (#26320301)
yeah I know that, and I always wondered how they implement basic data structure like linked list or bst with static allocation. I guess that this will be never something really needed in an embedded system, and they can live with arrays and variables.
Re:Some Were Meant For C (2017) [pdf] on Monday March 01, 2021 @05:42PM (#26309483)
Can someone explain me why do we use C for writing code for electronic control unit of a vehicle motor if it is so unsafe? It is true that ECUs are programmed with code generated though model based design,but there can be some parts manually programmed. Maybe this is why they use only a subset of C (Misra C)