Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chubot
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
89 ms
·
811.
▲
by
chubot
3y ago
From a user POV, I think == and === on floats should simply be undefined in any language. It should be a compile time or runtime error. There can be a separate function `float_equals()` with explicit args that does what people want The only
812.
▲
by
chubot
3y ago
So this is about creating SQL strings with SQL? Not interpolating SQL with ? placeholders in say Python. The article could have made that much more clear. It reminds me of the bash-completion project which is the default on Debian-based di
813.
▲
by
chubot
3y ago
Yes definitely, which is why I mentioned Cardelli. Previous comment on the same subject: https://news.ycombinator.com/item?id=21832009 A program fragment is safe if it does not cause untrapped errors to occur. Languages
814.
▲
by
chubot
3y ago
Yeah that's an interesting consideration, but it's more of a systems design issue, outside the scope of what the C or Rust compilers and runtime can do anything about. (Or Python, JavaScript, etc.)
815.
▲
by
chubot
3y ago
Instead of stack overflow causing a crash, it could silently overflow into heap memory. Do you want that? What I'm saying is that crashes are the thing that PROTECT you from undefined behavior at runtime. --- If a C program crashes, t
816.
▲
by
chubot
3y ago
What I also think is weird is that people think seg faults and crashes are "unsafe". In the terms of Cardelli, a stack overflow is a trapped runtime error -- and thus a SAFE behavior of a language runtime. What's not safe is
817.
▲
by
chubot
3y ago
Well at least the shitty MPAs will run on other people's servers, rather than shitty SPAs running on my phone and iPad FWIW I turned off JavaScript on my iPad a couple years ago ... what a relief! I have nothing against JS, but the sit
818.
▲
by
chubot
3y ago
This isn't quite true. Python was certainly Guido's passion project, and it started that way. But early in its life, it was funded by the United States government via CNRI (under Bob Kahn). At every job Guido had subsequently, h
819.
▲
by
chubot
3y ago
Glad to see this covered -- I also had the experience of picking it up the hard way, over many years! My own tips after writing a custom build system for C++ - the order of objects and -l flags to the linker matters! I remember being very
820.
▲
by
chubot
4y ago
Seems like it could be interesting ... Initial impression is that the animation of Mojo code vs. Python code has a bad UX. Why not just show the code side-by-side instead of animating it and making me click? Another obvious question is how
821.
▲
by
chubot
4y ago
R isn't elegant, but tidyverse is If you learn tidyverse, then you're going to cringe whenever you use Pandas or most things in the Python data science ecosystem https://www.rstudio.com/wp-content/uploads/
822.
▲
by
chubot
4y ago
That's the first time I've been rick roll'd reading an academic paper :) (citation 1 for GPT-4)
823.
▲
by
chubot
4y ago
Make sure to run at least 2 clusters in case one goes down
824.
▲
by
chubot
4y ago
Yes I know, but Ubuntu seems to be more popular as a desktop What I mean is that people just hack on stuff on their desktop. They install Python NumPy or Rails or whatever. Like gigabytes of dependencies. And then they want to deploy. Is
825.
▲
by
chubot
4y ago
This looks cool, but what's the dev environment like? I think Ubuntu is a popular base image in Docker because Ubuntu is popular for engineers to use on their desktops Debian usually passes for Ubuntu, since the package names are mostl
826.
▲
by
chubot
4y ago
The animated diagrams are cool! Does anyone know how they're made?
827.
▲
by
chubot
4y ago
Ah very interesting, I had heard of Pants, but I didn't know about Pants 2. Having less BUILD metadata definitely seems like a big win, and I imagine with some effort you can keep the parallelism/caching/distribution too (I&
828.
▲
by
chubot
4y ago
The linked paper is pretty interesting, and short at 4 pages. In plainer language, I'd say the observation/motivation is that not only do compiling and linking benefit from incrementality/caching/parallelism, but so does
829.
▲
by
chubot
4y ago
> I’m deeply confused by the people who signed the open letter, even though they continue to downplay or even ridicule GPT’s abilities, as well as the “sensationalist” predictions of an AI apocalypse. This is not an inconsistent positio
830.
▲
by
chubot
4y ago
Woah why do they have s390x assembly versions of everything? https://cs.opensource.google/go/go/+/refs/tags/go1.20.2:src/... That's for a mainframe?
831.
▲
by
chubot
4y ago
Yup, it makes you wonder what's is the XML of right now. Humans like to participate in social manias, and our time is no exception. I conjectured that it's Kubernetes. Just like XML, Kubernetes solves a problem, but it doesn
832.
▲
by
chubot
4y ago
(Oil author here) Thanks for mentioning it -- Oil is intended for exactly that kind of thing, in theory. That is, a clean shell language for gluing together distros, which are inherently heterogeneous and messy. In practice, I think there
833.
▲
by
chubot
4y ago
Yeah I'm not saying we should blindly extrapolate, but as I said, I see a big "fixed pie" fallacy in the opposite view: https://en.wikipedia.org/wiki/Lump_of_labour_fallacy Just to put something out ther
834.
▲
by
chubot
4y ago
That seems pretty clear to me? The web made programmers drastically more productive, and it coincided with a huge increase in both total employment and salaries, not a decrease. For example, I first used Google in summer 2000 at a college
835.
▲
by
chubot
4y ago
Wow 12 billion and it was 6 years ago? Where does the time go ... I thought I remembered when one video just reached the 2 billion or 4 billion mark, or 2^31 or 2^32, and it was newsworthy https://en.wikipedia.org/wiki/
836.
▲
by
chubot
4y ago
So there was a correction here, zsh and fish do wait for processes in the interactive part, but apparently not bash/dash/mksh: https://lobste.rs/s/om32da/unix_process_api_is_unreliable_un... As far as yo
837.
▲
by
chubot
4y ago
DJB's self pipe trick solves the awkwarness of #4 -- waiting for a process exits plus other events non-deterministically: https://cr.yp.to/docs/selfpipe.html FWIW a shell is basically two alternating, non-overlapp
838.
▲
by
chubot
4y ago
Evolving bash, removing footguns, and providing a path forward is exactly what https://www.oilshell.org is about :) It's run thousands of lines of unmodified shell AND bash scripts for years, and provides an upgrade path to
839.
▲
by
chubot
4y ago
Those things are all very fast compared to starting a process
840.
▲
by
chubot
4y ago
Python 2.7 was released in 2010, and is even more frozen than Perl! It still works, though you would have to archive/vendor dependencies
More ›