Better HN
topnewbestaskshowjobs
Log inSign up

kortex

8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions

Submissions

comment 5y ago · link · parent

That's just not possible with python's computational model. That works for "from future import print" cause that's just an additional function.

str is too deeply embedded and used in too many dynamic and unique ways for that approach to work without doing some really ugly or nonperformant or community-fracturing things.

comment 5y ago · link · parent

> Their point is not that Python3 should not have broken backwards compatibility, it's that Python 3 should not have been entirely incompatible with Python 2.

No, my point is precisely that py2 and 3 are not compatible. Even with the backports, py2 and 3 are not fully compatible. Hence the "py23" or "six" dialect, which is the subset of 2 and 3 that overlap, with some shims to facilitate it.

Py2 and Py3 string apis are not compatible. They cannot be made compatible. They can never be compatible. There's no "from __future__" that could make them compatible without a stupendous amount of work.

Not to be pretentious, but I'm developing the opinion that anyone who thinks that the Python team could have just shimmed their way between 2 and 3, does not really understand the Python compute model.

Google literally invented a py2 to go transpiler (grumpy) to avoid converting. Do you think for a second if there was a way to just "from future" their way to a compatible str object, they wouldn't have taken that route?

comment 5y ago · link · parent

Except py3 needed to be a breaking change, because unicode handling. It doesn't matter if the API rearranging was delayed and the only change 2->3 was string/bytes handling, it still would have taken a decade.

What's the alternative? Deprecate warning old-style string handling and slowly nudge it out? Great, that's not actually decideable, since you need to know how a str is being used.

str are at the very heart of python. This would be a gargantuan task just to write the linter.

comment 5y ago · link · parent

Do you mean vendoring, not censoring?

Either way, this is a terrible way to do it. I've lived it. It results in libraries that don't work unless you freeze to exact git hashes of dependencies and never evolve because it's too painful.

comment 5y ago · link · parent

Are you talking about the system where you put buckets above a rain gutter which has a float valve to set the level? E.g.

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

That's actually quite clever! Though I'm not sure how they avoid the gutters from turning into algae blooming, mosquito-breeding cesspools. :p

Edit: Oh I guess you can just cover the gutter in plastic and ensure there is enough water throughput to stay fairly fresh: https://permaculturefoodforest.wordpress.com/2016/04/14/rain...

comment 5y ago · link · parent

I've been following them (for quite some time actually) and I admire their vision, but from what I've observed, they have run out of steam in the past few years.

Also their approach is great if you have a metal shop and lots of raw materials and components ready to go, but for their goal of helping mechanized developing countries, I think it falls flat. The first rule of pricing hardware is economy of scale wins. Being able to fabricobble a farm tractor from a Toyota pickup is way more valuable than building one from scratch using steel box beams.

I think their approach would be better served by creating an "API standard" for mechanical interfaces, like an ISO standard of sorts, so you could fabricobble your prime mover, your bucket loader, your hydraulics, from whatever you happen to have, and be able to swap out with anyone else's peripheral. Like the IDDS, but more down to Earth :) :

https://en.wikipedia.org/wiki/International_Docking_System_S...

comment 5y ago · link · parent

Neat, and promising, though not the one I was thinking of.

I think it might have been this one, Acorn by Twisted Fields:

https://community.twistedfields.com/t/introducing-acorn-a-pr...

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

comment 5y ago · link · parent

Not the worst idea, though IIRC that style of robot needs a fair amount of tension in the wires in order to minimize droop.

comment 5y ago · link · parent

That's exactly what I have and I'm telling you, it's still impractical. One, my greenhouse is a 24x13' footprint (which is pretty much the minimum useable with for a walk-in), with 3 bed rows 16' long, 2 or 4' wide. So I'd need 3 robot setups. Beds are long and skinny to facilitate human ergonomics. The shown examples are way too wide for raised beds, unless they are the walk-on type. So I'd still benefit from a robot which could straddle the bed and be easy to move from one bed to another.

