HNHacker News
TopNewBestAskShowJobs

swagonomixxx

482 karma · joined December 25, 2016

submissionscomments
swagonomixxx··on Fuck Medium
I agree wholeheartedly with the author. Not a lot of things irk me more than the Medium era of blogging. Aside from the shady practice of Medium itself, I feel like with it came the meme-infused blogs, which I personally dislike a lot. I don't mind diagrams, of course, but I feel like the memes are to pander to the "kids" of today (I'm not that old, but memes weren't until I was 21).
swagonomixxx··on The technical interview practice gap
> A big reason we use leetcode style challenges is because they can be automatically scored, while take-homes take a lot more to review.

Literally this. You can pretty much do all of the interviews required for FANG without talking to a human being, which from the FANG perspective, is absolutely GREAT, because it takes all of the existing social biases (e.g preferring a certain race, preferring a certain gender, etc.) out of the window and focuses ONLY on the algorithmic knowledge of the applicant.

Of course, there might be some interview here and there about soft questions, but for the most part, they don't really give a shit about that, and it's unlikely that you'd be rejected based on that, unless you _really_ suck at bull-shitting success/failure stories (which I am - can't stand doing it).

I think the last time I applied to Amazon (over a year ago at this point) I didn't even get phone screened. It was just a link to 2 graph algorithm problems that were the equivalent of a medium difficultly on Leetcode, and I was immediately graded. It's so fricking easy for FANG nowadays.

swagonomixxx··on The reason Okta spent $6.5B on Auth0
Primarily startups. We've used Auth0 for the last 4 years and we've only ever had one outage.
swagonomixxx··on CryptoArt WTF Ecological Cost Calculator
It's gonna sound snarky, but I don't think there is any crypto that is ready for "widespread usage" if by that we mean literally 100s of millions of users per day, doing multiple transactions each. ETH for example is sitting at around 1.2 million transactions per day nowadays, and Bitcoin half of that. Theoretically, ETH can only do around ~2.5M transactions a day. Not exactly ready for widespread usage either.

ETH 2.0 is theoretically capable of 100K transactions per second, but I'll believe it when I see it under real world load. That said, it's good to see ETH finally moving to PoS.

swagonomixxx··on Symbolics.jl: A Modern Computer Algebra System for a Modern Language
While this is an decent interim solution, I wouldn't want to call out to Python for anything running in production from Julia. Good for prototyping at home perhaps.

A lot of the "scientific" Python packages (NumPy, SciPy, etc.) actually just call out to C libraries for the majority of their computation. I imagine Julia can do that already, or it can call out to something similar in the stdlib, so it doesn't really need integration with these Python packages other than just API familiarity. But is that worth the cost in performance?

swagonomixxx··on Git's list of banned C functions

    Professor(Professor&&) = delete;
swagonomixxx··on Bitcoin Is Time
> And, just fyi, Nano is not made of users. Go to its reddit and you will see everyone shilling it and having price targets on it.

Not saying you're wrong, but this feels like every subreddit dedicated to a crypto.

swagonomixxx··on Bit (1.0) – a modern Git CLI in Go
I'm eagerly awaiting the postmodern Git CLI's in Go 2.
swagonomixxx··on Our Thoughts on Bitcoin
Oops, my mistake.
swagonomixxx··on Our Thoughts on Bitcoin
The deflationary nature of Bitcoin is a commonly used property to assert that Bitcoin is designed to increase in value over time due to artificially programmed scarcity.

However, I don't think GP's parallel lines up, as another commenter pointed out.

In any case, a single satoshi, which is the smallest denomination of Bitcoin (10^-8 of a Bitcoin), is worth about 0.05 cents as of writing this comment. If Bitcoin didn't have such large transaction costs, slow transactions, and price stability, it's scarcity would be way less of an issue due to this really large level of division of a single coin.

swagonomixxx··on Our Thoughts on Bitcoin
Bitcoin can be used for transacting if you're not looking for instantly verified transactions.

In ye olden days, when Bitcoin was a few cents worth, transaction costs were tiny. I really doubt Satoshi et al predicted Bitcoin to be so unstable, so as to make transaction costs pretty much out of reach for 99% of normal everyday transactions.

swagonomixxx··on Our Thoughts on Bitcoin
I mean, they are an investment firm, whose goal is to make money. Personal profit is literally their only motive.

Another thing to note here is that these firms can shill any coin they like without any market manipulation accusations from the SEC, were they to do this for any other asset.

swagonomixxx··on My tutorial and take on C++20 coroutines
I agree with GP, I feel a similar disdain when I hear that features that are merged into the standard are for the "library implementors". Boost.Coroutine and Boost.Asio have been around for how long? At least a decade? I think there has been more than enough experience with coroutines and async programming to get coroutines in standard C++ done so that at least the "average" C++ programmer can grok them.
swagonomixxx··on Passerine: A small extensible language designed for concise expression
From a glance it seems to be mostly Haskell-ish but with Scheme style macros.
swagonomixxx··on Little is a statically typed, C-like scripting language
> undef(argv[1]); // left shift down the args

Can someone explain what this does? Is this some Perl or Tcl thing? Unfortunately I've never used either :)

