News for hackers. Stuff that matters.

ryenus

Re:Hurl 4.0.0 on Friday June 30, 2023 @08:06PM (#36544448)
Turned out that one was, as you said, a totally unrelated toy language, nothing like this hurl.dev one.
Re:The Awk Programming Language, Second Edition on Friday June 30, 2023 @05:10AM (#36532260)
Thanks! ICYMI: GoAWK [1] - A POSIX-compliant AWK interpreter written in Go, with CSV support.

[1]: https://github.com/benhoyt/goawk

Re:The Awk Programming Language, Second Edition on Friday June 30, 2023 @04:58AM (#36532207)
Ah good to know, thank you! Meanwhile I found it, it was the awk from Debian 10 that lacked `length(array)`, see the related nvm pr [1].

[1]: https://github.com/nvm-sh/nvm/pull/2917/

Re:The Awk Programming Language, Second Edition on Thursday June 29, 2023 @09:01PM (#36529159)
Awk is really great, for those knowing nvm [1], I used awk to make `nvm ls-remote` run more than 10 times faster [2] by replacing the related shell script with around 60 lines of awk script [3], and I was quite happy with the improvement.

It's not really a one-liner, neither something big, but one can take that as an example regarding that awk is really not just for one-liners.

Meanwhile having `--csv` support is really nice. I'd also like to see things like a builtin `length` function to be standard.

[1]: https://github.com/nvm-sh/nvm/ [2]: https://github.com/nvm-sh/nvm/pull/2827/ [3]: https://github.com/nvm-sh/nvm/blob/9a769630d7/nvm.sh#L1703-L...

Re: on Monday February 06, 2023 @07:53PM (#34686982)
Since you have Zhangye, you might also want to include Dunhuang (https://en.wikipedia.org/wiki/Dunhuang)?

And there's Mogao Caves (https://en.wikipedia.org/wiki/Mogao_Caves) which can't be missed.

Re:The fish shell is amazing on Thursday November 25, 2021 @08:23PM (#29346694)
Indeed, the following should work with upcoming fish 3.4:

    echo "pwd: $(pwd)"
See https://github.com/fish-shell/fish-shell/pull/8059
Re:Bash PS1 Generator on Thursday June 24, 2021 @11:48AM (#27619312)
Nowadays there's the `--show-current` option:

    git branch --show-current
See https://git-scm.com/docs/git-branch
Re:Show HN: Lite – A small, fast text editor on Sunday May 10, 2020 @11:14AM (#23133238)
Wow, thank you for mentioning EmEditor, I used to keep it as a must-have app when used Windows, preferred it over UltraEdit, EditPlus etc, good memories. Nowadays it's all vscode though.
Re:Which is better on Android: divide by 2 or shift by 1? on Friday April 24, 2020 @03:13PM (#22971834)

  -5/2 -> -2 (ok, rounds down)
Actually this is rounding up, to zero, as -2.5 < -2 < 0
Re:Homebrew 2.2 on Wednesday November 27, 2019 @12:01PM (#21649597)
TIL:

> brew cat sets bat as pager if HOMEBREW_BAT is set

And bat is really a nice alternative to cat.

> In fact, Gates is still kicking himself for taking his eyes off the ball and allowing Google to develop Android

And those in Google are probably also kicking themselves for taking their eyes off the ball and allowing Oracle to acquire Sun

Re:New in Chrome 73 on Wednesday March 13, 2019 @06:00AM (#19377207)
Finally:

* Dark mode is now supported on Mac, and Windows support is on the way.

Re:Upgrading GitHub from Rails 3.2 to 5.2 on Friday September 28, 2018 @07:34PM (#18097839)
Anyone knows which ruby runtime GitHub uses? Ruby MRI or JRuby etc.?
Re:Chrome 69: “www.” subdomain missing from URL on Thursday September 06, 2018 @10:26PM (#17931446)
The issue has only 46 comments at this moment because they have restricted the permission to comment, very nice. I thought there would be hundreds of, otherwise.

BTW, it sucks that existing comments cannot be voted or reacted with emojis, they should know this: https://bugs.chromium.org/p/monorail/issues/detail?id=4248

Re:Kitty – a fast, featureful, GPU based terminal emulator on Thursday September 06, 2018 @01:37AM (#17924103)
Have you managed to configure it to behave similar to iTerm 2 in terms of keyboard shortcuts? Would you please share your config?

One thing is, I don't get its layout, is it possible to create a vertical/horizontal split like what (shift+)cmd+d does in iTerm 2?

Re:Minimal Ubuntu – how small can it go? on Wednesday July 11, 2018 @03:02PM (#17509392)
The 2015 MBP is still available, though not that obviously: https://www.apple.com/macbook-pro/specs-2015/
Re:GitLab Web IDE on Friday June 15, 2018 @08:39PM (#17324991)
Sourcegraph used to be an online vscode, simply the coolest back then, but seems no more, they suddenly changed direction, possibly due to conflict of interests with Microsoft?
Re:Scala Native 0.3.7 on Thursday March 29, 2018 @01:56PM (#16709319)
And one can use Kotlin with Apache Spark, e.g.:

http://tomstechnicalblog.blogspot.hk/2016/11/using-kotlin-la...

The worst decision Google ever made (2011)

http://www.zdnet.com/article/the-worst-decision-google-ever-...

What about logical diagrams? anything for that?
Re:Fixing the MacBook Pro on Friday November 24, 2017 @11:15PM (#15774413)
Though not so straightforward to find, the 2015 model is still available for purchase:

https://www.apple.com/macbook-pro/specs-2015/

Re:Skype Vanishes from App Stores in China, Including Apple’s on Tuesday November 21, 2017 @09:54AM (#15748174)
This is still happening to this day.

They now redirect skype.com to skype.gmw.cn

Re:Luxon – A library for working with dates and times in JS on Saturday November 18, 2017 @08:09PM (#15731681)
So it's a better moment made by the moment team:

https://moment.github.io/luxon/docs/manual/faq/moment.html

Major differences:

  * Immutable
  * Months in Luxon are 1-indexed instead of 0-indexed like in Moment and the native Date type.
  * Localizations and time zones are implemented by the native Intl API (or a polyfill of it), instead of by the library itself.
  * Luxon has both a Duration type and an Interval type. The Interval type is like Twix.
  * Luxon lacks the relative time features of Moment and will until the required facilities are provided by the browser.
Re:Show HN: Javalin 1.0 – A Kotlin/Java web framework on Tuesday November 07, 2017 @12:45PM (#15645615)
Except Oracle lawyers wouldn't like Java being literally used as part of the name, though I hate to say this.

That's why javaslang was renamed to Vavr: https://github.com/vavr-io/vavr

Re:Modern terminal-based text editor on Friday September 29, 2017 @12:50AM (#15362767)
or maybe `limo`.
Re:Relicensing the GraphQL specification on Tuesday September 26, 2017 @08:00PM (#15343733)
So it's not about any lawsuit, but one (brought up by you etc.) that related to infringement because of being permitted to use (the GraphQL spec).

That seems to mean if there's a lawsuit with the concerned company, but not related to the permitted use of GraphQL spec, no termination then.

Not a lawyer, though.

Re:Learn GraphQL with GitHub on Saturday August 05, 2017 @04:54AM (#14934848)
To get started and understand how to build a GraphQL server, here's a nice video: Zero to GraphQL in 30 Minutes [0].

[0] https://www.youtube.com/watch?v=UBGzsb2UkeY

Older »