comment 5y ago · link · parent

When you start off playing Stardew Valley but end up playing Factorio/Satisfactory.

comment 5y ago · link · parent

Brilliant take. Especially if you use some sort of roller-coaster-tire style mechanism vs linear ways, which just aren't going to stay aligned.

It would need a position and feedback system outside of the current "servo and home position" method, because even with closed loop motors, the distance traversed isn't exact. We need a cheap, easy way to get accurate-ish absolute position (1-3cm), maybe acoustics and phase-based?

comment 5y ago · link · parent

I've built robots. I've built greenhouses. I like software and the occasional bit of farming. Thirs looks cute and fun, and I hope they iterate, but it's not really solving the right problems, and introduces its own.

1 - there are no straight lines on a farm. Maybe in a hydro setup built on concrete slab, in which case, why robot?

2 - needs a way to cover more ground. If it's not able to travel linearly indefinitely in one direction along a bed, there's no way to scale.

3 - grit. Precision CnC mechanisms and dirt do not mix. You can't keep farm things clean (unless hydro, and even then, things get wet and caked with fertilizer salt)

Ditch the linear ways for something like bike tires. There's an open source solar farm robot which rolls around weeding (can't find at the moment, maybe was a video). Not limited by a box. They need robust mechanisms which can stand up to farm abuse and are easy to service, grease, and replace (unless you hermetically seal the components, which is harder than it sounds).

Weeds are actually pretty easy to manage.

If someone wants to make an impact in the farm tech space, come up with a cheaper alternative for scooping and dumping dirt. A ride-on tractor can be had used for $500-800. But as soon as you start talking loaders, it's $2-3000 used, and tens of thousands for new. Also the smallest tend to be a 4 foot wide bucket and a few hundred pounds lift. I want something half or a quarter of that. Able to scoop 50 lbs of dirt, repeatedly, and dig holes/trenches. That would have a massive impact in agrarian communities around the world.

comment 5y ago · link · parent

It's not really about the cost. We are working on a greenhouse with raised beds. Between parts, tools, and piles of topsoil, I think we are $2-3k in (upstate NY). It was never gonna break even. It's a fun project, and it gives you unbelievable freshness and quality.

Robot might help in a greenhouse setting but outdoors it's just gonna get mudded up and get fine, abrasive clay dust in everything. Needs to be way more ruggedized.

comment 5y ago · link · parent

If people were picketing me that intensely, I'd do some serious soul-searching of myself, my coworkers and my reporting structure.

If programmers were resulting in deaths in my community, I'd be picketting right with them with "I'm a programmer. Please hold me accountable. End qualified immunity for programmers."

assert great_power == great_resposibility

Etc

comment 5y ago · link · parent

Police departments increasingly utilize military gear and tactics. I wish they would also "take" the UCMJ, rules of engagement, and Geneva conventions.

comment 5y ago · link · parent

Wow, I envy you. We don't get a lot of choice in Upstate NY. You're lucky if you even get 2 candidates for a lot of the smaller races.

I'm probably over-generalizing but I still think this disparity is a result of low/med density vs high density like NYC. You're always gonna have more choices in high density areas, and I'm definitely in favor of more granular signals whenever possible.

I'd love to see an IRV where you don't have to obey any strict ordering rules (which I guess is like score voting where the max score is the number of candidates) which I guess might be a thing?

comment 5y ago · link · parent

> You're describing a UX problem which has UX solutions. It's not even remotely a justification for selecting a democratic procedure to express the will of the people.

Agreed but that's far from my only gripe with FPTP and IRV.

comment 5y ago · link · parent

IRV has a non-complicate-to-explain problem: you can screw up the ballot and invalidate your vote.

> Unlike many single-winner methods, instant-runoff cannot accept equal rankings, and must discard ballots with multiple first-preferred remaining alternatives: such ballots would be equivalent to casting multiple ballots in a plurality election

