Hacker News new | past | comments | ask | show | jobs | submit | import_awesome's comments login

Another great feature of Tcl for writing servers it that you can reload the code while it is running and keep all the state and connections open. Code up/bootstrap your server while it is running the whole time. Sure this is a security nightmare, but it is fun to code.

Nice! Did AOLServer (now Naviserver) do that? That was the major Tcl webserver that I remember.

Most of your steam games will run on linux with proton.


I worked the Rete algorithm into ansible-rulebook for condition matching events. https://ansible.readthedocs.io/projects/rulebook/en/stable/r... This does use Drools underneath now.


There will be a lot more competition in five years when the cost of running a company is much lower.


I have half a MUD that uses TTS and speech-to-text as the interface with LLMs generating the content and a database keeping the context. It works surprisingly well.


Meta's customers are advertisers. Their tools for advertisers are the best in the business. Facebook and Instagram users are the product.


If you had a little more software in your car it could automatically remediate the issue and you'd be on your way with no repairman involved or at least tell the repairman exactly what to fix. Maybe you could fix it with the step-by-step workflow on your console.


Half the time there’s a light on my car, it’s a damn sensor! More components mean more points of failure.


Check Engine Light being on comes standard


Mechanics call this the money light. :)


Indeed. When I took my car in last winter because the light had come on for no apparent reason, as the car was running fine, they charged me $140 to take it out on the road to try to find the reason. No reason was found. Two weeks later, the light came on again (towards the end of 2022). The car was and is running fine. The light will remain on until July when I take it in for a scheduled oil change.


Sounds like it was an intermittent fault? If so, those are notoriously hard for any mechanic to diagnose. Cars _usually_ store code history but it's up to the manufacturer and often the data they provide to the mechanic with a scan tool is misleading or an outright pack of lies.


Or you could buy a $20 code reader and see what's causing the light yourself.


But the mechanics using their professional grade code reader and related equipment couldn't figure out what's causing it. At least I'm comfortable with "unknown" after that's their diagnosis; I don't think that would be the case if I did it and got that result.


> it could automatically remediate the issue and you'd be on your way with no repairman involved or at least tell the repairman exactly what to fix

Nah it would figure out what is the best time and place to break, order you an uber, and Uber would psy you manufacturer for the order flow.

It would also show you ads while you wait


Oh no. I wrote a mini-language with a PEG parser and an AST. I guess I'm a compiler engineer now.



Hi, and thank you. It works well. Example play books already contain the basics I'd need for my playbooks.

Could you perhaps elaborate how the kernel directs Ansible?

Also, is there any difference between local and remote Ansible runs?


Ansible Kernel calls ansible-playbook on a specially constructed playbook. Ansible Kernel constructs a playbook with a two tasks in it: 1. wait for the kernel and 2. include tasks from a file that does not exist yet. When you enter a #task cell we write that included file and then tell the wait task to proceed. The included file contains the #task cell contents, a wait task, and another include task. This continues until you stop the kernel, the playbook dies on an error, or you enter a #play cell. On a #play cell ansible kernel throws away the old playbook and make a new one with the new arguments. The exported playbook just contains the content on the page (without the wait/include tasks) and should work with ansible-playbook normally.


This does sound like Ansible does not make it easy to control it from pure Python. It looks an ingenious way to get around it.

I came across this Python wrapper around Ansible yesterday: http://suitable.readthedocs.io/en/latest/ Official docs declare themselves deprecated...

Anyway, I'll have to start testing this soon. Thank you so much for making it!


You're welcome. I hope that you find it useful.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: