Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 5y ago · link · parent

This sort of dumb sarcasm is soooo annoying for a billion reasons:

- Every major website where RSS would be useful (except Facebook. Twitter needs RSS like we need the plague), _has it!_ RSS support is ubiquitous

- There are carbon-copy clones of google reader. I use one every day (well, twice a week cuz I don't depend on reading RSS). You can just subscribe

- For really tricky stuff, you can wire together some stuff with, like, Zapier. It's annoying but way easier than it would be 10 years ago (cuz even then loads of random stuff didn't have feeds)

This is the most annoying kind of nostalgia. Not because it's wishing for an old world that never existed, but because it's implying that the current world doesn't _still have all of this stuff_. At least whining about XMPP has some merit.

comment 5y ago · link · parent

The thing I've heard is "1,000 views = $1". I don't know how true that is anymore but it's my metric.

Mark Brown, of Game Maker's Toolkit, puts out vids on Youtube that get a couple hundred thousand views (1 or 2 vids a month). So he could theoretically get a couple hundred from those. But his Patreon following nets him a couple thousand a month ($11k!)

When you have niche content you can end up getting way more per subscriber if people feel your content is worth it.

comment 5y ago · link · parent

I think especially for podcasters in recent years there have been some.... issues with community management.

I would say in particular lots of these people started doing "community slacks/discords" and then they realized that being able to produce podcast episodes doesn't make you a good community manager.

There's been specific drama with Relay and people around that extended universe as well, so lots of podcast hosts in that space are basically done with fan interaction.

I'm being a bit glib but I totally get it. If you have the choice to just walk away from dealing with CM stuff then it's a pretty nice proposition.

comment 5y ago · link · parent

Anything that accepts YAML will accept JSON.

I don't mean this in a "if you just swap the parser" way. I mean that in the "if you provide JSON to a program that expects YAML, it will parse it". JSON is a subset of YAML

So not only do you have a way of not using YAML, you can also force this decision onto most third-party services as well, and no-one will know the difference.

comment 5y ago · link · parent

I think you misread my message, I was saying that "time stuff is messed up everywhere", not "python's time stuff is like C's string stuff". The C string stuff is a mess.

I was also saying that JS dates _can_ generate ISOStrings. But good luck doing any serious manipulation without issues. Hell, there isn't even a `strftime` equivalent for JS dates! And so much stuff ends up going through locales that you can't rely on it for machine transformations.

I would be careful about ascribing the quadratic perf discussion to be a C thing though.... I find loads of "accidentally quadratic" stuff in loads of languages all the time. People are really bad about this (lots of confusion between "this is built-in to the data structure" and "this is cheap").

Anyways, yeah. Strings are uniquely awful. Other C APIs suffer from issues, but I find those issues are on par with other language thing. Granted, it's sometimes _because of C_ that other languages suffer from the issues (by relying on C layers for the logic).

comment 5y ago · link · parent

The string stuff is kind of the original sin, but to be honest almost all programming environments have massive footguns when it comes to times/dates. Python's datetime story is _extremely_ painful to deal with. Try doing .... I dunno, anything apart from getting the current time and doing an ISO format of a Javascript Date object.

I think stuff has kinda gotten better, but while Unicode had emoji to kinda save the day, dates never had this moment and we're still suffering through major messes on a daily basis because of it.

comment 5y ago · link · parent

In the standard there's things like "exactly N operations", but not seeing stuff for `istream`. There's like... an explanation of how things should work and I imagine you can derive complexity from it, but I think `istream` is a bit special since you're talking about this wrapper for (potentially) an arbitrary input source.

[0]: https://eel.is/c++draft/alg.move#15

[1]: https://eel.is/c++draft/input.streams#istream.extractors-7

comment 5y ago · link · parent

you release feature X. The first person writes it for the web. The web version was easy, because the feature relied on URL deeplinking, which is nice and easy with browsers.

You then realize that Windows doesn't really offer such a concept as easily. You think about application URLs. That mostly works, but it takes a couple weeks for the Windows team to get it working.

You implement the feature over on Macs as well copying the Win strategy. But a recent Mac OS update causes a bunch of permission popups that mess with another thing. Now you're messing around with that, and your internal users are pissed (cuz they're all on Macbooks).

There is no Linux version, luckily.

I mean... OK, yeah, you still have to deal with platform differences even when using Electron. But you are in the same boat with like.... Slack, Discord, etc etc. You get _all_ that shared knowledge, a unified code base. And in theory you throw any of your engineers at the problem and they can try very hard googling "Electron [issue] windows".

