Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pansa2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
601.
▲
by
pansa2
5y ago
AFAIK multithreaded Java code requires the user to explicitly acquire a lock before accessing a shared data structure. Multithreaded Python currently does not, and must remain that way to maintain compatibility.
602.
▲
by
pansa2
5y ago
The only way to remove the GIL without breaking existing multithreaded code is to replace it with multiple smaller locks. That approach is considered unacceptable because the small locks introduce substantial overhead.
603.
▲
by
pansa2
5y ago
> Remind me why things like u"" couldn't be used to help cover exist codebases? It’s right there in the Zen of Python: “Purity beats practicality”. Wait, no...
604.
▲
by
pansa2
5y ago
People who want to see backwards-incompatible changes, e.g. GIL removal, language & stdlib cleanups, or even mandatory static typing?
605.
▲
by
pansa2
5y ago
> mid-2015 MacBook Pro is unlikely to be compatible? Disappointing if true - they were still sold until mid-2018.
606.
▲
by
pansa2
5y ago
> Apple already said that Big Sur would be the last release for that model. They have? Damn. > I guess it will soon be time to look for an upgrade. But what to upgrade to? With no Boot Camp, the M1 Macs aren’t an option for me...
607.
▲
by
pansa2
5y ago
Even if you're going to ignore every country other than your own - before you use terms like "Great National Misery", please make it clear which nation you are talking about!
608.
▲
by
pansa2
5y ago
> the original ones - 5.25" Nitpick: The first floppy disks were 8" in size.
609.
▲
Why Python hasn't taken off on mobile, or in browser – according to its creator
(zdnet.com)
3 points
by
pansa2
5y ago
|
1 comments
610.
▲
by
pansa2
5y ago
It's good to see an example of Go running in the browser via WebAssembly. I've been trying to decide between Go and C++ for targeting WASM, but it's not clear whether Go is a good choice for this and whether WASM support is a
611.
▲
by
pansa2
5y ago
> stuff = { [0]="one", "two", "three" } In this case, is it possible to make iteration start with the element at index 0? Maybe by implementing a custom version of `ipairs`?
612.
▲
by
pansa2
5y ago
> What is a good an introductory text (or other resource) for learning? The usual recommendation seems to be "Types and Programming Languages" by Benjamin C. Pierce.
613.
▲
by
pansa2
5y ago
One issue could be size - CPython's native binary is an order of magnitude larger than Lua's, and the same is probably true when using WASM. Perhaps something like MicroPython could solve that, though.
614.
▲
by
pansa2
5y ago
> Python [...] could be difficult to port to Web Assembly down the road The Pyodide project has already compiled CPython to WebAssembly - why is that a worse solution than compiling one of these other scripting language interpreters to
615.
▲
by
pansa2
5y ago
> I should think about what I am good at and what makes me happy at least 80% of the time. Reminds me of the advice that the ideal situation is to find something that you love, that you are good at, that you can get paid for, and that
616.
▲
by
pansa2
5y ago
> It's nothing like my childhood dream. But I am happy—more than 80% of the time. Sounds like being a science writer fulfils the author’s current dreams, though. Perhaps it’s OK to follow your dreams, as long as you react when y
617.
▲
by
pansa2
5y ago
> Something unusual about Bellard is the breadth of his knowledge. One thing I’ve noticed is that he chooses to apply himself to many different subfields of development, but always using the same technologies e.g. all his work seems to
618.
▲
by
pansa2
5y ago
> while remaining in support for years to come. Python 3.8 has already reached the point where it’s only receiving security updates - not other bug fixes.
619.
▲
by
pansa2
5y ago
Do you mean I should just ignore it? Not even display a warning message?
620.
▲
by
pansa2
5y ago
> if it's just the display of things I would probably go with a warning message Thanks, that's what I was thinking. Is there a standard way to detect whether to show the warning message based on which browser is being used?
621.
▲
by
pansa2
5y ago
> It seems to me that both languages are interpreted Node.js uses the V8 engine for JavaScript which isn't just an interpreter - it includes a JIT compiler.
622.
▲
by
pansa2
5y ago
I'm currently building a website that uses Vue 3 in parts, as well as other features that don't work (well) in IE11 such as CSS Grid. Would you recommend only displaying an error screen for any users who try to view the site using
623.
▲
Implementing Co, a Small Interpreted Language with Coroutines #1: The Parser
(abhinavsarkar.net)
3 points
by
pansa2
5y ago
|
0 comments
624.
▲
by
pansa2
5y ago
Does anyone know if this is using CPython, or is it using MicroPython like some of Casio’s models? https://edu.casio.com/products/graphic/fxcg50/
625.
▲
by
pansa2
5y ago
> words that were multiples of six bits Why was six bits chosen? The modern use of eight bits seems more natural to me, being a power of 2.
626.
▲
The quest for faster Python: Pyston, Cinder, or should devs just use PyPy?
(theregister.com)
12 points
by
pansa2
5y ago
|
0 comments
627.
▲
by
pansa2
5y ago
The changeover to Python 3 killed it AFAIK. Same for IronPython.
628.
▲
by
pansa2
5y ago
GraalPython describes itself as “an early-stage experimental implementation of Python”. https://github.com/oracle/graalpython
629.
▲
by
pansa2
5y ago
To a first approximation, everybody uses CPython, the reference interpreter. Of the other implementations, only PyPy is really production-ready.
630.
▲
by
pansa2
5y ago
Development of Pyjion continues here: https://github.com/tonybaloney/Pyjion
More ›