HNHacker News
TopNewBestAskShowJobs

dana321

300 karma · joined October 25, 2018

submissionscomments
dana321··on Ask HN: How are you preparing for COVID-19 disruptions?
Extra Potatoes, milk and oil, boyo.. Thats about it.
dana321··on Bastion – Highly-available distributed fault-tolerant runtime
Runtime for what? Does it only run rust code?
dana321··on Cloudflare silently deleted my DNS records
That and recaptcha!
dana321··on Apple moving to ARM for Mac in 2021: Analyst
The thought excites me of running embedded x86_64.
dana321··on The Zen of Go
sync.Map is slower than searching a slice of k-v struct for roughly <1000 elements.

Go designed their map implementation to be unsafe for both read and write. I kind of don't care, i was trying to point out something simple and everyone is nitpicking.

dana321··on The Zen of Go
Its not broken, it does make concurrent parallel requests.

Whats with the nitpicking on hacker news?

dana321··on The Zen of Go
Both!!! Its out there, in the wide world for everyone to read, just use Google!!
dana321··on Vue.js Documentary
Thanks for posting, i wanted to see this.
dana321··on Ask HN: I'm away from the software industry since 2017; what has happened since?
GPT-2

https://openai.com/blog/gpt-2-1-5b-release/

https://talktotransformer.com/

https://github.com/openai/gpt-2

(GPT-2 docker image needs a version tweak to get it working)

and BERT:

https://github.com/google-research/bert

dana321··on The Zen of Go
They aren't safe to read or write concurrently.
dana321··on The Zen of Go
If you are accessing variables declared outside the http server, and you use any non-thread safe types or code it will panic.

For instance, try and read a map, it will crash your code.

It won't show this as a problem until you have real traffic on your service.. Hitting it in your browser isn't enough to test properly.

dana321··on The Zen of Go
The multithreaded nature of the go http library makes it look simple, but in fact, its not. It won't show up problems until you use a specific tool to send concurrent requests.

Just a gotcha i want to mention to anyone reading. ApacheBench is a good first start.

dana321··on Why SQLite succeeded as a database (2016)
Yeah, its a pity it doesn't have the ability to do anything more than alter table statements that add to a schema, having to rename the table, create a new schema and copy its contents from the old table can be quite a tricky and troublesome thing to do if you've got a live system running with users on it.
dana321··on Ask HN: Do You Miss IRC?
I don't miss going into a channel and the bot immediately bans you !
dana321··on Ask HN: What automation tools have you used to replace mundane activities?
You mention selenium, i use Selenium IDE

Its a browser plugin that allows you to record and playback anything that you do in your browser.

https://selenium.dev/selenium-ide/

There is a right-click action to record hovering over a section if it is hidden by css, its a well-known gotcha in wordpress admin listings and other sites that love to hide until you hover over a section.

I've still to look into whether the file format that is saved from selenium ide could be used within a virtual browser like phantomjs or the like.

For direct scraping, i tend to go straight to xpath with dom.

Its far more reliable than trying to get stuff out via regular expressions, that i only use when i need to get a certain part of the node value from a text node.

I used to use php for that, but i wrote my own programming language that uses a library called htmlquery (its a go library)

https://github.com/antchfx/htmlquery

If i have to login, i fake each request with the correct headers. Plenty of libraries around that help with that for every language.

dana321··on Photographer sues Getty Images for $1B for being billed for her own photo (2016)
So, they took public domain, added a watermark and claimed copyright?

Its a case of using the wrong license if they didn't want this to happen. They should have used Creative Commons.

dana321··on Delphi's 25th Birthday
Yeah, i spoke to the guy who wrote it and he used a lot of assembly optimization.
dana321··on Treat Facebook like something between a telco and a newspaper, says Zuckerberg
Its more like a huge building with cameras everywhere watching what you do, with you walking around with a huge sign with your real name on it, your likes and what you have shared. People in far away lands are paid to watch the cameras to make sure what is posted does not violate the building's terms of services.

The building's walls have boards everywhere, some of them move upwards in a continuous loop on a conveyor so you can stare at them, then stop them once you see something interesting, open the ducket contained. They make money by gluing sponsored ads in-between, that you must pay for.

You can see a copy of any other person's board in a small envelope next to each person's name.

There are also rooms called "groups" you can go into but some of them are private and you must answer 3 questions to get in.

Would make an interesting art exhibit recreating Facebook into a physical form, well.. er. The closest thing i can think of is a library..

Its a bit dystopian when you think about the first line i wrote, about the cameras watching everyone. But, its needed to stop horrible things getting posted.

dana321··on [dead]
If you drink alcohol, stop drinking that (even temporarily) as it tends to be the time when you will slip up.

If you have a ritual of coffee and cigarettes, best give up the coffee as well for a while.

dana321··on Delphi's 25th Birthday
Someone wrote a full audio tracker with ASIO, VST etc. in delphi in the 90s; a pretty impressive feat.

Its still avaliable: http://www.madtracker.org/main.php

Thread talking about it: https://www.madtracker.org/forum/viewtopic.php?t=180&sid=7df...

dana321··on Time safety is more important than memory safety
You would probably like go, its much like pascal. And it has libraries for everything!
dana321··on OpenChakra is an open-source visual editor for React
I have some feedback.

When you add a component, instead of text values being "Lorem Ipsum" how about something that describes what it is, something like:

"Enter Accordion Header Text" "Enter Alert Title" "Enter Alert Description"

I know you probably rushed it out eager to show, and it is great but a few tweaks like this and a bit of shaded block colour on the elements would go a long way.

dana321··on OpenChakra is an open-source visual editor for React
The wheel is always being reinvented.

https://www.youtube.com/watch?v=_M9muYyYxhI

dana321··on 64 Core Threadripper 3990X CPU Review
This, to me is a turning point.

Its all about cores from now on.

Well, it has been for the last 10 years, but things are going to get silly from now on.

What happened with graphics cores will happen with CPUs now.

https://gist.github.com/cavinsmith/ed92fee35d44ef91e09eaa877...

dana321··on Does my data fit in RAM?
If you run on MySQL/InnoDB you can set innodb_buffer_pool_size=1000Gb and it should cache your data after the first query.
dana321··on A bestiary of single-file implementations of programming languages
(Abstract Syntax) Tree (Of Life)
dana321··on A Cure for a Lack of Reason
But the question on my mind:

A cure for bad website design?

dana321··on Investigating the Performance Overhead of C++ Exceptions
Its unrolling the stack, whatever could go wrong?.. Its only expensive when you throw an exception.

They should only be used in exceptional circumstances, but they appear to be littered among libraries for everything from telling the caller that the end of file has occurred to a connection timing out.

dana321··on Ask HN: My company wants to move towards AI and blockchain. Should I stop them?
Do the opposite, encourage them.. Because it is on one level a good idea.

Show them things like AutoML. Mention that Machine Learning isn't 100% accurate, and it will be a while yet until it is.

Explain how blockchain is an older technology and how things like proof of resource is a better way without needing expensive ASICs to keep the network secure.

Talk about hashing algorithms, ecc, which ones are the best etc. Get a promotion, make sure its done right.

dana321··on Fyne: Native Mobile UX in Go
I did get wxWidgets running a while ago, maybe worth trying.
← PreviousPage 5 of 12Next →