With all-the hubbub on the last election about vote validity, and hanging chads before that, the last thing we need is screw-up-able ballots.

IMHO we should not even consider any methods in which you can violate invariants on a paper ballot. That rules out FPTP, IRV, and any others where the user with pen-and-paper can enter an invalid state.

Err, I guess that rules out 321, which is my new favorite. Simple fix: just count multi Bad/Ok/Good entries toward that total. In the first round, you only look at "good" scores, ignoring ok/bad. Then in the bad round, same thing. This ensures a) you can't produce a bad ballot b) ballot counts stay orthogonal for each category c) multi-entries kinda average out.

E2: well I guess you can manage to screw up ANY style of paper ballot and violate some invariant. I guess it matters the difficulty of screwing it up and whether it's recoverable.

comment 5y ago · link · parent

Excellent critique of ratings based system. I think this is the biggest problem with multi-point (more than 3 values for score) STAR voting. What constitutes "5 star"? What about 0/blank vs 1 star?

Framing is important, and I think STAR would be most optimal with good ol' Likert scale (five or seven point) rather than 0-N stars. But I think even simpler is the "3-point Likert" behavior of V321: approve, disapprove, and "meh, ok."

I don't like how IRV forces me to rank candidates I may know little to nothing about (e.g. downballot randos not on "my team"). I don't really care if Kick Puppies Party is above or below Trip Grandparents Party.

comment 5y ago · link · parent

Huh, neat. What's a "fox" in this context? I tried searching "qt fox" and got some, ahem, less than salient results.

comment 5y ago · link · parent

I've been a proponent of STAR for some time, but today I'm happy to learn about 321. It sounds even easier to explain and implement than STAR (though approval is likely the method with the least friction using existing equipment).

I really don't see the appeal of IRV, other than momentum. It's harder to implement. It's not really intuitive why you have to rank them. (I belive) it has higher chance of screwing up ballots (e.g. Forgot to rank a candidate). And I don't like how it forces you to split hairs on two equally liked candidates. Minimizing mental friction is important when we struggle to get high voter turnout as-is.

I think 321 most closely matches the political climate in America. People tend to like a candidate, hate them, or "eh, they're fine."

Also, not totally sure (maybe someone can chime in), but I think 321 is "stateless" or "commutative" in that the counts of Goods, Oks, and Bads are independent. With any runoff methods, each ballot has a "state", because after a knockout, you need to apply the runoff votes based on other information on that ballot. This makes it hard to compose ballots, e.g. for our goofy ass electoral college system. With 321, (I think) you can decompose each "channel" total for each candidate, and aggregate them at a higher level.

comment 5y ago · link · parent

The solution is simple: ban FPTP and give regions X years to come up with a replacement. We can have one big natural experiment on which alternative method is best.

One thing about the US for example, states get a lot of latitude on exactly how to conduct elections.

comment 5y ago · link · parent

My immediate thought on reading the first paragraph is, "this is like Time Cube if it actually made complete sense under the word salad." It's really, honestly rather obnoxiously, obtuse, but I get what they are getting at.

It feels like when academic ML papers use the abstract to try to boozle and astound the reader with tons of jargon, because we all know a paper wins more Academia Points (TM) the more they can make other smart people feel dumb.

comment 5y ago · link · parent

Hm, Jvm also gives access to Kotlin and Scala, I'll definitely have to look into it.

Qt development can be excellent or nightmarish, sometimes both. I don't know enough to know why the disparity but I've been adjacent to teams that love qt and ones that loathe it. I'm guessing a big aspect is state management; qt predates the reactive revolution, and IIRC is prone (as is any gui) to callback hell.

comment 5y ago · link · parent

So what do we do about it? Even if Electron doesn't give feature parity across OSes, it still has some other huge wins. It allows you to use "webdev" talent to build guis, which are (I presume) easier to hire. They can use their favorite frameworks. It seems like SPA-esque-apps have some agility in development over other native approaches. It makes updates, CI/CD, and testing easier.

