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

Built a live coding library for python that allows me to reload code I edited while it was executing. It has repl and debugger support and it can be run even for embedded python. It's pretty granular so it can reload modules or even individual objects. Unlike the existing module reload python function it can change object references to the updated code and delete old objects and their references from memory. This way in the next call only the latest code is executed. I built something similar for C code too.


I was just looking for something like this. Have you shared either of these publicly?



youtube greece is down returns "oops" error but i can still playback a 2 hour video that I was already watching before it went down. Trying to open any other video or channel returns this error.


A possible approach is to use Cython to convert Python code to C code and then compile that code to WebAssembly. I would not be surprised if there is a tool for that already


from my experience digging through Cython output: unless you type-annotate EVERYTHING C-style, Cython just uses the CPython C-API (PyObject_New, PY_INCREF, etc). so you'd have to ship all of CPython anyway... as mentioned elsewhere in the thread, that's too big for most websites


Colored pencils, pens and notebooks. Excellent opportunity to rest my eyes away from the computer screen.


Well judging from the fact that my first computer my father bought back in 1988 Amstrad CPC 6128 is still alive and kicking with very active community and more development tools than it ever had, I think its safe to assume that software never dies. Only thing it takes is a small dedicated community and it can last for centuries. Partly because father and mothers infect their sons and daughters with their passion for the technology and the the loop never ends. What else never dies is necrophilia in software , apparently people are addicted to declaring software dead prematurely. Oh and of course clickbait because some people are desperate for views. It started with Java back in to 2000s and still going strong. I am not fan of Java but I am also not that delusional to declare Java dead. So no I think its pretty safe to assume VBA is not going anywhere.


Python syntax can be heavily and easily manipulated via the ast module. An example of this is hylang https://github.com/hylang/hy


Rust is very unpopular. Popular being besides the usual suspects Assembly, Visual Basic, Delphi, Objective C , Swift etc. Finding the popularity of a language is actually pretty easy, ignore all the blog posts and opinion pieces of any kind and focus on third party libraries availability, documentation and benchmarks. Even on benchmarks Rust score very low making its “as fast as C” claim speculative to say the least. Strictness of a Rust also makes it highly unlikely that the language will become popular any time soon. Judging from the fact that innovation of any kind is one big reason for users to stay as far away as possible, even if that innovation ends up being part of all programming languages out there. Explains why innovation has stagnate the last century in software. So my rule of thumb is “if many people talk about it then most likely it’s popular if a ton of people talk about then it’s most likely unpopular”. So it’s definetly an indicator in a bell like curve.


If you mean unpopular in the sense that it’s unlikely it would end up being used for your “average” project I think you’re right. However it’s seeing uptake in key systems programming projects. The most notable is probably Amazon’s Firecracker VMM that underlies AWS Lambda and Fargate. Google is also writing some components of their new Fuschia OS in it.


And Rust is used in various parts of Firefox now. Dropbox uses Rust in their Magic Pocket storage backend. npm uses Rust in its registry service.

Sure, Rust is not going to replace Java anytime soon (probably not at all). But for a language that has seen its first stable release only four years ago [1], Rust is a wildly successful systems programming language.

[1] Before Rust 1.0, Rust was not really usable in production due to very frequent changes to the language.


Rust 1.0 wasn't even that stable or usable in production, albeit it is of course forward-compatible. NLL (introduced with Rust 2018) was a huge improvement in overall usability, and it's likely that we'll see even more such changes in areas such as async. Rust is quite far from true "maturity" in the C/Java/PHP sense.


Comparing a young language like rust to much older popular languages is not a useful comparison.

I'd say given Rust's age it's popular, and since it is the first contender for a lot of spaces where no other languages have made a serious bid in a while (embedded and real-time systems with higher safety guarantees haven't seen much love since ADA).

It will probably not supplant easy super popular languages like python. But I believe it might find it's niche. A lot of other languages don't have such a USP.


> It will probably not supplant easy super popular languages like python. But I believe it might find it's niche.

Yea, I definitely don't think it'll ever be as hugely mainstream as "easy" languages - take Go for instance, but it has huge potential and I'm a big fan of the language (I've switched entirely to it).

It may be possible that another language can come up with a more elegant solution for the memory safety features of Rust, but until that happens I think Rust will gain a lot of ground. It just won't be the language people turn to unless they have a use case explicitly for Rust (or rather, something that disqualifies Go/Python/etc to them).


IT runs on a wide array of technologies. Desktop games and 3D graphics which the area I focus and obviously a massive part of the software market if we include consoles and mobile devices , C++ still is king. Most games nowadays use either Unity or Unreal, which is C# or C++. Java is almost completely absent apart of course from the Android. Of course native iOS is still Objective C and Swift. AI another field that interests me is dominated by Python. Also if we venture outside the commercial part around 40% of software is written in languages that you will never hear anything about them . Mainly because are small projects where using any language is not an issue. Generally a vast majority of the IT is definetly not Java but a wide group of highly popular languages mercilessly bombarded by thousands of unknown languages struggling to gain a fraction of a percentage in terms of growing their community. Essentially strength in numbers. Software is chaotic field of countless of technologies. Even something as big as Java has no hope of dominating because it’s impossible for a language to excel in billion different scenarios. So don’t worry Java won’t be conquering the Software world any time soon.


The irony of the thing is that in manual memory management languages you end up doing your own garbage collectors and in garbage collector languages you end up doing your own manual management. Unfortunately if you look in a language to solve such complex problems you are heading straight to severe disappointment land. Same shit different package. I still prefer dynamic languages by a long margin because of their ability to do decent metaprogramming and reflection which is essential for managing any form of data. Pick your poison and enjoy the hype while it lasts.


I don’t. I keep my super sensitive data in my head. I never believed in computer security and never will. But the I never believed in security in general. Why on earth you would need an antivirus for a Mac ? I don’t even remember the last time avast gave me a virus warning on Windoom 10. Nowadays it’s mostly worms, ransomeware and spyware , rarely a Trojan horse. The age of virus has long gone after the start of the age of not slow internet.The only thing I do is to backup my data via Dropbox and megasync.

If you really need security, get a computer , disconnect it from the internet. The end.


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

Search: