Better HN
topnewbestaskshowjobs
Log inSign up

bibyte

2,170 karma · joined Jan 11, 2019 (7y ago) · 260 submissions

Submissions

1.

Google Cloud did not let me verify my billing account

2 points · by bibyte · 2y ago · discuss

2.

C++ std:async with a concurrency limit (via semaphores)(raymii.org ↗)

2 points · by bibyte · 5y ago · discuss

comment 6y ago · link · parent

Does anyone have a link to the source code? I was thinking about writing some code in asyncio to compare but I couldn't find the code.

4.

Safe Unsafe Operations in Elm(jfmengels.net ↗)

2 points · by bibyte · 6y ago · discuss

comment 6y ago · link · parent

Thanks for letting me know. It is good to be aware of alternatives.

comment 6y ago · link · parent

A very important project because it is one of the two browsers on Android that support extensions (the other one is Firefox Mobile). I didn't know it was closed source.

comment 6y ago · link · parent

For example take a look at the Python API for Z3. Because of operator overloading it is just beautiful. Much better then raw SMT2.

https://ericpony.github.io/z3py-tutorial/guide-examples.htm

8.

The Parallelism Blues: when faster code is slower(pythonspeed.com ↗)

36 points · by bibyte · 6y ago · 23 comments

9.

Www. Is Not Deprecated(yes-www.org ↗)

3 points · by bibyte · 6y ago · 1 comment

10.

A (brief) retrospective on transactional memory (2010)(joeduffyblog.com ↗)

1 points · by bibyte · 6y ago · discuss

comment 6y ago · link · parent

Fair enough. My assumption was that you would consider a source to bytecode compiler an interpreter (to be fair most people do). The next time I say something about Common Lisp I will list all the implementations instead of saying something as simplistic as "compiler" or "interpreter".

comment 6y ago · link · parent

The word "compiler" is so overloaded that every time someone mentions one it turns into an argument. This is the whole transpiler vs compiler vs interpreter vs JIT argument. The trouble is that sometimes some programmers implement all of them (myself included).

> CLISP has its own virtual machine, which is the target of its compiler

Then CPython is also a compiler? and Lua?

comment 6y ago · link · parent

Of course many implementations do compile to machine code but there are also a few that don't (clisp, ecl, abcl). It is really complicated to talk about languages that have multiple implementations. That is why I went with "interpreter". That was pretty lazy of me :).

But you didn't say anything about the original question. Have you seen Common Lisp code deployed as an executable or as source code?

comment 6y ago · link · parent

Isn't Common Lisp's save-lisp-and-die roughly analogous Pyinstaller? I mean they both work but nobody seems to be using them. In my experience Common Lisp code is most commonly deployed with an interpreter.

comment 6y ago · link · parent

What about the Samsung Galaxy Tab S6? It seems to be comparable to the iPad Pro in terms of performance and screen. I tried out an Android tablet a few months ago and it seemed pretty fine.

If your want to do portable programming I would recommend a light 2 in 1 laptop. You can dual boot Windows and Linux on it (Windows for media consumption and Linux for programming). But it is bigger then a tablet.

Of course if you use a server you can use anything you want to do programming. But personally the latency is a dealbreaker for me.

comment 6y ago · link · parent

If you want this on Android it is available in the Termux repository. If you have a flagship device it should be fast enough to be usable.

comment 6y ago · link · parent

I can't edit it now but I was talking about the default Reddit app for Android, not the new mobile website. The website was pretty fast for me. But because of these new changes you can't even view a subreddit without using the app.

I just installed Boost for Reddit and it is pretty fast. But thanks for letting me know about i.reddit.com, I didn't even know that exists. The old Reddit is still the best on desktops, I hope they don't kill it.

comment 6y ago · link · parent

I started seeing this a few days ago. What is even more exasperating is that the default Reddit doesn't support tabs and it is INSANELY slow. I can stream 4K content on YouTube comfortably but I have to wait multiple seconds to open a text thread. Maybe I should try the Boost client...

comment 6y ago · link · parent

My takeaway was the exact opposite of yours. For example the goto graph seems very intuitive and simple. But it is much more complex to reason about compared to exceptions. My takeaway was that simple graphs like these can't really explain the pros and cons of high level programming constructs.

comment 6y ago · link · parent

Implementing a minimal Python is pretty easy (even with the huge standard library) but implementing a complete Python implementation is a herculean task. And even after that there is no guarantee that every Python library will run on your implementation (Pypy).

I don't know about you but I would rather make hundreds of Scheme and Forth implementations then one Python interpreter. But I don't really see that as a downside. I mean who decides on a language based on how easy it is to implement ?

comment 6y ago · link · parent

Yes, I meant the pseudo-code quality of Python (I wish Wikipedia would use Python as it's pseudocode :)).

I completely agree that Python is pretty hard to implement. Perhaps you have heard that simple doesn't mean easy ? I could easily implement a Forth (or assembly) interpreter. But it isn't that easy to understand a big complex Forth program (compared to Python). Simple languages like Forth and assembly are too unstructured for me.

comment 6y ago · link · parent

I guess I was too fixated on the exceptions part of your comment. You are right that due to Python's dynamic nature every line can turn into a runtime exception. Maybe it's because English is my second language but I couldn't understand that in your first comment.

comment 6y ago · link · parent

Maybe I am missing something but I think every dynamic typing system has this problem. I can't see what this has to do with Python and exceptions in general. It is not like there aren't statically typed languages with exceptions. This comment is an excellent critique of dynamic typed systems but it has nothing to do with exceptions.

comment 6y ago · link · parent

Can you please elaborate on those problems ? Personally I believe exceptions are the worst way to handle errors, except for all other ways.

comment 6y ago · link · parent

I can't speak for other people but the only reason I still use Python is because of it's syntax (but the "one way to do it" is slowly changing). You get much better concurrency with Golang and even better parallelism with Julia.

It is dominant in data science but still some people use it for other things because the syntax is so simple (Scheme is a close second for me).

26.

Static v. dynamic languages(danluu.com ↗)

1 points · by bibyte · 6y ago · discuss

27.

The Best Programming Language (2017)(pron.github.io ↗)

2 points · by bibyte · 6y ago · discuss

comment 6y ago · link · parent

Aside from patching the kernel I have done everything GP said. Just because the Arch wiki says it is unstable doesn't mean it always is. It just means Arch Linux can do breaking changes (systemd) without worrying about backwards compatibility. And FYI I wasn't defending Arch Linux. It just seems strange to me that everyone is having instability problems and I can't even reproduce it.

I also agree that you shouldn't run your production database on Arch Linux. It isn't made for workloads like that. But personally I find maintaining Arch Linux+"custom packages"(with AUR) easier then Debian+"latest packages"+"custom packages".

comment 6y ago · link · parent

I also have another VM that I use from time to time. I think my longest update was about after a year. I don't remember having any problems like that.

comment 6y ago · link · parent

Sometimes it feels like I am living in an alternate reality. After I started using Arch Linux as my main OS I was fully prepared for it to break every few months. But it's been more then 2 years (maybe even 3 or 4 ?) and not one breakage. Also keep in mind that I update it every single day. From time to time I check the Arch Linux news site to see if anything needs manual intervention. So far I haven't needed to do anything.
12345
9