Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jolmg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
53 ms
·
841.
▲
by
jolmg
5y ago
I don't know what the design goals of RISC-V were, but I would guess performance is not the key goal or at least not the only goal. It makes more sense that ease of implementation is a more important goal, if they want to make adoption
842.
▲
by
jolmg
5y ago
I don't even see the issue. RISC-V is supposed to be a RISC-type ISA. It's in the very name. That it takes more instructions when compared to a CISC-type ISA like x86 is completely normal. https://en.wikipedia.org/
843.
▲
by
jolmg
5y ago
I find after withstanding the hunger at a certain time of day, the hunger eventually subsides on its own then by the same time the next day I won't feel hungry again. It's weird. If I only eat one meal one day, I find I don't
844.
▲
by
jolmg
5y ago
> But that's not what's being discussed. "That's stupid" is referring to something being stupid, not someone. What I meant is that people don't only ever say you're stupid by super-directly saying "
845.
▲
by
jolmg
5y ago
> without the person making the leap on their own. It only says how insecure someone is to assume that. Not necessarily. There are social environments where things aren't said directly, but rather communicated through choice of word
846.
▲
by
jolmg
5y ago
> Am i missing anything ? > sender.message(receiver, params) It's the receiver that determines what messages they can understand, and the sender itself rarely has anything to do with the message apart from sending it. It doesn&#x
847.
▲
by
jolmg
5y ago
> A pain point in for loops is getting that right, e.g. there isn’t a good way to iterate over files with spaces in them using a for loop If those files came as arguments, you can use a for-loop as long as they're kept in an array:
848.
▲
by
jolmg
5y ago
Yup. Nearly everything has tradeoffs. BTW, the problem I mentioned earlier can be avoided by using `< <()`: $ x=1 $ seq 5 | while read n; do (( x++ )); done $ echo $x 1 $ while read n; do (( x++ )); done < <(seq 5)
849.
▲
by
jolmg
5y ago
> I've always had trouble getting `for` loops to work predictably, so my common loop pattern is this: The problem with the pipe-while-read pattern is that you can't modify variables in the loop, since it runs in a subshell.
850.
▲
by
jolmg
5y ago
> Basically I'd be useless without the internet. The coding tools themselves, all the examples of how to use them, and all the actual knowledge about how everything works is on there. I know it's sometimes easier to google part
851.
▲
by
jolmg
5y ago
> I'm just as tired of "X isn't dead" posts that take the phrase too literally. I think the main irritation from the side that's tired of premature "X is dead" posts is that one feels that voicing such
852.
▲
by
jolmg
5y ago
That's good! I didn't think to use the `r` and `w` commands. There's only the problem that because of `-n`, it doesn't output anything.
853.
▲
by
jolmg
5y ago
> Heres a solution that uses only sh and portable sed. No awk. No wc. No, it isn't! :) The challenge was specifically about joining the months of `cal -y` into a single column with sed. It's about the challenge of working with
854.
▲
by
jolmg
5y ago
> Maybe if Stallman or some early GNU participant had championed APL we'd all be either using APL or constantly excusing ourselves. I think the major issue is that APL seems to require more than ASCII to work it.
855.
▲
by
jolmg
5y ago
Indeed, there are improvements that could be made. I took the easy way not only by using GNU extensions, but also by calling sed multiple times instead of just once, and I even called awk at the end, though that was just because that bit di
856.
▲
by
jolmg
5y ago
> Ruby and Perl have awk modes Yes, but not Python. azalemeth was wondering if Python could be more terse than sed for this type of work. I think Python tends to be the most verbose among all languages discussed for text handling. > T
857.
▲
by
jolmg
5y ago
Maybe I'm doing something wrong, but passing it "3 * 4 + 5 * 6" gives me 102 instead of 42.
858.
▲
by
jolmg
5y ago
That's truly something! I feel like I can a lot from that!
859.
▲
by
jolmg
5y ago
Thanks! Alright. I haven't looked much into RSS/Atom yet, but I'll try to add it by next week. That should ease my feeling for a need of a schedule. I was just wondering if there were RSS/Atom users that would use it.
860.
▲
by
jolmg
5y ago
> org-mode blog! How do you like it? I've just gotten started! I think it's comfortable in the sense that I won't need to copy and paste stuff to and from the terminal and can just code from the same file and see how the r
861.
▲
by
jolmg
5y ago
Thank you for the kind words! :)
862.
▲
by
jolmg
5y ago
> This is super cool--I've wanted something notebook-like for blog posts in the past, and I had no clue it was possible in org-mode! Thanks! You can access the org file by changing the URL extension from .html to .org. Maybe I shoul
863.
▲
by
jolmg
5y ago
Another way to make it more challenging would be to do everything in a single `sed` call. Maybe it's for that kind of script that features like `D`'s and `P`'s "up to the first newline" detail become useful.
864.
▲
by
jolmg
5y ago
It was even easier to just count with my finger. :) The point was a sed challenge. Challenges are fun sometimes. It was also a good exercise for doing things with sed. There are times when sed is the most terse way to shape text to how you
865.
▲
Sed challenge: join cal -y months into a single column
(jol.dev)
110 points
by
jolmg
5y ago
|
66 comments
866.
▲
by
jolmg
5y ago
You remind me of a similar story, only failures would be a couple of times a year because of the positioning of the sun: https://news.ycombinator.com/item?id=28688090 The first reply to that has a story that seems similar t
867.
▲
by
jolmg
5y ago
Yup. Same with shells. Sigils on variables are so we don't need to quote every argument/option on every command. And we don't want to quote our strings in the shell because different to other programming languages, shells are
868.
▲
by
jolmg
5y ago
Not that not having it makes either of them any less powerful. If you descend to an inner context, you can refer to the parent/ancestor via a variable you can set before-hand.
869.
▲
by
jolmg
5y ago
What do you mean? jq can modify data: $ jq '.foo += 1' <<< '{"foo": 2}' { "foo": 3 }
870.
▲
by
jolmg
5y ago
> any cli browser do you guys recommend? When I want a cli browser, I typically use elinks. I like its mouse support and how it renders pages. Regarding vim keybindings, taking a look at the manual right now, I see that the keybindings a
More ›