HNHacker News
TopNewBestAskShowJobs

anfilt

3,307 karma · joined January 4, 2018

submissionscomments
anfilt··on Rural Americans are importing tiny Japanese pickup trucks
Also when it comes to pickups they have gotten so large. Even the ford maverick that ford has been making is still bigger than some 90's pickups. Even then "small" (if you can call that any more) are not really made any more.

Also don't get me started on how it's pretty hard to find a regular cab pickup. Like the ford maverick only comes in a 4 door configuration. Good luck carrying any standard length items like 4x8 sheet of ply wood or 8 ft lumber without the thing comically hanging out past the tail gate. What I found funny is on fords website you can see just that https://www.ford.com/trucks/maverick/. This is something you even see on larger trucks, and I am like wtf... It's a truck not a people hauler. You might be able to find some manufactures in their commercial/fleet line of vehicles that is at least sane when it comes to bed length.

Honestly, these days it's just better to get a cargo/work van unless you needing to haul dirt or other dirty things when looking for something new. It just seems like a small truck with a bed that make any sense are not made =(

anfilt··on Rural Americans are importing tiny Japanese pickup trucks
Technically anyone can pay the money to do this certification, but it's not cheap and also would require that you crash multiple cars for crash testing. Also if it fails in some aspect it's not like then you can ask the manufacture to change things.

Also these kei class vehicles would not do well on some of the highway speed collision tests.