swagonomixxx··on Tauri: An Electron alternative written in Rust
Wow, at least from the screenshot in the README, the binary size is much smaller. However I think that's just from the fact that they don't bundle the JavaScript engine and the rendering engine into their binary. You're right though, seems abandoned.
swagonomixxx··on Tauri: An Electron alternative written in Rust
In a previous company we had to do FF and Chrome. Not IE though, which was a big time saver. QA ran all their test cases on the latest stable of both FF and Chrome, and features would not be deployed to prod if they didn't work on both browsers.
swagonomixxx··on Tauri: An Electron alternative written in Rust
This kind of makes me think... is there room for a much more stripped down version of Chromium that is suitable for lower memory footprint? Or is this impossible?

It looks like Tauri uses system webviews, which use a lot less memory, but the burden is then on the developer to make sure that they build essentially 3 (maybe more) UI's on platforms that might change under their feet. That's why the Electron approach is simpler - it trades of performance for uniformity of experience across the major platforms.

But I'm wondering if it really has to be this way. Do modern browsers really need 2G of RAM in order to send and receive messages in a chat box (looking at you, Slack).

swagonomixxx··on My Wish for Python 4
I agree with you that the C# example is far more readable.

One thing I like about Rust is that you can implement traits on standard library types. You can imagine implementing a "Where" trait on e.g Vec<T> (btw, you don't have to, since "filter" is already there) that would return an iterator that can be used by the next method in the call chain.

Unfortunately you can't "extend" standard library or built-in Python types like this.

In Rust your example would be:

   strings.filter(|s| s.starts_with("a")).map(|s| s.len()).sum::<u32>()
swagonomixxx··on My Wish for Python 4
> [Yes, type annotations can be extremely useful, but they do not (currently) "fit my brain".]

Why don't they fit your brain? I wonder if the author ever tried statically typed languages.

> I would like for Python 4 to get inspired by Racket and introduce "dialects".

> Having repeat as a keyword as is available in TygerJython and Reeborg's World for the construct repeat nb_steps:. It might perhaps be also useful to have repeat forever: as equivalent to Python's while True: . [Other possible uses of this keyword are described here.]

I don't see how this would be beneficial. You're basically proposing that beginners learn something that is literally not Python - then when they switch to the "main" dialect, they have to re-learn basic things all over again.

Lisps have this neat functionality where you get to basically define your own syntax, and that's really useful in a small set of cases (i.e macros in Racket, super duper useful, would wish C macros were as clean as Racket macros). But Python simply does not fit this mold. It wouldn't do Python any good to have a macro system - and it definitely wouldn't do it good if it has 4 different sub-languages, each of which have it's own syntax and warts.

Stroustrup said "Within C++, there is a much smaller and clearer language struggling to get out." The Python the author is describing is to me, even worse than C++ in terms of complexity.

swagonomixxx··on Migrating to SQLAlchemy 2.0
Agreed. I will never recommend an ORM, things simply spiraled out of control for medium to large-ish projects that had more than 2 developers. Even with "best practices", code ended up having a mix of raw SQL and ORM-style queries, and it was hard to reason about the code.

Since switching to asyncpg [0] these problems have vanished. It commands a deeper knowledge of actual SQL, but I would argue this knowledge is absolutely necessary and one of the disadvantages of an ORM is that it makes the SQL that is eventually run opaque.

Not sure if there are equivalents to asyncpg for other RDBMS's.

[0]: https://github.com/MagicStack/asyncpg

swagonomixxx··on Skyline – Your GitHub story in 3D
Hug of death strikes again.
swagonomixxx··on Go 1.16 Release Notes
Yeah, it's kind of interesting how two extreme camps have evolved out of the "controversial" decision not to include generics in Go 1.0:

* Camp 1: generics will always be horrible, Go is right not to include it, it's too complex, Go is meant to be simple, etc.

* Camp 2: I will never use Go because it doesn't have generics, serious languages have generics, etc.

When in reality, both camps are pretty much wrong. Yes, generics are useful in a lot of places. But they also add no value in a lot of places. It's really on you to pick the tool you want to use. If you really want generics, pick C++ or Java instead. If you couldn't care less, Go is an option. It's much more fluid than this binarization of the topic has made it out to be.

swagonomixxx··on Go 1.16 Release Notes
> I'm back to programming in swift after half a year of doing go only, and i'm more and more sceptical on the benefits of adding generic programming to the language.

I'm not sure how the generics implementation in Swift has any bearing on how generics will work in Go.

swagonomixxx··on Functorio
Pretty much. Bartosz's posts are pretty much exclusively about the superiority of Haskell and functional programming, with occasional forays into C++ to explain a functional concept in a more familiar syntax.
swagonomixxx··on Organizations Using the D Language
Cool to see ArabiaWeather using D, especially with a link to the talk. For someone from that region (the Levant) I rarely see any organizations in the Arab world discussing tech, simply because they usually outsource most of the work to nearby tech hubs like India.
swagonomixxx··on Changes to LastPass Free
Same here. 1Password is a joy to use.
swagonomixxx··on TikTok hit with consumer law breaches complaints across Europe
Out of curiosity, what are the European alternatives to GSuite?
swagonomixxx··on Are the New M1 Macbooks Any Good for Deep Learning?
Why would serious ML researchers stop using proprietary frameworks? They're the best that are out there right now, and ahead in pretty much every way than any other open source framework.

Researchers want to get their work done. They don't want to fight against their tools.

swagonomixxx··on I Love Coding on Linux
Visual Studio Code has an excellent visual debugger for Go. I'm certain it's the same experience for C/C++.
← PreviousPage 2 of 7Next →