Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pansa2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
91.
▲
by
pansa2
11mo ago
What are the `@` characters for? Are they what makes it feel like Perl? Because other than them I don’t think the equivalent Python code would look much different. Maybe more concise, e.g. you could replace the second section with something
92.
▲
by
pansa2
11mo ago
> But Python also looks up methods at runtime. Does that mean Python also does message passing? Not quite. I don't think Ruby's "message passing" is fundamentally different from Python's "method calls"
93.
▲
by
pansa2
11mo ago
Simple != easy. Rich Hickey has the details: https://www.youtube.com/watch?v=SxdOUGdseq4
94.
▲
by
pansa2
11mo ago
At least Microsoft hired a bunch of experienced Python core developers for their effort. IIRC Unladen Swallow was just a couple of interns.
95.
▲
by
pansa2
11mo ago
So is V-lang
96.
▲
by
pansa2
11mo ago
> Python aims to be simple Well, it wildly missed the mark there. Nothing about modern Python is simple. It's a very complex language hiding behind friendly syntax.
97.
▲
by
pansa2
11mo ago
There’s been a lot of hype around Mojo, but is anyone actually using it? Does it deliver on the bold claims of its designers?
98.
▲
by
pansa2
11mo ago
The community basically did reject Python 3, at first. Almost nobody used 3.0 / 3.1 / 3.2, to the point where I’ve seen them retconned as beta releases. Even then though, the core developers made it clear that breaking everyone’s
99.
▲
by
pansa2
11mo ago
The “Faster CPython” team were let go from Microsoft because they could only produce a 1.5x speedup in four years instead of the planned 5x. It’s wildly optimistic to now expect a 10x speedup in two years, with fewer resources.
100.
▲
by
pansa2
11mo ago
I sometimes wonder if many core Python people don’t actually like the language that much. That’s why (a) they’re constantly reinventing it, and (b) they celebrate rewrites from Python into other languages. Long before Rust, it was considere
101.
▲
by
pansa2
1y ago
> I do remember him using the visitor pattern to implement part of the parser I think. I thought that was kind of an odd choice, especially since it seemed like he was really just trying to avoid Java boilerplate. It's used to all
102.
▲
by
pansa2
1y ago
Your `name` getter isn't working properly. Weirdly, Wren's implicit returns only work for functions written on a single line. The getter either needs to be (exactly) `name { _name }` or it needs to explicitly `return _name`. http
103.
▲
by
pansa2
1y ago
Yes: https://wren.io/try/?code=MYGwhgzhAECC0G8BQ1rAPYDsIBcBOArsDt...
104.
▲
by
pansa2
1y ago
> the book's first half involves Java reflection Does it? I know it uses metaprogramming (a Java program that outputs another Java program), but that’s probably easier in other languages than in Java. In my Python implementation
105.
▲
by
pansa2
1y ago
> a general equivalent to the C++ `extern "C" { ... }` thing That sounds a lot like what LuaJIT’s FFI provides: https://luajit.org/ext_ffi.html
106.
▲
by
pansa2
1y ago
Wren does have instance method inheritance. It's implemented differently from most scripting languages, though. The implementation is more like a statically-typed language, for performance reasons: https://wren.io/perfo
107.
▲
by
pansa2
1y ago
Yeah, my understanding is that the bytecode interpreter in the second half of the book is essentially a stripped-down version of the Wren virtual machine.
108.
▲
by
pansa2
1y ago
Yeah, Lua's implementation is fantastic - but the language is "quirky" at best. Wren looks a bit more orthodox, although it's heavily built around class-based OOP - you can't even define and call a top-level functio
109.
▲
by
pansa2
1y ago
I think I read that Wren's creator deliberately avoided "the metaclass hierarchy matches the class hierarchy" (as used in Smalltalk and taken to an extreme in Ruby [0]) because the authors of Smalltalk have come to regret tha
110.
▲
by
pansa2
1y ago
I thought one of Lua’s selling points is that it’s written in highly standard-compliant C code. I wouldn’t expect it to do anything non-portable like bitwise manipulation of pointers?
111.
▲
Why every Rust crate feels like a research paper on abstraction
(daymare.net)
59 points
by
pansa2
1y ago
|
50 comments
112.
▲
by
pansa2
1y ago
Python is not simple, it's a very complex language hiding behind friendly syntax. Given that, plus the breadth and complexity of its ecosystem, it makes sense that its tooling is also complex.
113.
▲
by
pansa2
1y ago
https://stackoverflow.com/questions/26217488/what-is-vendori...
114.
▲
by
pansa2
1y ago
> I will use it because it has 677,633 packages in PyPI Quality over quantity, please
115.
▲
by
pansa2
1y ago
> The author lazily took the 165F temperature and… Where did they even get 165F from in the first place? The “classic solution” article uses 400F, a much more appropriate oven temperature.
116.
▲
by
pansa2
1y ago
I did some recent testing that showed both Lua and LuaJIT-joff (its interpreter-only mode) to be about 2x faster than Python. Both PyPy and full-on LuaJIT were about 10x faster. Years ago, I even found Ruby to be faster than Python. This wa
117.
▲
by
pansa2
1y ago
The story has been reposted to HN via the “second-chance pool”, which resets the dates. https://news.ycombinator.com/item?id=26998308
118.
▲
by
pansa2
1y ago
> Didn't help Microsoft axed several folks on that team too... Only after the four-year period was over, during which they only delivered a 1.5x - 2x speedup instead of the projected 5x.
119.
▲
by
pansa2
1y ago
> Always alert to the call to action Wasn’t that Bananaman?
120.
▲
by
pansa2
1y ago
> The decryptor used a table held in a small SRAM that was powered by a battery. IIRC Sega’s System 16 did something similar. Was that board’s encryption cracked in the same way? Was this style of anti-piracy measure widely used at the
More ›