Moreover these Kei Trucks still have to deal with the 25% chicken tax =(.

anfilt··on Rural Americans are importing tiny Japanese pickup trucks
I really do like the Kei Class of cars. Some people talking about the 25 year rule that does not apply if they imported as an off-road vhehicle and some things like governor installed.

However, in some states you can't use off-road vehicles on any roadways, and you would only be able to register such an import as off-road vheicle. Where as you could register 25+ year old on in quite a few states as a low speed vheicle which allows pretty much anything, but highway use.

anfilt··on NYPD Can Now Shoot GPS Trackers at Your Car
Police generally need a warrant to enter someones house too for the same reasons. However, if they chasing someone or there imminent danger they can enter someones house not search it, but it is only to deal with chasing the person or preventing the imminent threat.

The only reason I see police deploying this would be to avoid a high speed chase. Where that ends up constitutionally I don't know not a judge or lawyer, but it is one of those imminent danger/pursuit situations the courts have carved for other circumstances.

Now I will say if the police follow someone they are chasing into an other persons house and in that house see drugs. Under most circumstances that could not be used as evidence against the person that lived in the house since they did not have a warrant to search for drugs in the house. Their only legal reason to be there was to catch someone, so anything unrelated to that narrow purpose generally can't be used in court.

anfilt··on There’s no universal cordless power tool battery – why?
More like over 40 years ago for NiCD. Makita has been making cordless tools since 1978. Funnily they still sell those batteries for those old tools today.

But yea they did just announce a micro-wave.

anfilt··on There’s no universal cordless power tool battery – why?
Also Makita is one of the few truly independent power tool companies that is not some big conglomerate. (Still a big company though)

Also unlike some other tool manufactures they still sell all the models of batteries for all the cordless tools from the late 1970's to today. They were the first company to make cordless power tools too. I just find it crazy they still sell batteries for tools getting almost 50 years old.

-edit (added a link)- These batteries are brand new and will work in a makita tool made in 1978. https://www.makitatools.com/products/details/B7000-B-10

anfilt··on Johnson and Johnson reaches deal for $8.9B talc settlement
Thing is people have been using talcum powder for many many centuries. It's just ground up rock... The thing is when you gather something from nature there will be naturally contamination. The claim is about asbestos being in the talc powder which is also a rock...

The thing is asbestos can occur naturally in and dirt all around the world. There are some places even in the US where dust storms are more dangerous just because this fact. Here's just a short memo about naturally occurring asbestos. https://ncceh.ca/sites/default/files/Naturally_occurring_asb...

I am not saying J&J should get off scotch free if they knew some sources of talc they were using had high levels of asbestos. However, I am gonna say it's not surprising that there may be some contamination. Moreover that's just one form of natural occurring contamination. There other minerals that naturally occur that also are unwanted contaminates such as heavy metals and so forth. What matters is are the contaminants reasonable low for a naturally sourced product since it's not possible to have zero contamination.

anfilt··on Geolocation based on 3 word phrases
https://news.ycombinator.com/item?id=27020810

Also despite them having some how getting a patent for what is basically just look up tables there is probably prior art. https://patents.stackexchange.com/questions/13629/i-had-inve...

https://wiki.openstreetmap.org/wiki/What3words#Patent_Validi...

anfilt··on Namecheap is buying and holding onto domains you're interested in?
Well this is a shame to hear I guess time to switch registars.
anfilt··on Amazon starts flagging frequently returned products that you maybe shouldn’t buy
Like you shouldn’t be able to change a products category from clothing to electronics for instance in my opinion. Same with similar changes.

Small changes should be fine in my opinion also it’s not like it’s impossible to also determine the edit distance between two pieces of text.

Amazon could be doing a lot more here.

anfilt··on Bunki, a C Coroutine Library
So looking at that. I will say if you look at the API exposed in "libco.h" it's does not offer a ton options other than context switching

cothread_t co_active(void); cothread_t co_derive(void, unsigned int, void ()(void)); cothread_t co_create(unsigned int, void (*)(void)); void co_delete(cothread_t); void co_switch(cothread_t); int co_serializable(void);

Also it uses malloc to create the stacks. My library lets decide how wish to allocate stacks with. On linux I recommend mmap since you can create guard pages and such, but it's completely up to. Also I have functions that can let you call an other function on thread stack. This is handy to let you call a function that generates a deep call stack. Otherwise you have to mess around hopping back and forth between couroutines and the main thread context.

anfilt··on K-Hashv a Fast Vectorized Hash Function That Passes SMHasher (Updated)
I will also add it's a single header, so it's easy to add to most projects.
anfilt··on How big should a programming language be?
As big as C or only a tiny bit bigger.
anfilt··on The Unix process API is unreliable and unsafe (2021)
Well that is needed to support isolated address spaces. It might be possible to share some the of the page tables safely. Still copying page tables is a lot faster than copying many gigs of data around, but for most that don't have massive page tables this is pretty fast. You can also use things like MADV_HUGEPAGE to make the page tables smaller.

Now if this is a problem and the application does not need address space isolation. clone() with the CLONE_VM flag will get rid of this problem, and clone() is nice in the fact you can get more granularity/control. This control basically ranging between most of the continuum between thread and separate process depending on your needs.

anfilt··on The Unix process API is unreliable and unsafe (2021)
On linux fork is pretty fast since it's copy on write. Exec or anything similar is gonna be slower. For example you want to exec some program in the elf format. Well exec is likely to lead these things: One is likely got to load the file from non-volatile storage. Then parse the elf file and place each section in the correct place in memory, setup other memory maps, and stack ect.. Not just that though then run time linker probably has to run loading and linking each .so file, also patching code with the correct relocations as needed. Loading a new process is a lot more expensive where as fork can reuse a lot of that work since it's just a clone of the process at the point fork was called and was already done.
anfilt··on Anti-recruiter prompt injection attack in LinkedIn profile
lol if only it were that easy.
anfilt··on Suing to protect right of incarcerated people to receive physical mail
To me this is still somewhat involved with “digital” freedoms. That freedom being the right to opt out or to not use “digital” systems.

The same thing applies to in other instances for example the move to a more cashless society I think the right to use cash is still important for a litany of reasons.

That right to opt out is important especially if it is even more invasive than the analog/real world equivalent.

anfilt··on Bunki, a C Coroutine Library
Went to look to look for this library. Looks like the website for that project is gone: https://byuu.org/library/libco/

So unless there is an authoritative mirror somewhere I can't tell you.

anfilt··on Bunki, a C Coroutine Library
There are lots of things that happen when a program runs that a compiler is unaware of. A compilers don't run during runtime... So I am confused what you mean by mis-compilations.

As for runtime this is why people follow an ABI. Otherwise lots of things like dynamic linking ect... would not work.

anfilt··on Bunki, a C Coroutine Library
I will take a look at this if that's, if I need to save the fiber_data field from the TEB on windows easy enough to add.
anfilt··on Bunki, a C Coroutine Library
The example just shows some of the functions for the library being used. Mainly the storing and returning of values. As for the numbers like "(void*)0xcafe" it's casting the number 0xcafe (in hex) to a void*. Why those constants they just easy to read in hex since they happen to spell a word. They could be anything, depending on your application like a pointer to data or some important constant ect...
anfilt··on Bunki, a C Coroutine Library
Lol even better it since it is a stackful co-routine library. =)
anfilt··on Bunki, a C Coroutine Library
Thanks, I am definitely happy with the name.
anfilt··on Bunki, a C Coroutine Library
Anything in particular your curious about?

For a few similar things:

* It can Yield from anywhere

* You can push data on the stack when creating a co-routine

* It has a slot for local storage in the coroutine (the library you linked calls it user_data).

* It should be pretty light weight since it uses assembly and saves as little state as possible based off the calling the conventions.

There are differences though. One big difference is I do have functions that let you call functions that generate deep call stacks on the thread stack.

anfilt··on Bunki, a C Coroutine Library
No problem. If you have any questions feel free to ask.
anfilt··on White House backs bill that could give it power to ban TikTok nationwide
This is one reason I hate locked down hardware like iDevices, and the whole App store model. If there were not these central points of control such a thing would infeasible to implement. Banning a company like Apple from distributing an App on their app store effectively bans it.

Like you can't install any software on iPhone that has not been "blessed" (aka signed) by one Apple's private keys. Well unless you find an exploit to free the device from their control. What is so crazy about this is Apple does not even own the hardware after they sell it, but they won't let you disable signing in the boot ROM or at the OS level. If it were about security they would at least let you load your own signing keys. It's not though in my opinion it's about control. I even consider it a violation of property rights.

This is simply because if you own something you should be able have full enjoyment of your property without interference. Further, one major fundamental aspect of owning tangible property is the right of exclusion. The cryptographic system Apple has setup allows Apple to control the right of exclusion when it comes to deciding what software the CPU will and will not run. Apple is effectively reserving the right of exclusion regarding what CPU can execute via cryptography. Crucially, when something is sold legally this means all property rights are transferred to the buyer with few exceptions. One being copyright the original holder of the intangible property reserves/retains the right to copy/reproduce. Despite not legally having the right of exclusion Apple decides what can be excluded from running on other peoples hardware even after selling it.

The short and simple is I should be able to decide what to include or exclude from something I own. In this case, one must ask Apple first which shows how your right of exclusion has been infringed.

This also applies to other devices not just iDevices, but anything with locked down boot ROMs/loaders, but Apple is well known for their "walled garden" (I don't like this term nothing garden like about property right violations).

As for tik tok it's an easy target for such government overreach.

anfilt··on Mozilla solves the Manifest V3 puzzle to save ad blockers
Just bring back XUL based extensions. I miss how customizable firefox was during those days.
anfilt··on Why do we create modern desktop GUI apps using HTML/CSS/JavaScript? (2022)
Mainly wanting to save time/costs of having to create a UI for each platform.

Also sometimes just laziness.

Although electron sucks it wastes so much memory.

anfilt··on The Hundred-Year Programming Language
I agree for instance gcc's vector size attribute works just fine in C. For instance I could declare a type like this:

typedef uint32_t myVec __attribute__((vector_size(16)));

and then when using that type in C, gcc alot times will do a great job vectorizing without having to reach towards intrinsics when looking at the generated code.

Sure it's not standard C, but it still feel like C when using them. Even for things like shuffling it's still pretty logical to just treat it as a function for instance "__builtin_shuffle" that gcc provides to use on those vector types.

The semantics of C can handle such things, it's just not standardized if you get what I am saying. So I get what your saying about the PDP-11.

anfilt··on Astronomers discovered 1M new galaxies in 300 hours
Well we have only ever measured the round trip speed of light. Our current understanding of physics seems definitely imply the one way speed should be the same, but we have not been able measure it. If it some reason does turn out to be different then rate at which causality moves then depends on direction. https://en.wikipedia.org/wiki/One-way_speed_of_light
← PreviousPage 4 of 34Next →