News for hackers. Stuff that matters.

bibyte

Google Cloud did not let me verify my billing account

I signed up for Google Cloud (free tier) just to try it out. I made the smallest compute VM and played with it.Just after two days I got an email saying that I need to verify my billing account, or they will shut down my account by May. So I gave them the documents they asked for.Well, apparently that was not enough. I got another email saying I need to take better photos of my documents. So, I...

( Read More... | no comments | 2 points | on HN )
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.
Thanks for letting me know. It is good to be aware of alternatives.
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.
Re:Why operators are useful (2019) on Wednesday February 26, 2020 @05:29AM (#22421861)
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

Re:Modern, functional Common Lisp: myths and best practices on Tuesday February 25, 2020 @12:58PM (#22415410)
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".
Re:Modern, functional Common Lisp: myths and best practices on Tuesday February 25, 2020 @12:39PM (#22415225)
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?

Re:Modern, functional Common Lisp: myths and best practices on Tuesday February 25, 2020 @12:16PM (#22414988)
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?

Re:Modern, functional Common Lisp: myths and best practices on Tuesday February 25, 2020 @11:50AM (#22414718)
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.
Re:QEMU for iOS on Saturday February 22, 2020 @07:02AM (#22390582)
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.

Re:QEMU for iOS on Saturday February 22, 2020 @01:17AM (#22389707)
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.
Re:"This community is available in the app" on Sunday February 16, 2020 @08:04AM (#22341367)
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.

Re:"This community is available in the app" on Sunday February 16, 2020 @02:42AM (#22340425)
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...
Re:Flowcharts of programming language constructs on Friday February 14, 2020 @01:37PM (#22328959)
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.
Re:Exploit custom codecs to write inline C in Python on Tuesday February 04, 2020 @12:24AM (#22232684)
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 ?

Re:Exploit custom codecs to write inline C in Python on Monday February 03, 2020 @12:07PM (#22226172)
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.

Re:You’re better off using Exceptions on Monday February 03, 2020 @11:58AM (#22226068)
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.
Re:You’re better off using Exceptions on Monday February 03, 2020 @11:38AM (#22225795)
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.
Re:You’re better off using Exceptions on Monday February 03, 2020 @11:25AM (#22225632)
Can you please elaborate on those problems ? Personally I believe exceptions are the worst way to handle errors, except for all other ways.
Re:Exploit custom codecs to write inline C in Python on Monday February 03, 2020 @10:39AM (#22225061)
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).

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".

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.
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.

Older »