Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pansa2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
65 ms
·
871.
▲
by
pansa2
6y ago
I must admit, I don't understand the appeal of the most violent video games. I recently read "The Last of Us Part II" described as being "about [...] the awful things that humans can do to each other" [0]. Why would
872.
▲
by
pansa2
6y ago
`3 <= a <= 5` expands to `3 <= a and a <= 5`. However, based on the examples NumPy seems to require `&` instead of `and` - I’m not sure why.
873.
▲
by
pansa2
6y ago
> every application now needs to solve the same problem Some applications do. Other applications, for which the problem is irrelevant, can now ignore it rather than having the complexity of a solution baked into their foundations.
874.
▲
by
pansa2
6y ago
At least we have Lua, which we can call freely from our C++ application.
875.
▲
by
pansa2
6y ago
I’ve heard that Go code can make use of libraries written in C++, but that you can’t write libraries in Go and use them from C++. Is that true? If so, it’s a significant impediment to introducing Go into a team that’s currently using C++ -
876.
▲
by
pansa2
6y ago
> So don't use std::vector? Or std::unordered_map? Or std::string? These are all perfectly fine classes, banning them makes no sense at all. Orthodox C++ bans exceptions, so if an allocation failure occurs within one of those clas
877.
▲
Repl.it CEO: We're the most ambitious software startup in history
(twitter.com)
2 points
by
pansa2
6y ago
|
3 comments
878.
▲
by
pansa2
6y ago
Fantastic analogy. To go a bit further, what surprised me when trying to choose which branch to take was how narrow each branch is. It’s not enough to pick the “software development” branch, you have to pick a specialty within that. And, it
879.
▲
by
pansa2
6y ago
> I write Scala that looks pretty close to Python Interesting. I’ve never used Scala - do you have any example code available?
880.
▲
by
pansa2
6y ago
> where does Ruby stand with regard to performance, compared to say Python? In my experience Ruby has been faster than Python for a long time - ever since its performance improved significantly going from 1.8 to 1.9, and Python’s got w
881.
▲
by
pansa2
6y ago
> Would a more rigorously-typed alternate-universe Python have been as successful? One of the reasons Python became popular was its reputation as “executable pseudocode”. Rigorous typing would detract from that. Guido and the authors o
882.
▲
by
pansa2
6y ago
I’ve also recently come across Rune, which seems similar? https://github.com/rune-rs/rune
883.
▲
by
pansa2
6y ago
> "Complex" and "complicated" are synonyms as far as I can tell. No. Complex is the opposite of simple. Complicated is the opposite of easy. Simple and easy aren’t synonyms - see the talk by Rich Hickey linked in a
884.
▲
by
pansa2
6y ago
> MicroPython, as a language, is a complete reimplementation of Python But there are plenty of differences between MicroPython and CPython [0]. Many of them (listed under “Syntax”, “Core language” and “Builtin types”) relate to the lan
885.
▲
by
pansa2
6y ago
> for anyone whose account has been dormant for at least a year, but still has some money left in it. Isn’t it considered a bad idea to ever keep a non-zero balance in a PayPal account? When money comes in, transfer it to a real bank a
886.
▲
by
pansa2
6y ago
> Please note that MicroPython is different from the Python that runs on a computer. I once considered embedding MicroPython into a (software) product myself, but was dissuaded by the number of people who didn’t like being limited to a
887.
▲
by
pansa2
6y ago
Sorry, could you clarify what you mean by “distinguish property-as-value and property-as-function“? How does Python distinguish between these two?
888.
▲
by
pansa2
6y ago
Python's descriptor protocol is very elegant. Given: class C: def __init__(self): self.a = 1 def b(self): print(f'b({self})') @property def c(self): pr
889.
▲
by
pansa2
6y ago
How is the support for strings in C++? Presumably better than in C, but is it good enough when compared to other compiled languages - Go, Rust etc?
890.
▲
by
pansa2
6y ago
V is for Vaporware. https://christine.website/blog/v-vaporware-2019-06-23
891.
▲
by
pansa2
6y ago
Qt seems to be the most popular library for cross-platform GUI apps written in C++. Is Dear ImGui a credible alternative? How does Dear ImGui compare to Qt?
892.
▲
by
pansa2
6y ago
Plenty of people complain about Python - about the language itself (significant whitespace, dynamic typing and excessive complexity), about the implementation (slow and limited by the GIL) and about the ecosystem (e.g. https://xk
893.
▲
by
pansa2
6y ago
> what is the use case for WebAssembly? Personally, it allows me to write tools that can run either on the command line or in the browser. Only the user-interface need be rewritten - internally both versions can share a lot of code. We
894.
▲
by
pansa2
6y ago
Makes sense - they seem to have stopped work on STM so presumably it couldn’t be made to work well. How will STM in Ruby solve (or avoid) the problems that doomed STM in Python?
895.
▲
by
pansa2
6y ago
A few years ago, the PyPy developers were working on STM for Python, as a way to mitigate the Global Interpreter Lock. Was that work ever completed? How does it compare to this work for Ruby?
896.
▲
by
pansa2
6y ago
Or, it might never have been written at all.
897.
▲
by
pansa2
6y ago
> single-binary deployments More than performance (pure Python can be too slow, but NumPy is usually fast enough), this is what I miss when using Python. There's currently no good solution for bundling Python code and the interpre
898.
▲
by
pansa2
6y ago
> I often describe Go as the strongly-typed, more performant version of Python. I've heard Go described this way several times, but I've found it to be a significantly lower-level language than Python. For example, it's
899.
▲
by
pansa2
6y ago
> Can compile Javascript sources to executables with no external dependency. Is QuickJS a viable way to write command-line apps in JavaScript? In particular, does it have enough of a standard library to work with, or would it be a stru
900.
▲
by
pansa2
6y ago
> If I hear the same song played in C, and then in Db, the two of them will hit me emotionally the same. Do you mean you can’t tell the difference between the two? My first thought is that the difference would be obvious, but I could b
More ›