Hacker News new | past | comments | ask | show | jobs | submit | throwaway889900's comments login

Liquidation auction sites, estate sales, the like. Govdeals or equivalent.

Sounds like you need an Alex Horne.


Just gotta pipe it through a granular synth afterwards


Sometimes a lambda is more readable. "lambda x : x if x else 1" is pretty understandable and doesn't need to be it's own separately defined function.

I should also note that development style also depends on tools, so if your IDE makes inline functions more readable in it's display, it's fine to use concisely defined lambdas.

Readablity is a personal preference thing at some point after all.


> "lambda x : x if x else 1"

I think what you're looking for is "x or 1"


My cleverest one-liners will block me when I come back to them unless I write a few paragraphs of explanation as well.


>> Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian Kernighan

https://github.com/dwmkerr/hacker-laws#kernighans-law


Ymmv. Know your language and how it treats such functions on the low level. It's probably fine for Javascript, it might be a disaster in C++ (indirectly).


At that point just call it Redwall Abbey!


But how many bytes are there in a word?


If you're on x86, the answer can be simultaneously 16, 32, and 64.


Don’t you mean 2,4, and 8?


Bits, bytes, whatever.


"Word" is an outdated concept we should try to get rid of.


You're right. To be consistent with bytes we should call it a snack.


Henceforth, it follows that a doublesnack is called a lunch. And a quadruplesnack a fourthmeal.


There's only one right answer:

Nybble - 4 bits

Byte - 8 bits

Snyack - 16 bits

Lyunch - 32 bits

Dynner - 64 bits


In the spirit of redefining the kilobyte, we should define byte as having a nice, metric 10 bits. An 8 bit thing is obviously a bibyte. Then power of 2 multiples of them can include kibibibytes, mebibibytes, gibibibytes, and so on for clarity.


ಠ_ಠ


And what about elevensies?

(Ok,. I guess there's a difference between bits and hob-bits)


This is incompatible with cultures where lunch is bigger than dinner.


or an f-word


It's very useful on hardware that is not an x86 CPU.


As an abstraction on the size of a CPU register, it really turned out to be more confusing than useful.


On RISC machines, it can be very useful to have the concept of "words," because that indicates things about how the computer loads and stores data, as well as the native instruction size. In DSPs and custom hardware, it can indicate the only available datatype.

The land of x86 goes to great pains to eliminate the concept of a word at a silicon cost.


Fortunately we have `register_t` these days.


Is it 32 or 64 bits on ARM64? Why not both?


ARM64 has a 32-bit word, even though the native pointer size and general register size is 64 bits. To access just the lower 32 bits of a register Xn you refer to it as Wn.


such as...?


Appeasing that attitude is what prevented Microsoft from migrating to LP64. Would have been an easier task if their 32-bit LONG type never existed, they stuck with DWORD, and told the RISC platforms to live with it.


How exactly ? How else do you suggest CPUs do addressing ?

Or are you suggesting to increase the size of a byte until it's the same size as a word, and merge both concepts ?


I'm saying the term "Word" abstracting the number of bytes a CPU can process in a single operation is an outdated concept. We don't really talk about word-sized values anymore. Instead we mostly explicit on the size of value in bits. Even the idea of a CPU having just one relevant word size is a bit outdated.


There are 4 bytes in word:

  const char word[] = {‘w’, ‘o’, ‘r’, ‘d’};
  assert(sizeof word == 4);


I've seen 6 8-bit characters/word (Burroughs large systems, they also support 8 6-bit characters/word)


The entire Redwall series! Man I'm hungry now... could go for a nice cordial and scone...


Don't you usually have to assemble those yourself? Like get a bunch of vendors to brand some generic items and put them in a bag?


It seems there are a few companies that handle that for you now, not sure if any are really worth it though.


Very simply, the income they generate from violating the law is more than the fines they will receive if those violations are brought up.


I got an amazon gift card because there was a promotion for $12.50 credit, and then with the prime card that's an extra $3 credit. So basically a free $15 for spending money on money I'll eventually spend anyways.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: