Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
geocar
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
511.
▲
by
geocar
4y ago
https://www.microsoft.com/en-us/research/wp-content/uploads/... It's a likely possibility.
512.
▲
by
geocar
4y ago
> A better metric for deciding where you should focus the most effort on code quality is not frequency of modification Frequency of modification is an excellent predictor though: https://www.microsoft.com/en-us/res
513.
▲
by
geocar
4y ago
> I would also include a probability of an bug being introduced while extending the code. The number of sprints you spend changing a bit of code might also be a metric worth tracking as well: https://www.microsoft.com/en-
514.
▲
by
geocar
4y ago
Because it starts out in English and does not say so right away, I think it is a good idea to point out that the article is a google-translate, and seeing it in English I get a different idea in places than when reading the Portuguese. For
515.
▲
by
geocar
4y ago
I have known for some time to open /proc/self/mem or use hugetblfs, then send the fd to another process to mmap() so I can share pages; I've made a similar API to the proposed by combining memfd and /proc/self&
516.
▲
by
geocar
4y ago
> It's really a shame when true commercial quality Open Source software exists out there, such as Blender. That might be because the Blender users banded together and bought Blender[1] (with the help of one of the authors IIRC) [1]:
517.
▲
by
geocar
4y ago
> write_and_flush_to_dev_tty(BEGIN_RED_TEXT),write_and_flush_to_stdout("word"),write_and_flush_to_dev_tty(END_RED_TEXT); This isn't guaranteed to be serialized: Someone trying to log the output of your application might t
518.
▲
by
geocar
4y ago
You should feel guilty! You sounded extremely entitled there. How do you feel when someone asks you -- goads you really, into working for "exposure" instead of your usual rates? It's more than a little insulting! If you wan
519.
▲
by
geocar
4y ago
> Readability quite subjective though > I'm not saying k is universally less readable. But my experiences tell me that for me it might be. I would not worry too much about this: Readability as we can make statements about the cod
520.
▲
by
geocar
4y ago
> certainly for me, it is not true in say Python or C# etc where I find less code can be significantly more difficult to read. Is it possible this is only a reflection of your experiences and not reality? Surely when you say this, some e
521.
▲
by
geocar
4y ago
> implied you're looping over all the elements of x, whereas if it was just function composition it would return a function taking an index. I think it's a mistake to make this assumption. In C, if you saw: f(g(x)); yo
522.
▲
by
geocar
4y ago
> Where was I saying the [array languages] should use [more accessible symbols]? I know you do not see these the same, but maybe that will help? > you can go on Google Translate and go from Chinese to English Yes yes. You can use arr
523.
▲
by
geocar
4y ago
> I guess it comes down to how ones brain is wired then. Your brain is not wired. You can learn new things, including this. > I've read and worked on enough super-terse code in other languages to feel confident in that. To know y
524.
▲
by
geocar
4y ago
> the sample code I've seen mostly reads as noise to me ... But I'm sure one could get the same computational result with a bit more approachable syntax. Chinese looks very strange to lots of people, but I think you should exp
525.
▲
by
geocar
4y ago
> why might they be interested? Because you get done faster. I have no doubt any experienced C programmer could beat a k solution in run-time performance, but the k programmer will always be done faster. > proponent give some exampl
526.
▲
by
geocar
4y ago
pax is POSIX: (: > f;echo "$((0$(pax 2>/dev/null -x ustar -wd -- f|dd 2> /dev/null bs=4 skip=34 count=3|tr -d '\0')))";rm -f f) which might be beneficial to remember if your file ser
527.
▲
by
geocar
5y ago
> the python example is a ton more readable to me. The python example is also wrong, as in it produces the wrong output: Maybe if you are only worried about your own consumption you can ignore all those poor souls running literally any o
528.
▲
by
geocar
5y ago
> The first two lines are pure overhead. In 200 bytes half of which is overhead. That's not a great start. > The last line is the equivalent of a shell script one liner It's slower and requires much much more typing, and any
529.
▲
by
geocar
5y ago
Maybe you want to consider a beefy desktop with a battery-backup and plugging it in someplace cold and setting up a laptop to remote into it. You can get a lot of bang for your buck in a desktop, and going lean on the laptop means you don&#
530.
▲
by
geocar
5y ago
I think if you're worried about what a judge and jury would think of something, you probably shouldn't do it. I'm not worried about firing someone for lying on their CV.
531.
▲
by
geocar
5y ago
> Edit: I think you're in the UK. I don't know much about employment law over there, but I gather the situation is actually better. I'm in Portugal actually, but I've lived in the UK and the US (I've actually wor
532.
▲
by
geocar
5y ago
Higher? How much higher? Higher than what? I haven't said what salaries I hire for. This doesn't sound very much like thinking to me.
533.
▲
by
geocar
5y ago
How do you mean?
534.
▲
by
geocar
5y ago
> I don't think you read that sentence correctly. Three things: > 1) Positive rights should not exist, because: 2) Positive rights cannot exist without violence and slavery Violence exists regardless of whether "positive rig
535.
▲
by
geocar
5y ago
> I think your solution is to watch and plan on firing many people within 30 days, which seems worse for everyone. Why did you add the word "many" where? I didn't use it. I can count on one hand the number of people who f
536.
▲
by
geocar
5y ago
I already have a `q`, and frankly it's useful to me, so this piece of software will never be called `q` on any of my systems. I suspect a lot of people have locked up all the single-letter aliases too, and I believe almost all of them
537.
▲
by
geocar
5y ago
> You don't need to take from others to be free. That is, in fact, the opposite of freedom. But irrelevant: Things have already taken from others and they want it back. > Equity is impossible without violence and restrictions on
538.
▲
by
geocar
5y ago
I agree it's a great interview question, but I would never ask anyone to spend three hours doing this for free. Someone comes to me and says they can program, and that's that. They have other employers and coworkers in their life,
539.
▲
by
geocar
5y ago
> positive rights should not exist That's like, your opinion man, and I don't know if you mean aspirationally, as in, there shouldn't be racist classist assholes out there so we shouldn't need positive rights to prote
540.
▲
by
geocar
5y ago
> There’s no inalienable right to live in a popular place you cannot afford. There's no right to anything that people don't stand together to say they have a right to. > Can you articulate an ethical argument for why it’s a
More ›