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 3y ago · link · parent

A pretty fun Rust GUI experienc is vgtk[0], which is doing a bunch of macro magic to give a "we're coding in React" vibe to GTK+. I don't really have a specific thing I want to code in a native GUI at the moment but if I did I think this would be the most tempting for me.

[0]: https://github.com/bodil/vgtk/

comment 3y ago · link · parent

Sorry, I wasn't clear. What I listed was not in fact what they wrote, but what _I_ would write given this exercise.

What they wrote was (summarizing) that there is not a lot of tooling available, there still isn't API stability, and not many libraries available.

comment 3y ago · link · parent

I think it's a bit of a cop out. 3 variations on "we're not big yet!"

Examples of things that might be true (I do not know how true this is! Inferring off of what is seen, and I am not judging Pony on any level)

- "prototyping UI work in Pony will not work, as there are no great known patterns for writing small UIs that play well with the consequences of our design decisions prioritizing correctness"

- "our actor based model works well for the vast majority of highly concurrent programs, but can make realtime systems hard to get right" (I have had this experience in Rust trying tokio vs just opting for manual threading)

- "restrictive syntax means that solution spaces involing DSLs will leave you wanting."

I think everything is good and great, but it's valuable to lay out the priorities and what are less of a priority. Of course tooling kinda sucks for newer languages. Of course! Tell me about things that will likely always be a bit miserable.

comment 3y ago · link · parent

So if we had the 20% wall plug efficiency, then we need that 3.2:2 ratio to become 10:2 to hit break-even. That looks like a huge gap but maybe there are tricks here that resolve this once you get over the initial gap.

comment 3y ago · link · parent

given how long it takes to build these places, I feel like the number of iteration cycles is an important metric, especially when other options are not standing still.

I do understand that with more focus things can happen faster but you can really only pour so much concrete per day. Hopeful that we can figure out "leaner" ways to get this done.

I would love to see progress on this stuff, just don't like the idea of betting on successive megaprojects in the age of "a website is hard".

comment 3y ago · link · parent

I wonder if the big comics publishers have ever explored something like Jump. You have to fill a lot of pages with a lot of, honestly, garbage. Stuff that gets cancelled in 3 months. Shipping all over the place costing up the wazoo. And you probably can't get away with as much massive exploitation as in the Japanese industry.

There are of course a lot of short story magazines doing similar stuff, but given how labor intensive comics work is, the genre hyperfocus the major publishers suffer from, and the impracticality of the physical format for distribution in the US... maybe a digital thing could work somewhere.

comment 3y ago · link · parent

I think that even if you stick with a purely economic analysis, looking at the print market size might not be at all right? There's so much money in secondary goods (well, for the publishers). People have mentioned movies of course, but just general merchandising is a huge win (see Star Wars as a good US example of "the primary material isn't the point")

Having said that I don't know anything about the Korean market on this front, and I can totally see a legitimate decline from Japanese publishing just like in many other media spaces over the past couple of decades.

comment 3y ago · link · parent

I mean usually there’s not the exact question in Stack Overflow , so chatGPT is good at coalescing the data together

comment 3y ago · link · parent

I have found it to be a very good verbose search engine that is just wrong 25% of the time. Like “how do I do X in Julia” will give me the answer or just random noise that looks like an answer, but it’s faster than trawling through Google _if an answer exists_

comment 3y ago · link · parent

Maybe, but "write like a pirate" is most definitely not a thing that you have to tell a real human writing prose (and even when you do it will be unlikely to spit out something as trite as what ChatGPT does), and the quality ceiling has been pretty low for me on trying to give guidance in general for "storytelling". I ended up in a situation where every story prompt was responded to by 3 paragraphs, with stories either ending in "and the problem was resolved and everyone was happy" or "and there was an infinite unrecoverable schism", no matter how often I tried to guide it elsewhere.

I think the way it connects ideas tends to be pretty lackluster. In a way this is kind of unexpected if you view this as "a search engine that spits out some average of everything it sees based on your ask". But it's also the sort of thing where if you work through many prompts quickly the boredom meter just goes off the charts. Humans are too good at pattern matching on this stuff!

Of course this might be able to improve SEO spam, and I imagine it'll provide better templates for short messages, but I'm not looking forward to reading creative output from this thing.

comment 3y ago · link · parent

I've been a huge AI skeptic and am impressed at the baseline output. However while trying it a lot you do see the "patterns", there's a clear house style to what the site generates.

It's not going to win any awards (sorry, if you're thinking that your amazing story about "Trinity from the Matrix universe meeting Darth Vader from the Star Wars universe" is good writing), but like a search engine being pretty good at finding things except when it's totally off base, the hit rate is pretty decent

comment 3y ago · link · parent

I think that people dying for a football stadium, then having their death be compared to dying in their sleep (a luxury for people in a lot of dangerous work) should generate some emotion.

What’s the point of anything if we’re going to turn every person into a number? We can’t care about everything all the time, but if we do care about something, it’s probably for valid reasons.

comment 3y ago · link · parent

Moving the goalposts a lot here. I think that when confronted with a meaningless death directly most will feel empathy.

I’m sure a lot of politicians will feel like it’s unfair to pin some event on them, and that might be their base reaction. But this is not a mutually exclusive thing! People can be mad about political messaging and still feel something about people dead while building a soccer stadium of all things.

comment 3y ago · link · parent

Maybe you think that, but I’m sure many people have basic human empathy at the end of the day.

Yes statistically many people die on the job in many countries but every one is still a tragedy. You can think that and be running a large organization.

