HNHacker News
TopNewBestAskShowJobs

Pepe1vo

425 karma · joined March 18, 2014

submissionscomments
Pepe1vo··on Reflections on Migrating My SaaS to SvelteKit
Sounds cool! If you have any code you're willing to share, I'd love to take a look :)
Pepe1vo··on Reflections on Migrating My SaaS to SvelteKit
SvelteKit is really, really great for small to medium sized projects. The amount of stuff you get "for free" (prerendering, ssr, decent SEO) by using SvelteKit is so nice.

That being said, I definitely agree with the sentiment here that the file based routing is sub-optimal and I think the hurt goes up exponentially with the size of a project. I've also found that straying off the opinionated path even a little gets you in all sorts of trouble almost immediately. For me it was trying to add a SvelteKit app to an existing Nx codebase, did manage to make it work in the end luckily.

Btw, if anyone has found a good solution for creating an OpenAPI spec for SvelteKit server routes, let me know. :)

Pepe1vo··on “Terrascope”: The possibility of using the Earth as an atmospheric lens (2019)
Warning: spoilers

IIRC this is actually one of the plot points in the Three Body Problem, where they used the sun to send out a signal and make first contact with an alien civilization.

Pepe1vo··on Grover's algorithm offers no quantum advantage
You're correct, I got some of the terminology mixed up. It's after all been a long time since I've been in the field :p
Pepe1vo··on Grover's algorithm offers no quantum advantage
Shor's algorithm and Grovers algorithm are fundamentally very different. Most conventional asymmetric crypto algorithms are essentially all hidden sub group problems which are NP hard for classical computers. What Shor's algorithm does is reduce hidden sub group problems to P on quantum computers.

Grover's algorithm is quite complex and I'm not qualified to say much about how it works, but I do know that the underlying mathematics is very different.

Pepe1vo··on Why use Rust on the back end?
Maybe I'm holding it wrong, but my experience with sqlx is a bit more lukewarm. It's really great that compilation success means that you didn't fuck up any queries, but... there's just SO much boilerplate. I find that due to Rust's extremely strict type system, I have to create dedicated record structs for all of my domain models representing how a model is stored in the database. So once everything's up and running it almost always implies there's essentially no bugs, but man is getting there a drag.

Also, testing is quite annoying too. If you're using sqlite, you can use in-memory mode and that's quite nice. But for other databases you basically have only two options: 1. setup and teardown an actual testing db 2. wrap your sqlx interfacing code in something vaguely resembling the repository pattern and create an in-memory implementation for testing. I'd call both of these options less than ideal.

Pepe1vo··on Why use Rust on the back end?
> Building a model of the SQL type system within the Rust type system is very impressive work. It also leads to really annoying problems, because the Diesel types are so complex.

Oh man have I felt this pain, trying to do anything mildly complex with Diesel's types is so ridiculously difficult. I once (foolishly) tried to write a generic repository implementation for database entities which could either have sqlite or postgres as a backend. I thought this would be very convenient for testing, being able to just keep all of the code the same safe for using a sqlite backed repository instead of a Postgres one.

I gave up after about ~10 hours of battling incomprehensible error messages.

Pepe1vo··on You might not need an ORM
Maybe I'm holding it wrong, but my experience with sqlx is a bit more lukewarm. It's really great that compilation success means that you didn't fuck up any queries, but... there's just SO much boilerplate. I find that due to Rust's extremely strict type system, I have to create dedicated record structs for all of my domain models representing how a model is stored in the database. So once everything's up and running it almost always implies there's essentially no bugs, but man is getting there a drag.

Also, testing is quite a drag. If you're using sqlite, you can use in-memory mode and that's quite nice. But for other databases you basically have only two options: 1. setup and teardown an actual testing db 2. wrap your sqlx interfacing code in something vaguely resembling the repository pattern and create an in-memory implementation for testing. I'd call both of these options less than ideal.

At work we predominately use TypeOrm, which for all its (many, many) faults is really ergonomic and succinct. So maybe my views of ORMs is just warped.

Pepe1vo··on How we turned the tables to catch my sister’s Bumble stalker
Truly, what compels a person to do such a thing? I too have struggled heavily with depression in the past, but I've never once felt the urge to repeatedly vandalize anyone's property.

Like, I just don't understand what's to gain.

Pepe1vo··on How to Build an Exchange (2017)
That's not true, I've worked at IMC and they extensively use Java for their production systems. The performance critical parts are a mix of hand crafted assembly, C, C++, FPGAs and a dozen other esoteric languages/techniques no ones ever heard of.
Pepe1vo··on Riffusion – Stable Diffusion fine-tuned to generate music
I find it really cool that the "uncanny valley" that's audible on nearly every sample is exactly as I would imagine that the visual artifacts would sound that crop up in most generated art. Not really surprising I guess, but still cool that there's such a direct correlation between completely different mediums!
Pepe1vo··on Riffusion – Stable Diffusion fine-tuned to generate music
Same here, servers are overloaded probably. Shame, I was really looking forward to a Wu Tang Clan and Jamiroquai collab
Pepe1vo··on Orphaned neurological implants
> There is lots of room for improvement. Like what?

I feel for the majority of transplant cases the answer is going to be along the lines of "you shouldn't have gotten (into an accident|leukemia)" which is technically true yet at the same time very unhelpful.

Pepe1vo··on SBF scheduled to testify tomorrow at US House hearing on FTX collapse
"Everything Sam Bankman-Fried is doing is in singular pursuit of not going to jail" -- https://newsletter.mollywhite.net/p/everything-sam-bankman-f...
Pepe1vo··on Tauri Mobile Alpha Release
The build process is very fragile for both Android and iOS. Basically, a patch version update of any of the capacitor libs or plugins has a pretty high chance of wrecking your build pipeline.

Also the ecosystem is not in the best shape; the quality of libraries is allover the place, lots of unmaintained ones or ones that only support older SDK versions of Android/iOS. Not sure it's entirely fair to blame CapacitorJS for this, but it's nonetheless the reality when developing Capacitor applications.

All-in-all Capacitor is pretty great though, definitely one of the most productive ways to develop high quality cross-mobile apps.

Pepe1vo··on Tauri Mobile Alpha Release
Congrats on the release! From the looks of it Capacitor[0] has quite a big lead on in terms of support for native APIs (secure storage, SSL pinning, biometrics, etc) but hopefully they'll catch up quickly and avoid some of the mistakes Capacitor has made.

Definitely keeping an eye on this.

[0] https://capacitorjs.com/

Pepe1vo··on ‘Why am I talking to 10 guys?’ The rise and fall of dating apps
Definitely. That's why 24h before your date a support phone number would come online where you could call about this kind of stuff. Explaining to another human on the phone why you can't make it is IMO exactly the right amount of friction for cancelling a date!
Pepe1vo··on ‘Why am I talking to 10 guys?’ The rise and fall of dating apps
>From the company's POV, aren't they likely to benefit from setting you up on dates that either go mildly unfortunately, or leading to a short-term relationship at best? The customers are paying for dates after all, not long term relationships.

I can't imagine there's a data scientist alive who could devise an algorithm that accurately, reliably predicts "kind of a good match but not really", given only some limited inputs (basic info + photos).

I reckon from the company's perspective that positive word of mouth from people who like the app is a much better focus point.

Pepe1vo··on ‘Why am I talking to 10 guys?’ The rise and fall of dating apps
When I was single I absolutely hated the mandatory 1-3 days chatting that was necessary until it became acceptable to ask someone on a date. One day I encountered the dating app Breeze (only in Dutch) which works with the same swiping gimmick, but the the twist is that once you have a match you HAVE to go on a date. You have to enter your availability, pay 5 euro and if you don't show up on your date you get perma-banned for life.

This works so much better than swipe-and-chat, because you become much more selective in who you like (keeping you from swiping endlessly) and because it's so focused on getting people to meet IRL I imagine it has a much better higher success rate than Tinder et al. Needless to say, I met my SO through the app after using it for a couple of months. :)

Pepe1vo··on Ask HN: How do I build a website as a backend engineer?
I Had never heard of streamlit before, but it looks extremely nice!
Pepe1vo··on Crypto exchange AAX suspends withdrawals
From a legal perspective there are no required internal controls on the flow of crypto going in and out. Apparently when there is a couple of hundred million worths of crypto sitting in a wallet, it becomes real tempting to go to the racetrack so to say.

