Readit News logoReadit News
viseztrance commented on Introduction to the A* Algorithm (2014)   redblobgames.com/pathfind... · Posted by u/djood
Animats · 4 years ago
A* is less useful when you're not omniscient, that is, testing if a cell is blocked has a sensing cost. I ran into this in a game application. To find out if a cell is obstructed, I have to do a ray cast at a few points in the cell, which uses resources. A* requires sensing a large number of cells to collect non-useful data, and if you have a big, mostly open space with some obstacles, like the real world, it does far too much sensing.

So I ended up with a variant on Pledge's approach to wall-following. Head toward the goal until an obstacle is detected. Then, start wall-following, but simultaneously in both left and right directions. When one of the wall-follower tests can head towards the goal, do that, and kill off the other wall-follower. So you alternate between heading towards the goal in open space, cheaply, and wall following.

Searching both left and right simultaneously avoids taking the long way round some obstacles.

viseztrance · 4 years ago
I've been working on a video game and actually followed the article to implement astar.

If you have an inaccessible node, astar will indeed scan everything. But to get around this I only had to add a limit to the number of frontier iterations which was just a conditional.

viseztrance commented on The /bin/true Command and Copyright (2009)   trillian.mit.edu/~jc/humo... · Posted by u/kmstout
cmeacham98 · 4 years ago
An empty script returns 0 by default, thus `touch /path/to/missing/library` is a sufficient (and shorter!) one-liner fix to this problem.
viseztrance · 4 years ago
I know, but you still have to make it executable, hence it's not as convenient.

And on top of this, an unlink is less error prone than a rm -f.

viseztrance commented on The /bin/true Command and Copyright (2009)   trillian.mit.edu/~jc/humo... · Posted by u/kmstout
jzwinck · 4 years ago
Instead of a symlink to true you could have made an empty script.
viseztrance · 4 years ago
Well the symlink command was also easier to share with others having the same issue, whereas a one liner that creates an executable script which returns 0 is less ideal.
viseztrance commented on The /bin/true Command and Copyright (2009)   trillian.mit.edu/~jc/humo... · Posted by u/kmstout
viseztrance · 4 years ago
> The /bin/true (or /usr/bin/true) command is now nearly obsolete, because most extant shells now have a builtin "true" command. But it's still useful occasionally, for various silly reasons [...]

This make it sound like this is useless, but I disagree. For example, recently I had some games crash because they couldn't find pulseaudio, and making a symlink from pulseaudio to /bin/true fixed my issue (and yes, they had sound). So there are certainly legitimate uses for it.

viseztrance commented on Aspartame and cancer – new evidence for causation   ncbi.nlm.nih.gov/pmc/arti... · Posted by u/pilingual
computerphage · 4 years ago
> Artificial sweeteners still make you crave sweets.

How do you know that this is true?

viseztrance · 4 years ago
I question the same thing, and would like to know how accurate it is.

Is there any peer reviewed literature that supports this?

viseztrance commented on GitHub’s engineering team has moved to Codespaces   github.blog/2021-08-11-gi... · Posted by u/todsacerdoti
viseztrance · 4 years ago
Somehow I can see some companies using this to spy on their employees and "measure" how productive they are, and how their timesheets reports match.
viseztrance commented on New EU Law Removes Digital Privacy   patrick-breyer.de/en/post... · Posted by u/zajio1am
VMG · 4 years ago
it makes total sense if you realize it is all about control
viseztrance · 4 years ago
Control for whom? Before gdpr the general stance in the industry was we never delete user data, just mark a field saying its deleted in the db and that's that. It's been a total shift.

And it's not just that, I've seen first hand that even internal communication about customers are treated with more care as they can legally request all their data.

viseztrance commented on Firefox 91   mozilla.org/en-US/firefox... · Posted by u/buran77
ddek · 4 years ago
No, the ability to disable proton was removed a while ago. Or maybe in this release. I'm on FF-developer, which is ahead a bit.
viseztrance · 4 years ago
For what is worth, I have disabled it in firefox 90 in about:config.
viseztrance commented on The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy   karl-voit.at/2021/07/23/e... · Posted by u/fipar
stouset · 4 years ago
> And it's not just the "big" things. When I want to sort a few lines in a region and immediately discover that I can just call "sort-lines", because of course I can, I know that I'm not going to bother waiting for some other editor to catch up in all those little things.

FWIW this is something most editors let you do trivially.

With VS Code, select the lines you want to sort, press Cmd-Shift-P to bring up fuzzy command search, type "sort", press enter. Your selected lines are sorted.

I think you might be surprised to find that all the major editors these days have most all of the little things you might want day-to-day covered. Of course the set of little things one cares about will differ from person to person and from the capabilities we've personally found the most use out of. It's hard to argue when that one thing you use every day isn't supported in some other editor, but the list of those is shrinking quicker than I suspect most people realize.

There are a lot of people contributing to these tools and that plus not having to reinvent every wheel from scratch (and maintain that code on top) means that modern editors can cut into the lead time advantage of something like Emacs quicker than you might otherwise think.

viseztrance · 4 years ago
I think you would still be surprised at how many things emacs can still do better like undo in region or even simple macros that find use even during simple text edits.

Though ultimately feature per feature, I don't think emacs looks all that great, but the difference is that you can actually use a lot of what it has to offer whereas it's difficult to do so in more modern editors (with fuzzy matching and all).

viseztrance commented on Technical debt is not debt; it’s not even technical   markgreville.ie/2021/07/2... · Posted by u/selphy1
viseztrance · 4 years ago
> Debt repayment has one vital characteristic: it is easy to understand

If it were this easy you wouldn't see so many people taking on so many unnecessary debts. Technical or otherwise.

u/viseztrance

KarmaCake day395August 21, 2012
About
Self taught hacker
View Original