Hacker Newsnew | past | comments | ask | show | jobs | submit | pekim's commentslogin

I posted about this last week [1], but it didn't get any traction. Although I used a link to the release page rather than the blog announcement, so maybe that was why.

ho hum

[1] https://news.ycombinator.com/item?id=47138688


I noticed that Bubble Tea v2 [0] has been released. It looks like a great improvement all round over 1.x. The companion libraries lipgloss[1] and bubbles[2] have also had v2 releases.

[0] https://github.com/charmbracelet/bubbletea/releases/tag/v2.0... [1] https://github.com/charmbracelet/lipgloss/releases/tag/v2.0.... [2] https://github.com/charmbracelet/bubbles/releases/tag/v2.0.0


Looking at https://github.com/stepandel/chroma-explorer/blob/master/pac... it looks like it's using Electron.


As soon as I saw the scrolling "made by henry (from online)." at the bottom I thought "marquee" tag. Sure enough when I inspected the DOM it does use one.


Marquee is the greatest html tag of all.


> Where I actually struggled with what's expected is Day 11.

Just the lines from the files are wanted, not the files names. It took me a little while to cotton on to that.

Semi-spoiler follows.

So you need to use the appropriate flag with grep to suppress the file names.


Inserting elements in to a slice can be done quite easily since the introduction of the slices package to the standard library.

https://pkg.go.dev/slices#Insert


You shouldn’t need a library to do this simple operation.

I’m guessing the go language design went too far into “simplicity” at the expense of reasonableness.

For example, we can make a “simpler” language by not supporting multiplication, just use addition and write your own!


The operation is simple in concept, but can be costly from a compute standpoint when n is large. Multiplication has predicable performance. Insert does not. It being a function indicates that it is doing a lot of things and thus offers pause to make sure that the operation is acceptably within your operational bounds.

It could have been a builtin function, I suppose, but why not place it in the standard library? It's not a foundational operation. If you look at the implementation, you'll notice it simply rolls up several foundation operations into one function. That is exactly the kind of thing you'd expect to find in a standard library.


I'm in the UK too. So I read the article courtesy of archive.is.

https://archive.is/X33oQ


Darts might not be considered a sport, but the British Darts Organisation [1] and the Professional Darts Corporation [2] co-existed (somewhat acrimoniously) for nearly 30 years.

[1] https://en.wikipedia.org/wiki/British_Darts_Organisation (BDO)

[2] https://en.wikipedia.org/wiki/Professional_Darts_Corporation (PDC)


> and a fingerprint sensor to identify who’s using the toilet

So it sounds like you would only need one camera for multiple people using the same toilet.


thanks i missed it. eseentially you have to put your finger on a shared device in the bathroom everything time you use the loo.


You already do that assuming that you are flushing.


Touche


So if I'm understanding it correctly, it applies an xor operation on the pairs of cells. For example, click column A then column B. For each of the pairs of cells in the two columns, it performs B = A xor B.


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

Search: