Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nickcw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
421.
▲
by
nickcw
7y ago
> prior to 1.2, the Go linker was emitting a compressed line table, and the program would decompress it upon initialization at run-time. in Go 1.2, a decision was made to pre-expand the line table in the executable file into its final fo
422.
▲
by
nickcw
7y ago
A few years ago I got interested enough in this that I bought the book mentioned in the article "The Ultimate Challenge: The 3x + 1 Problem." If you want to see dead ends other people have gone down and read some actual results an
423.
▲
by
nickcw
7y ago
That looks very cool, I will give it a go! I particularly like this feature > Rendering of recordings in asciicast format made with asciinema I quite like there being an intermediate file like there is in asciinema that you can edit by
424.
▲
by
nickcw
7y ago
For gnu style long options you want: https://github.com/spf13/pflag It is a drop in replacement for the built in flag library. I ususally start out with the built in flag library and migrate to pflag when things get a
425.
▲
by
nickcw
7y ago
The errcheck linter is very popular for checking that you looked at every error return: https://github.com/kisielk/errcheck I use it in most of my open source projects.
426.
▲
by
nickcw
7y ago
I love my kindle, but I really miss one thing from paper books - the cover. When you have a paper book whenever you pick it up you see the title and the author and the cover image. I find I still remember these from books I read long ago.
427.
▲
Dyson has scrapped its electric car project
(bbc.co.uk)
2 points
by
nickcw
7y ago
|
0 comments
428.
▲
by
nickcw
7y ago
I don't think it is possible to order one for purchase at the moment; every time I've looked at the website in the last 3 weeks its been either "try again in 1 hour" or "out of stock".
429.
▲
by
nickcw
7y ago
Python uses Karatsuba multiplication for its long integers. This works very well for not too big long integers but when they get huge using the GMPy module is much quicker. If you want to see a practical demo of that when calculating pi see
430.
▲
by
nickcw
7y ago
Let me get out my back of the envelope for some quick and inaccurate calculations ;-) There are 10.3 kWh of energy in a litre of Jet A1 fuel. Let's assume (generously I think) that the process is about 50% efficient, so it takes ~20 kW
431.
▲
by
nickcw
7y ago
Interesting article... I wrote a lexer for python as part of gpython: https://github.com/go-python/gpython/blob/f100534592c96b7922... It is remarkably complex and has a huge amount of state including separate
432.
▲
Google Play Pass bundles 350 Android games and apps for $4.99 per month
(theverge.com)
17 points
by
nickcw
7y ago
|
3 comments
433.
▲
by
nickcw
7y ago
> 1. Environment variables can only be defined on steps, they can't be defined at a job level Actually you can define global environment variables with an extra step... here is how I do it. I was quite frustrated until I worked thi
434.
▲
'personal carbon sequestration' device uses algae to capture CO2
(fastcompany.com)
1 points
by
nickcw
7y ago
|
0 comments
435.
▲
by
nickcw
7y ago
chroot is a layer in the security onion. Like every other layer it adds security but isn't perfect. Security will never be 100%. If you want more security, then likely you want another layer in the onion.
436.
▲
by
nickcw
7y ago
Makes me think of this quote: I divide my officers into four groups. There are clever, diligent, stupid, and lazy officers. Usually two characteristics are combined. Some are clever and diligent -- their place is the General Staff. The next
437.
▲
by
nickcw
7y ago
Google make this point which I haven't seen in any of the arguments so far: > In particular, we are aware of how DNS can play an important role in ISP-provided family-safe content filtering. Lots of families with children use their
438.
▲
by
nickcw
7y ago
It occurred to me that, though verbose, this syntax leaves the door open for specialization of methods, eg func (m *Map(K, V)) Insert(key K, val V) bool func (m *Map(K string, V string)) Insert(key K, val V) bool func (m *Map(
439.
▲
by
nickcw
7y ago
To put the costs intro perspective, an 83 Amp Hour car battery (typically a small car might have a 40-60 AH battery and a large car >100 AH) holds 1 kWh (kilo watt hour). An 80AH battery can be had for about $100 on eBay. The article sta
440.
▲
by
nickcw
7y ago
This looks like a very interesting project to make a lightweight sftp server, though the dependency on an SQL db makes it a bit harder to install. Go has a really good set of crypto primitives, an excellent ssh implementation maintained by
441.
▲
Yaegi Is Another Elegant Go Interpreter
(github.com)
6 points
by
nickcw
7y ago
|
0 comments
442.
▲
by
nickcw
7y ago
> MySQL can't add TEXT type column without length specified Mysql does have a TEXT type with a max limit of 65536 chars (you can have MEDIUMTEXT or LONGTEXT if you want more). You don't supply a length when you use TEXT https:
443.
▲
by
nickcw
7y ago
ARM does support LPAE and I think the linux kernel does too for ARM: https://lwn.net/Articles/415190/ I've never seen it in use though!
444.
▲
by
nickcw
7y ago
Nice one - I'd love to hear more about this (rclone author!).
445.
▲
Android kicks off June's patch parade with fixes for five hijack holes
(theregister.co.uk)
2 points
by
nickcw
7y ago
|
0 comments
446.
▲
by
nickcw
7y ago
A very well written piece by Ian Lance Taylor. If you don't want to read it all, he summarizes it here: > In effect, then, the current state is what the blog post suggests at the very end: final decisions about the Go language are
447.
▲
by
nickcw
7y ago
I had a go at solving sudokos, but I found the experience tedious, mechanical and far too easy to make a mistake. In fact just the frustration inducing thing to tickle the first of the virtues of a programmer: "Laziness". I then
448.
▲
by
nickcw
7y ago
> I didn’t mention this because it doesn’t improve such a small program, but you can also try UPX and other executable compressors if you are working with a much larger application. I don't recommend this as it will increase the mem
449.
▲
by
nickcw
7y ago
This (it looks like to me) is an attempt to pull in the best bits of Dave Cheney's errors package (which I love) into the standard library: https://github.com/pkg/errors Standardising error unwrapping is a great i
450.
▲
Facebook anticipates an FTC privacy fine of up to $5B
(abcnews.go.com)
1 points
by
nickcw
7y ago
|
1 comments
More ›