I also bemoan the fact that _even Slack_, with its billions of dollars, didn't feel the need to have a native application. But I do get it, especially when there's a lot of pressure to ship.

comment 5y ago · link · parent

“Nowhere comes close” is a very strong statement. It doesn’t really hold up that much.

Very quick delivery of stuff is pretty normal across Asia. You can also get stuff done when you need it. And, yknow, Airbnb etc all exist outside the US as well. And Uber Eats.

There’s some lead time of a couple of years, I guess.

comment 5y ago · link · parent

Counterpoint: many countries in the world have mass-produced housing with good things. This is a _solved problem_ in so many parts of the world, yet not in the US.

So much stuff in the US is just really bad. The poetic example is Hershey's, a company that exists based on "how do we make chocolate cheap (and taste much worse)".

Random homes in the US have just awful plumbing, terrible doors, busted fridges. It took me a long time to unlearn suspicion of "fresh" fruits & vegetables after moving away from the US.

Not to say that mass producing stuff on the cheap is a bad thing! Like people need stuff. But loads of other countries have gotten to mass production and still meet some bar of quality.

But like even decently fancy LA apartments had worse plumbing than a $300/month student apartment in France. My US school notebooks all had that crappy letter paper. Everything just feels bad and busted. I don't know if it was always like this, or if things are getting worse. My best guess is that things are getting better in other countries but not in the US.

comment 5y ago · link · parent

The fact you think Krugman and FAANG employees are in this group of people, I feel like you need to spend some time talking with "leftist" a bit more.

But also you're just wrong.

AOC on relief checks (Feb 7th) https://twitter.com/AOC/status/1358244213918494722

AOC on abolish ICE (Feb 24th) 1364349732760518657

Bernie forcing a minimum wage vote (7 hours ago!) https://twitter.com/SenSanders/status/1366545093876924416

30 seconds of searching on the leftist's favorite communication platform. I think the problem might be more that you're not in the right echo chamber... or something.

comment 5y ago · link · parent

One thing I heard recently, that I found pretty true when role-playing in my mind, is that most of the design methodologies get like... 90% of their value from forcing _a_ methodology onto people.

The barebones "top-down"/"bottom-up" strategies most of us start up with is basically no good at forcing us to plan things out. But other strategies cause design errors to bubble up more quickly, so we can fix them, ship stuff that's right the first time etc.

Anyways I guess I just feel like you can totally mix-and-match design methodologies to your problem space, so long as you're actually applying it seriously enough (and have some agreement with stakeholders about it). But I do feel like too much discussion on these topics focus on failure cases and "false practice", and don't really end with actionable advice.

comment 5y ago · link · parent

what stack are you using, and how much time is going into keeping it running?

Asking out of curiosity, not as a gotcha

comment 5y ago · link · parent

That is what the 3% is for! It’s the point of the fees! The whole reason for everything is fraud and points

By the way fraud at current levels are covered by like a few of 0.25% IIRC

I imagine that whatever app isn’t using 3D secure like it should be, cuz then the bank/card processor is liable in fraud cases. But this is far from a new problem in principle.

comment 5y ago · link · parent

Right, that’s what I’m saying. Maybe this was meant for GP?

comment 5y ago · link · parent

It wasn't your boss telling you how to do that though. The direct power imbalance is pretty different, I think.

comment 5y ago · link · parent

I've messed around with stuff and honestly? Unreal + Blueprints is a much nicer set of tools for experienced programmers I think.

It's visual programming, but it's easy to explore around, there's nice debugging interfaces, and the type inference stuff makes it so that you are presented with a lot of the engine details in a nicely digestible manner.

Unity it's like "OK make a bunch of C# classes and coroutines!" and it gets real messy real quick if you don't know what tools are available to you.

comment 5y ago · link · parent

I remember reading some story way back with some ... Sony exec? Someone saying that there were people writing engine code in Excel to be able to track the co processors and get the timing right.

Does anyone know of the truthiness of such a story? I'm learning FPGA design and even there, when timing is pretty controlled, people end up recommending design patterns where you gate stuff similar to how you would do it in general software design (expecting one branch to go faster than the other, etc)

comment 5y ago · link · parent

Actually spent the evening trying to compile black through mypyc. The tooling is there (blacks setup.py has a thing) but most recent revisions of mypyc with black aren’t quite working for me

