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

Reading this just made realize how bonkers it is that we aren't actually calling the police.

If some guy was smashing people's laptops, this would be an obvious option on the spectrum of ways to handle it. But here....

Granted, this also means attention to the victim, and given how society treats people making these claims it can be an extremely scary step forward to make for them, on top of the experience itself.

comment 9y ago · link · parent

Sure... it's still mostly about votes right?

"Popular things go to the top" is a pretty good first approximation of the algorithm. You have things getting flagged to death for generating bad conversation/flamewars (kinda like parents telling kids to stop playing rough since people are getting hurt). There's the hiring posts. At least to me, it's always felt like moderation is happening at the margins.

comment 9y ago · link · parent

There's a world of difference between walking 15 minutes and driving 15 minutes, and overall having people walk usually makes for a better overall urban environment.

You wouldn't want to walk along a highway, but because everyone drives in major US cities, even downtown has highway-sized roads.

I'm not super for sleeping in cars, but I already pay a space tax for my living quarters to have walkability (even if I end up taking the train)

comment 9y ago · link · parent

I kinda get this criticism, but this is also a bit like lamenting that we write the same libraries for different programming languages. I mean... yeah. Some ideas are good across protocols. That's why they're copied.

On a merits-based thing, if you're just looking at XML, it has a lot of things going against it .If someone sends me something "in JSON", I can have a good guess what it'll look like. Not as much luck with XML. XML punishes you for using attributes (because you can't place composed types within them), but the awkward alternative is placing attributes in sub-elements.

I have a list of products with prices. I store the price as a quantity attribute on a <product>. I decide later on to store currencies for all my "money" objects. Do I now double the amount of attributes? It's all super awkward, and JSON's mental model is more straightforward, even if you end up with approximations.

comment 9y ago · link · parent

agree that readability is super important.

I think there's a bit of a conflict with regards to immutability. When I see a variable in the code, it's much easier to handle a single definition rather than a "half-definition" followed by a bunch of conditionals.

I've also seen some waaay to concise code that becomes super legible after just one extra line of code to split things up.

I've run into the opposite problem a lot though. Even if every operation is simple, the length of code makes the intent unclear, especially in cases involving aggregation. Death by a thousand cuts

   results = []
   for elt in other_array:
      if elt is None:
         results.append(0)
      else:
         results.append(f(elt))

   
   results = [ f(elt) if elt is not None else 0
               for elt in some_other_array ]
In one example we have to read several lines to figure out some basic stuff, but in the other I can tell even at a quick glance that we have a mapping from one container to another, an expectation they're the same size, etc.

Clarity is the most important, and after a couple conditionals it makes sense to be more explicit about control flow. But many common tasks are not _about_ control flow, even if C-isms make us write them as if they do. "if" statements generate so many bugs, eliminating them is great.

comment 9y ago · link · parent

oh, this is most definitely a thing I want. Not sure if my coworkers would appreciate this however. Would still have liked a bit of a simpler syntax for inclusion but this could be worth the ugliness

Nice that this works on lists as well.

comment 9y ago · link · parent

I think there's a lot of useful unexplored territory in this sort of tool. So much work nowadays is happening in maps/dictionaries/what-have-you, with a lot of work being, essentially, data shape transformation.

Despite this, many languages aren't great at this! we have tools that work alright on first-order operations but fall apart on higher level things.

Even really simple things like "conditionally include a key" are rarely supported in a way that leads to concise code. How many times have we all written

  foo = {...}
  if bar:
     foo['a'] = x
instead of something like

   foo = { ... , 'a': x if bar }
and then having bugs because of branches? Tools that solve this sort of problem will be to modern programming what things like the Unix shell was to data mungers in the past.

Haskell lenses kinda goes into this stuff, though Haskell itself is a bit hard to use in a lightweight fashion. Clojure has Specter. But still looking for some more stuff to fill this hole, especially in the "transitionally typed" stuff like Typescript or Python + Mypy

comment 9y ago · link · parent

it's also possible that we no longer have a lot of general technology imporvements that can be cost effective relative to just paying someone.

We could probably build excellent robots to bring food from the kitchen to tables of a restaurant, but the capital costs are just not worth it relative to hiring wait staff (conveyor belt sushi nonwithstanding).

Would it ever be worth it to Chili's to outfit a 40-table restaurant with automated delivery systems, replace 3 wait staff with a technician, and deal with the edge cases (how do tables get cleared??)? Probably not.

Likely most tech ends up actually make existing staff more efficient, to be simply overworked instead of insanely overworked. Tablet digital ordering systems, fast dishwashers, kitchen-side logistics improvements....

comment 9y ago · link · parent

How much is this because of Haskell's build times in particular? Is there a sort of "target build time" that would make you more comfortable with this stuff

comment 9y ago · link · parent

One person seeding a really popular file once will now be able to download a bunch of other files without seeding.

But this isn't actually the most usrful result! In this model distributing 100MB of GoT is as valuable as distributing 100MB of some file with only 2 or 3 seeders. But those Megs are not equivalent if the objective is to maximize availability of files.

Being the seeder of last resort on a rarely (but still downloaded!) file is way more valuable than being the 100k'th seeder on some new TV show.

This isn't necessarily what the GP was getting at but is a good example of seed ratios not having the best incentives.

comment 9y ago · link · parent

to clarify, what I meant by "issue" is production delays. There are underlying issues for sure, and those won't be solved just with money.

But many side effects of delays are mitigated by throwing money at it. And spending money is usually an easy option, if you have a lot of it.

comment 9y ago · link · parent

What I'm saying isn't that the production issues get solved. What I'm saying is that if you have enough money, delays aren't as much of an issue in itself. You can wait things out.

Valve surely has a lot of developement issues leading to delays, but they still got Half Life 2 out and made a bunch of money off of it.

comment 9y ago · link · parent

Don't the BMWs of the world have this tech integrated into their cars too?

I get Tesla's cars are really good, but my understanding was that it wasn't "miles ahead".

comment 9y ago · link · parent

Gold farming? Hacking mobile games (and their payment systems)?

I'm also a bit confused, but there are ways to turn "game accounts" into cash in a lot of spaces....

Kinda feel like intelligence officials are not exactly at the beck and call of the ESA.

comment 9y ago · link · parent

I wonder if there are many side effects from this sort of schedule slippage apart from just needing more time.

If the only result is the schedule slipping, then investors can continue giving to Tesla with the assurance that things happen "eventually".

If this is actually indicative of greater disorganization, then perhaps we'll see more issues later on. But my impression is that this is _the_ major issue for Tesla... and ultimately it's an issue that can be solved with more money.

comment 9y ago · link · parent

But in this scenario isn't it basically better for everyone (except Uber) to reorganize everything into a co-op?

This is a great example of capitalism not being able to generate the best solution. In an alternate universe there would be a regulated exchange with ~0 cut of the profits, instead making sure drivers get the money since they're doing most of the work. Uber does handle pricing, but even then it has "cheated" to get a bigger slice of the pie.

Imagine the NYSE taking even 5% of trades.

comment 9y ago · link · parent

Food is subsidized, so let's say about $100/month/kid is going to help pay for their school lunch. There's $36,000 a year gone.

Arts classes requires materials. Instruments for band. Mopping the classrooms. Maintenance for desks.

Some of those kids go to detention, so now some teachers get paid overtime to sit with them.

The football team takes the bus to go somewhere.

The library buys some new books. Updates the computers.

There's a lot of stuff going on, it's not just the teacher.

comment 9y ago · link · parent

Standardization is often talked about, but it would totally be possible to standardize on a "good curriculum".

It's extremely hard to find teachers that are willing and able to produce entire curriculums on their own for the group of 30 children. However, there are many teachers that would be excited to try out better curriculums if they were offered them. That curriculum can, of course, be less structured as well.

Hundred percent agree on lack of resources, of course.

comment 9y ago · link · parent

There's also been plenty of valid criticism here as well...

"Hacker News hated Dropbox so..." Is a fun trope, but Dropbox still isn't profitable ;)

In seriousness I bet a lot of us go though the thought process that we want to give constructive criticism, since positive feedback isn't super actionable.

Feeling smarter than the rich people is always a good feeling too (and cheap, since we aren't even betting our own money )

comment 9y ago · link · parent

I feel like there's more and more evidence out there that JIT in Javascript might be a huge dead end. I remember reading a couple articles about how V8 is rolling back a lot of that stuff, for example, simply because in practice it would end up causing things to be slower than they could be.

comment 9y ago · link · parent

what about Dreamhost (see yesterday's story)? Or about countless cases that end up with the government not getting what they want?

There are courts, and rules, and sometimes rules mean you hand things over, but sometimes they mean you can say no.

comment 9y ago · link · parent

I'm having a hard time understanding how the body can stay stable at all. For the emergent behavior to appear, you would need the AI to control the body pretty precisely, but if you just had a "random" AI the body would never stay up straight.

Seems hard to imagine any amount of generations that get the body up to "stand". I would have maybe expected it to crawl on all fours.

comment 9y ago · link · parent

My feeling has been that C++ has a special degree of complexity beyond most languages. Many terms come up in the "day-to-day" that wouldn't come up in other languages (lvalue/rvalue, move semantics), and so much can be overwritten through operators.

I think the only other language with a similar feel is Scala. It's the programming language equivalent to Magic The Gathering: half the fun is just in the mechanics of it all

comment 9y ago · link · parent

The difference is that in theory, you can make secure software in the US that hides information from the gov't. For example the secure enclave on newer iPhones. Of course, if you don't make secure software, they will get exploited by security services.

In China it is not even theoretically possible because the gov't mandates backdoors and can easily shut down your company if you don't comply. You have way less recourse on rule of law.

comment 9y ago · link · parent

in a similar vein (though also completely different), here's the game of life in APL:

https://www.youtube.com/watch?v=a9xAKttWgP4

This is one of my favorite screencasts. I would have a hard time reproducing this thought process, so it feels much more like watching a speed run than a tutorial.

Would be interested in seeing the APL version of this blog post

comment 9y ago · link · parent

Feel like this is moving goalposts, especially given the context of this discussion (IT corps protecting their users from the government).

Think about the fact that the FBI had to actually get a warrant to even begin talking to Lavabit. They had to actually go through bureaucracy. It was not instantly handed over to them on request.

comment 9y ago · link · parent

Russian and China coercion are on a completely different scale, and we all know it. Especially after the Snowden backlash.

Imagine any major Chinese IT company pushing back against government requests like Dreamhost did. Even the biggest ones can't/won't. It helps that the government is a huge investor in most of them, of course.

"Chinese IT company rebuffs government demand for user information on its website". This headline does not exist.

comment 9y ago · link · parent

I get the sentiment, but it's possible that schools have in fact changed a bit since last year.

It's not a stretch to imagine the introduction of new math textbooks causing a change of a couple points, if the books are in fact better/worse.

comment 9y ago · link · parent

It seems like a no-brainer that any accounts on the main npm repos would _have_ to have 2FA enabled.

comment 9y ago · link · parent

I think you're both actually agreeing. The other coding toys are marketed towards boys ("aimed at boys").

That means that it's less likely for girls to get exposed to them overall, because media aimed at them is different, teacher's behavior towards them is different, even their own parents' behavior towards them is different.

I get that marketing "for girls" might give credence to the "for boys" marketing... but if you look at the jewelbots page, the only point that is explicitly "girls" is the fact that the kids in the pictures are girls.

Everything else has been brought in by us. The "jewel = girls" aspect, the "friendship bracelet = girls" aspect... though some other media is even more pointed at that. Bit mixed feelings about it. I feel like it's trying to operate within the weird gender divide that exists in our society

1
123124125
225