Also, most of these exchanges have their own tokens which they control the supply of and keep as "assets" on their books. In doing so they can use these self printed tokens as collateral for loans. Add to that some nicely leveraged positions in all kinds of shitcoins and you start to understand how we got here.

Pepe1vo··on People have been having less sex, whether they’re teenagers or 40-somethings
That's what I came here to say as well, this simply can't be right.

Apparently these numbers come from a self-reported survey, so either the questioning was vague/confusing, people are not reporting the truth for whatever reason, OR... we're gonna see one hell of a drop in birthrates in the next couple of years.

Pepe1vo··on Layoff spree in Silicon Valley spells end of an era for Big Tech
Maybe only tangentially related, but I can share some of my personal experiences with hires at my current job. I work for a mid-size IT consultancy agency in the Netherlands which prides itself on almost exclusively hiring people with a masters in comp sci, or occasionally some other STEM field.

I'd say that 90% of the new graduates we hire straight up cannot program beyond what you'd need for your typical uni assignment (a few months ago one asked me what 'git' was). If they're motivated and eager to learn, I can usually get them to productivity in a month or two. The ones who are not take months to get up to speed and become a real drain on the team's productivity.

The more senior colleagues I interact with are kind of a mixed bag, some are really good and a pleasure to work with others have learned just enough to get by in their current role and become useless as soon as they have to do something slightly different.

That being said I do think that the level at my company is above average in relation to "the industry". If you want to see truly large amounts of non-contributing employees, have a look the IT-department of a large bank, pension fund, government agency or some other technology adjacent big organization. They can't hire the most talented engineers to start with and then most of them are actively kept from doing productive work by layers of middle-managers and bureaucratic procedures.

Pepe1vo··on Ask HN: Stay fit as a time-poor remote worker
What worked for me is signing up for a crossfit gym and try going there at least 3 times a week before work, at my gym they have classes at 7:00 which means I'll be home at 8:15 which is plenty of time to get ready for my first meeting at 9:00.

The beauty with crossfit is, that it offers a nice balance between strength training and HIIT. Also, if you're of weak mental resolve like me then Crossfit is doubly great because something about doing the same workout with a group of people is extremely motivating and makes it much easier to really push yourself.

If you have a crossfit gym within a 15 minute drive of your home then I would definitely seriously consider this!

Pepe1vo··on Tuna
I'm confused, Wikipedia lists the Atlantic Blue Fin Tuna as "least concern". Is the author being dramatic or is the wiki page inaccurate?

That being said, the part about people speculating on animal extinction was new to me and saddens me deeply. One wonders in what way such a person views themselves, I can't imagine it being very favorable.

Pepe1vo··on UK energy bills are soaring to record highs
It's an European standard, so maybe the criteria are different in Australia? My current apartment has an E rating and it has double paned windows everywhere, floor + ceiling insulation and I have neighbours on all side including above and below, meaning not much energy is transferred to outside.

Edit: just noticed I misread Austria as Australia (lol), point still stands though, a D rating is not that bad.

Pepe1vo··on UK energy bills are soaring to record highs
Definitely, here in the Netherlands a law has recently been passed that mandates that all rented houses should have a minimum energy efficiency rating of D. IMO it should have been a C rating, but at least its something.
Pepe1vo··on UK energy bills are soaring to record highs
Though I understand the reasoning behind your proposal, it has to be noted that it's massively unfair towards lower incomes. Simply because these are the people who either don't have the money to reduce the energy usage of their homes, or are renting and there is little incentive for landlords to make that investment.
Pepe1vo··on Poll: Contractors, what is your hourly rate
Written in Ruby though[0] and pretty badly at that (or so they claim themselves)

[0] https://github.com/lobsters/lobsters

Pepe1vo··on I'm 30. The Sexual Revolution Shackled My Generation
Too easy to blame the apps IMO, although they're certainly making things worse. I went to college just before dating apps became ubiquitous and from my experience hookup culture was as much a thing as it is now, only people would first drink their inhibitions into submission before making bad decisions.

If I had to take a (very uneducated) guess I'd say as a society we're currently experiencing an epidemic of unhappiness, especially amongst young people, and what the article describes is just one of many symptoms.

← PreviousPage 2 of 3Next →