The biggest issue right now seems to be miscompiles and the resulting errors being a bit inscrutable. It leaves you in the “am I wrong or is the system what’s wrong?” stuff a bit still.

But overall I think the techniques are really sound and I believe this is the most promising way forward for perf in Python.

comment 5y ago · link · parent

you own a bunch of tether, you decide to "rush" to other assets.

Except your existing assets are dropping to 0, so you don't actually have that much buying power anymore. So you'll only see a fraction of a rise. Meanwhile whoever sold you the tether probably cashed out a while back.

comment 5y ago · link · parent

Isn't gas also at like 50% production as well? It's also heavily knocked out?

Like it's pulling a lot of weight because it's 80% of the capacity if nothing's going wrong! If it was 100% then maybe 40 GW of thermal capacity would _also_ be offline.

ERCOT assumed 0% from Wind. Instead we're getting 25% They assumed 100% from gas. Instead we're getting 50% (or 70% or whatever). You look at that and tell me gas is what's performing well here, and the segment that should be expanded. (EDIT: Sorry, I think your original thing was "all in nuclear." I think I read nuclear was also having some issues but it's at least not the "more gas is the solution for a situation where gas is failing" narrative)

I get that wind + solar can't cover everything, but right now what we're seeing is massive failures from gas. In a universe where we had more wind + solar, there could likely be more energy going around right now.

comment 5y ago · link · parent

Gas-based electrical generation is what are failing right now! They are failing left and right! If 100% was gas there would be more problems, not less.

Wind and Solar is pulling above planned generation right now.

If you believe your logic, time to go all-in on wind + solar.

comment 5y ago · link · parent

to be honest it feels like a huge boost would be for there to be a mandate for airliners and the like to start buying e-fuels (since fuel is like 10% of the current costs, if that triples we would be looking at maybe 20-30% increase in prices? Which is obviously a lot but to be honest feels pretty manageable). Like on some sliding scale over time.

So long as standard fossil fuels are on the market and cheap nobody has much incentive to go the other way.

2934.

How do I split the date and time into two elements? (2016)(stackoverflow.com ↗)

2 points · by rtpg · 5y ago · discuss

comment 5y ago · link · parent

........oh, duh. Right. Yes.

Does anyone know the current relative prices here (or any research on theoretical price limits given enough scale?) Is it possible that in our lifetimes we could see something similar to the major drops in other renewables?

EDIT:

From an EU report: "E-fuel costs are currently relatively high (up to 7 euros/litre) but are expected to decrease over time due to economies of scale, learning effects and an anticipated reduction in the renewable electricity price;this is expected to lead to a cost of 1–3 euros/litre (without taxes) in 2050.3The cost of e-fuels could therefore be 1–3 times higher than the cost of fossil fuels by 2050."

7 euros/litre is _very costly_, and the reduction of price is predicated on some massive drops in solar pricing which seam unreasonable. OTOH fuel is important and if there's less of it it'll be more costly!

(https://www.concawe.eu/wp-content/uploads/E-fuels-article.pd...)

comment 5y ago · link · parent

Wait so they're claiming that, today (or roughly today), we could basically do everything through synthetic fuel (Not requiring much, if any, retooling of existing infrastructure) and basically have major CO2 reductions?

This seems like a major no brainer? Especially if you start getting into "places with a bunch of sunlight but no natural petroleum can now turn into energy magnates"?

This seems like an extremely powerful idea

comment 5y ago · link · parent

OK let's say you have f, it only takes arguments a:Y, and b:Z.

I call f(Z, Y). What happens? Does the machine segfault? Probably not.... so you're in "check the types at the callsite" territory. And honestly those kind of boundary checks are the problem, so to speak.

Are we doing static analysis of the entire codebase (a sort of closed-world theory?) You could maybe do something like this for non-exported functions, though at the V8 level that's tough.

I think that there would be possibilities to somehow get systems to be set up in a way to do more cleverness along these lines, but so long as you're taking in stuff from the outside world you end up needing to set up relatively costly checks, relative to the cost of the "default" JS semantics that you're trying to avoid paying.

comment 5y ago · link · parent

"Netflix" is not even 10% of a heater. Heating is so much more energy-costly than basically anything you do in your home.

Granted, seems like if you're driving ~40-60 miles a day, then you're looking at needing 4kW during the evenings. Not insignificant, but it's like... electric heating for one big room, basically.

1
979899
225