I feel like many conservative thinkers believe that it’s all “fake” and just PR. But human empathy is a real thing.

comment 3y ago · link · parent

I imagine there are still plenty of statues all over.

comment 3y ago · link · parent

Every day somebody is born who hasn't heard one of these stories! And honestly one thing about life is that you generally are slowly building up trust with people, and then can be asked to do things that are totally legit all the time.

Of course skepticism is required, but I know a lot of people who got dealt a lot of shit by their (real) employers simply by not understanding what is normal or not, as it was their first job.

comment 3y ago · link · parent

> What does this mean? Isn't JS blocking by default? Both languages have async support that you don't have to use...

To be clear on this, because JS APIs prioritize non-blocking mechanism to the expense of everything else (related to it the original sin of how JS interacts with a browser IMO), everything has to become async, even though in practice a lot of this stuff is happening sequentially anyways.

See this example Playwright test [0]. awaits everywhere. Because of how await works as well (Rust got this one right with postfix await), suddenly fluent APIs become awkward. You no longer have foo.bar().baz() but (await foo.bar()).baz(). (await getResources()).map(f) is not beautiful in my eyes.

And the core thing is that almost no code actually relies on concurrency in practice! So much of this is a consequence of the problem of JS not having good yielding semantics, and its interaction with the DOM in general.

Is this the biggest issue in the world? I guess not, but I very much dislike the aesthetics of this fore smaller chunks of code. I would really like a model with implicit awaiting in ~all the places that it exists currently.

I do agree that JS's anonymous function syntax is nice, and I miss it dearly in Python. Though here as well, I think Python comes up on top with all of its argument/keyword argument strategies. I get the options dictionary pattern, but dislike it.

And UI stuff is of course ... well it's easier in Javascript (though it requires its own infrastructure). There's no ways around that.

Loads of serious work is done in both language, I just think that JS is missing a lot of table stakes features given that there's so much attention to it.

[0]: https://playwright.dev/docs/writing-tests#the-example-test

comment 3y ago · link · parent

JS suffers way too much from a lack of a good comprehensive standard library and builtins. It doesn't even have list comprehensions!

I get thinking Python and JS are "kind of the same", but there are so many details that Python gets right and JS kinda falls apart on. Python's pervasive dunder methods means that you can look at objects in a REPL and get a good representation (try looking at any non-trivial Javascript object and it's a major pain). You can define equality. Operations _don't_ stringify by default (so dictionaries work like you think they should). And Python has blocking methods, which means that you can write code in a straightforward way.

There are a lot of things playing in JS's favor but especially as packaging stories get better it's hard to discount Python's ease of use relative to Javascript IMO. And all of this is kind of ignoring the fact that most people are _actually_ talking about Typescript when they talk about JS nowadays, because writing "raw" JS is so error prone that it would be very difficult to actually get serious work done in it without an extra lint phase (I say this as a huge TS proponent)

comment 3y ago · link · parent

I do feel like video games definitely have it harder on this front in general, but tend to have loads of people focused on performance "at all costs", including generating a bunch of messy code to get something shippable.

I also think saying that a retained mode UI has inherent overhead is a bit odd. immediate mode UIs have to rebuild their entire draw graph on each frame! meanwhile retained mode UIs have a bunch of metadata letting them get nice optimization improvements. Translating an object means you might not even need to redraw it!

There is definitely a certain truth to the OS being able to just force you down to a lower priority, but I think we all know that iOS is pushing the top app to as high a priority as possible. Meanwhile the "inherent difficulties" with something like AirBnB (getting data over the wire) are definitely inherent but this is why we talk about placeholders and stuff like that yeah?

But if you're in the business of selling rentals it's hard to have so many engineers focused on the performance of the app (especially when you are in the act of being successful already)

comment 3y ago · link · parent

Sorry, I just really like the wording and wanted to make sure that people don't read that and think that there's some magic going on (like the "real" magic that goes on with eggs that make raw eggs safer to eat in some countries)

To your point about uncooked vegetables... the fact that that is what is left standing is a testament to us cooking meat and practicing proper food safety! I'm sure that stat would change quite quickly if people were having chicken sashimi more often.

Disclaimer: I eat sashimi quite often (steak tartar... sometimes. There are definitely restaurants I trust less to do that safely). Just also think it's important to conceptualize the size of the dice roll for various foods.

comment 4y ago · link · parent

It’s also totally measurably getting people sick and (as one researcher put it) “not magically safe” [0]

[0] https://mobile.twitter.com/benschrager/status/14256753783711...

comment 4y ago · link · parent

People like saying this kind of stuff to imply that, like, steak tartar is safe.

The fact of the matter is that yes, all things being equal, things like actually cooking food or not leaving things out at ambient temperature make it safer to eat.

The problem with food science is that you can have terrible food hygiene and still survive for a long time! This sort of stuff doesn’t instantly kill you

comment 4y ago · link · parent

This has changed immensely in the past 4 years. Night and day. I would not recommend going card only (and lots of restaurants will be cash only for lunch) but honestly at this point my cash spending in face to face transactions has plummeted immensely.

Though for countryside stuff… I feel like PayPay has a lot more success than cards

comment 4y ago · link · parent

Yes? I do not understand how you would think that anything but an extremely antagonistic relationship would result from a chargeback. Not saying they "deserve to keep the money" or whatever (of course not), but a chargeback is pretty much crossing the rubicon in terms of a business relation between two parties.

Not saying "don't chargeback ever", and obviously in your scenario the SaaS is at fault, really.

1
686970
225