Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bArray
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
901.
▲
by
bArray
4y ago
guest:rootpc ~ $ touch welcome.htm You can't touch this
902.
▲
by
bArray
4y ago
A related interesting problem is superpermutations [1]. This is the same problem that an anonymous 4chan poster helped bring some light to lower bounds on shortest superpatterns [2]. The Google group is worth a shout for their efforts [3].
903.
▲
by
bArray
4y ago
> 4. Many school problems are caused by disruptive children. > Disruptive children are caused by parents who frankly just don’t give a shit. Throwing more money into schools won’t ever fix this problem. Some. Most children I believe r
904.
▲
by
bArray
4y ago
If everybody sailed their parcels across the Sea, we'd avoid 4.5% of global emissions [1]. [1] https://www.theguardian.com/environment/2008/feb/13/climatec...
905.
▲
by
bArray
4y ago
I think this will be the way towards general intelligence, multiple decentralized 'brains' working together. For example, you may have something that processes vision, something that does task planning, something that does motion
906.
▲
by
bArray
4y ago
As @pseudobry mentions: 'the book uses GDP as a "human welfare" metric'. I don't think anybody here (even the author of the book presumably) is suggesting that they are cause and effect, but they do appear to be cor
907.
▲
by
bArray
4y ago
As others have commented, $14.5 trillion USD (even with inflation) is nothing compared to the US's current outgoings. What I _never_ see costed is the other side - what negative cost will the climate policies have on GDP? I imagine tha
908.
▲
by
bArray
4y ago
Thank you! This is really awesome! I'm trying to figure out if the Ladybird version tracks the SerenityOS version: https://github.com/SerenityOS/serenity/tree/master/Userland/...
909.
▲
by
bArray
4y ago
It's a shame it didn't get more eyes at time, this is super cool!
910.
▲
by
bArray
4y ago
> The real problem is that nearly all website render terribly. It just can't keep up with the complexity that it the modern web. It's a real shame. I was thinking since quite a while now to write a wrapper around the Serenity O
911.
▲
by
bArray
4y ago
Hence why I wrote "For an ultra simple hash table". I think that for C that doesn't natively have such a data structure, a couple of lines to introduce such a structure really isn't too bad.
912.
▲
by
bArray
4y ago
Key collisions are of course a problem. This is a quick and dirty implementation. If you care about checking for collisions, you could instead have: typedef struct{ char* k; char* v; } KV; int L = <table length>; //
913.
▲
by
bArray
4y ago
> I genuinely applaud any file format that can be diffed, but skidl seems like an absolutely painful way to develop a circuit - [..] It depends what your background is. For example, to wire up a header to an ATmega328, I wrote this:
914.
▲
by
bArray
4y ago
Sure, some parts are obviously a manual process and hard to automate. But this is about automating the parts than can be automated. It would be like suggesting that there is no point having LaTeX perform typesetting because the research tak
915.
▲
by
bArray
4y ago
> I'm definitely curious. I'll see what I can do to write it up. > As a software guy who occasionally does a test or automation fixture, I find the workflow of most EDAs a bit strange. It seems to actively discourage reuse.
916.
▲
by
bArray
4y ago
> What kind of boards are you making? Boards with power circuits and micro-controllers. I'm not sure I would trust the routing software when it comes to a high-speed bus or radio just yet. > There was no easy way to combine schem
917.
▲
by
bArray
4y ago
You would of course check whether there is a collision if you care. You would size it such that a collision is low probability though.
918.
▲
by
bArray
4y ago
> This doesn't work because you don't know who allocated that memory. I obviously haven't fully fleshed it out (I'm not writing an RFC here), but address re-use would be a consideration as you mention. > You only &
919.
▲
by
bArray
4y ago
For an ultra simple hash table, you just need a few things (the following is from my head). First is a 'reasonable' hash function (although with a few more lines you can do better [1]): unsigned int H(char* s){ int h; for(h
920.
▲
by
bArray
4y ago
The best thing to happen to KiCad was skidl [1] paired with freerouting [2]. You can spin a board in so little time it's insane. In the future I will be looking to automate even the parts placement too. P.S. If there is interest I will
921.
▲
by
bArray
4y ago
> Oh, I remember when these were popular for dot-com who just needed to get to the next round. One of the best skills to learn is when to stop throwing good resources after bad. Sure, maybe you need just a little more to get over the fin
922.
▲
by
bArray
4y ago
I think we are typically not as good at spotting good code as we think we are. For example, I inherited a large code base I while back and thought the classic "I can do better than this". After a few hours of hacking together a de
923.
▲
by
bArray
4y ago
> is_alloc: If you have to call is_alloc because you don't know and you get `true` back, you still don't know anything, it could be your memory is live or it could be something else was allocated over your stale pointer. The an
924.
▲
by
bArray
4y ago
I've always wondered why there isn't a `free_all()` function (that I'm aware of) for exactly ensuring that handles this. Or why you can't probe memory, with something like `is_alloc()` (is allocated). I usually define my
925.
▲
by
bArray
4y ago
I follow a Facebook page for Helium miners in the UK, because a family member was interested in getting involved and I said I would check it out first. I recommended against it (as I do with all crypto 'investments'). I observed i
926.
▲
by
bArray
4y ago
Appreciated, thanks.
927.
▲
by
bArray
4y ago
> A maintainer who "doesn't care" if their infrastructure is proprietary is not doing a good job. This isn't to mention also the issues regarding code ownership, where GitHub now trains their Co-Pilot AI on code under
928.
▲
by
bArray
4y ago
Thinking about it, this could be the way forwards. Memory offers several natural bottlenecks: 1. Memory size - Memory is somewhat costly (even now), with most entry laptops being stuck in the range of 8GB. 2. Access bandwidth - Getting a CP
929.
▲
by
bArray
4y ago
> If they kill off Pinephone, they'll have no smartphone that actually works and will piss off anyone who did a lot of work on software thinking this device is LTS as they promised. It's not to say they will kill it, but the Pi
930.
▲
by
bArray
4y ago
Checkout Apache's NuttX [1]. It's pretty impressive. [1] https://nuttx.apache.org/docs/latest/
More ›