Even if not prioritizing cross-platform, Electron has some serious appeal.

What are my alternatives? Qt? Gtk? Native libraries?

comment 5y ago · link · parent

My understanding is that LIDAR is diminished on the aspect of not just "not needed," but also potentially exacerbating local minima under good (e.g. fair weather) conditions.

Having LIDAR means you can rely on LIDAR, which means you need the LIDAR to be 100% reliable. I've read some companies claiming their lidar works through rain and snow but I haven't seen actual renders of it yet to judge for myself.

No lidar acts as a forcing function for Tesla to get their vision system that much more reliable. I think this will ultimately result in a better vision system than the competitors, and I believe that (somewhat paradoxically) this will result in an overall better, safer, and more reliable system, when it comes to the 20% long tail.

Lidar+vision will probably dominate in fair weather driving. I'm skeptical it's of much benefit in bad weather, and that long tail is the hard part.

comment 5y ago · link · parent

Re: senses - have you ever played a driving sim? You can drive just fine with vision without tactile.

Sirens are primarily a means to get you to look in a direction. 360° cameras can notice the emergency vehicle as soon as it's visually relevant. And if they decide they need an audio siren detector, that's like, practically intern level signals detection at this point. Hardly a dealbreaker.

100% hands-down would pick autonomous car vs airplane. Flying a plane isn't just moving the aluminum bird through 3 space and periodically taking off or landing.

Autonomous aircraft don't exist because a huge amount of the ritual of flight is before and after the captain is even on the plane, let alone flying. There is a tremendous amount that the pilot and copilot go through, on the ground, before taxi, after liftoff. It's way, way more involved and way more generally intelligent. We can design AI to take off, path to a destination, and land. Those 3 things are the easiest parts of flying, yet do not comprise the act of flying a 2-seater, let alone an airliner.

comment 5y ago · link · parent

> And, in fact, quite insulting to the intelligence of even the most casual ML engineers.

Exactly, casual ML engineers. The issue of plateauing tends to occur because there is no more novelty to be had in the data. What mega-experiments like GPT and similar have shown us is that actually you can keep adding novel data and keep improving the model. Kinda inelegant, yet effective. The problem is, most institutions can't add more novelty beyond a certain scale, since that usually means shoveling more money at data storage and compute, on top of the novelty collection.

Tesla merely has to open the money tap to get more of both compute and storage, and let the real-time data flow in.

comment 5y ago · link · parent

If you have one piece of rotten meat in a perfect stew, you still have a disgusting dish. Good sensor fused with garbage in is still garbage in. That was one of the major points of the talk - the vision-only system is more accurate than the one with other modalities thrown in, even though the latter has more data. We intuit that the fusion network should just learn to ignore the bad sensor when it's unreliable, but this rarely happens in practice.

If anything, knowing when to reliably ignore a sensor modality is the kind of intuition more associated with general AI.

A similar paradox occurs when trying to fuse multispectral imagery. You'd think early fusion of RGB and IR would be better since it gives the higher-resolution filters access to more data, but it does worse than late fusion. My understanding is that late fusion forces the network to "work harder" to solve object detection using IR only, and then once you've wrung what you can out, then you fuse with RGB detections.

Since radar is "one pixel" there's essentially only one object detector possible: object or nothing. If yes-object, fusion tries really hard to make sense of the RGB filters to figure out what partial detection looks like an object, which is almost always a false positive.

comment 5y ago · link · parent

Or is it? One thing JS and C have in common is a minimal core, kinda loosely defined, relatively easy to implement, that nonetheless lets you create powerful abstractions. I don't think it's a coincidence. I think anything more sophisticated and "well-built" ironically would have seen less initial traction, and lost first-mover advantage.

That JS wasn't a Lisp is kind of a pity, though. But again, Lisps have been around longer than almost any other language yet are still comparatively obscure, which tells me something inhibits their broader adoption.

1
545556
85