HNHacker News
TopNewBestAskShowJobs

markdog12

5,157 karma · joined November 13, 2014

submissionscomments
markdog12··on Three bugs in the Go MySQL driver
Yeah, I wasn't sure. I was looking at a Dart MySQL connection pool implementation, and that's what's done.

  socket.listen(onData, onDone: onSocketDone);

  onSocketDone() {
    _closed = true;
  }

  write(Buffer buffer) {
    if (_closed)
      throw StateError('Cannot write to socket, it is closed');

    ...write
  }

  onData(RawSocketEvent event) {
    if (event == RawSocketEvent.READ_CLOSED) {
      _closed = true;
    }

    // Other events handled as well, READ, CLOSED, WRITE
  }
But I don't know what's going on under the hood there.
markdog12··on Three bugs in the Go MySQL driver
Dumb question, but you can't listen for a close socket event in Go?
markdog12··on Defold game engine source now available and free to use for commercial games
Are there any language bindings for the engine, so I don't have to use Lua?
markdog12··on The Great CoffeeScript to Typescript Migration of 2017
You know you can write JavaScript without semicolons, right? Or did you know, but also know that it can bite you?
markdog12··on James Damore and three others end Google suit
> young, white males who use the internet way too much

What does "use the internet way too much" mean?

markdog12··on Frank Ramsey – The Man Who Thought Too Fast
Or von Neumann. Of course he was older at 53, but still lots of time left.
markdog12··on Apple aims to sell Macs with its own chips starting in 2021
Windows 10 runs on ARM

https://docs.microsoft.com/en-us/windows/arm/

markdog12··on GitHub is now free for teams
> whether GitHub sees this is a first-to-market play of some sort

Could be a response to GitLab, which had a similar offering for years, including unlimited free private repos.

markdog12··on Ask HN: Great fiction books that have had a positive impact on your life?
Read it in one go, couldn't put it down. Profound.
markdog12··on Google Earth finally available in browsers other than Chrome
I'm surprised too. I've tried on Firefox as well, and on different machines, dual core laptop (Intel), quad core laptop (Intel), iMac 27" Late 2015. All were silky smooth with NACL.
markdog12··on Google Earth finally available in browsers other than Chrome
When Google Earth web used NACL, it was so silky smooth, it wasn't even like it was the web. Even on relatively weak hardware (dual core laptop), it was so nice, didn't skip a frame. First time I tried this in stable Chrome it locked up my entire computer. Took about 5 minutes to be able to reboot. On reboot, when I run it, it's like a slideshow, unusable (Ryzen 3900X 12-core beast with RTX 2060 Super). I really want to get excited about WebAssembly, but this doesn't do that.
markdog12··on T5: The Text-to-Text Transfer Transformer
Yeah, it asked who was the director of the CIA from 1976-1981. I answered "George Bush" (lazy, typing on phone), it answered the more exact "George H. W. Bush". It marked me correct, but it was marked wrong. It also asked me what country the island of "Honsh" was in (should be Honshu). I answered Japan and was correct, though. It guessed Iceland.
markdog12··on FLIF – Free Lossless Image Format
You can encode to JPEG XL here: https://libwebpjs.appspot.com/jpegxl/

(Compiled to WebAssembly, not by me)

markdog12··on What’s New in Swift 5.2
They've had similar thing to callAsFunction in Dart for many years now (maybe the start). I've written many thousands of lines of Dart code, and I've never used it once, and I don't like it.
markdog12··on Decreasing human body temperature in the U.S. since the industrial revolution
Not only that, but testosterone levels have been dropping in men for decades. Being that testosterone is essential to men's health and well-being, and they comprise 50% of people, you'd think society would care more about it.

https://www.forbes.com/sites/neilhowe/2017/10/02/youre-not-t...

https://uk.reuters.com/article/health-testosterone-levels-dc...

markdog12··on Flutter vs. Other Mobile Development Frameworks: A UI and Performance Experiment
Tough call though, since # of packages is a poor metric.
markdog12··on Flutter vs. Other Mobile Development Frameworks: A UI and Performance Experiment
Dart on the web frontend too, since start of the project. If you already had a substantial part of the project in JS, then Typescript would prob be better choice.

Dart is pretty mature at this point, with a very solid type system and getting better with extension methods just added and NNBD coming soon. It doesn't have as many packages, but it's pretty good.

> native macOS app — not sure also if Flutter will work for that.

They're working on flutter for desktop and there's a prototype.

markdog12··on Flutter vs. Other Mobile Development Frameworks: A UI and Performance Experiment
Not sure what you mean. Small startup here and we share code between frontend and backend just fine, using Dart.
markdog12··on Flutter vs. Other Mobile Development Frameworks: A UI and Performance Experiment
We've been using Dart for years on a successful web app, front-end, back-end, and tooling. It's simple to learn. We've had devs experienced in C++ contributing to the codebase in a couple of days without any prior exposure. It's a great general purpose language, and with recent addition of extension methods and NNBD coming soon, it's getting even better. Ecosystem isn't as extensive as JS world, but it's pretty good. (As someone else in this thread stated, I too dislike the required semicolons, but no biggie, and there's an issue to perhaps remove or make them optional, maybe it'll happen eventually)

Give the language tour a quick look: https://dart.dev/guides/language/language-tour

I've been using Dart since the start (~8 years ago), and follow language development very closely.

Let me know if you have any more questions.

markdog12··on Modern garbage collection: Part 2
They do mention they may have missed factors in the original article it links to:

> As you can see, there are a lot of different factors that go into designing a garbage collector and some of them impact the design of the wider ecosystem around your platform. I’m not even sure I got them all.

markdog12··on Modern garbage collection: Part 2
I remember the oddly named System.pauseForGCIfCollectionImminent() AS3 (Flash) function:

https://help.adobe.com/en_US/FlashPlatform/reference/actions...

markdog12··on Firefox Replay
Really hope they can get this working with WebGL
markdog12··on Slack’s new WYSIWYG input box is terrible
First time that happened I had no idea where it went. Still don't and it's happened a few times. They killed my flow. I hate this "feature".
markdog12··on The Bytecode Alliance: Building a secure, composable future for WebAssembly
Anything beyond just the 128-bit SIMD yet? Last thing I seen on that was "Long SIMD" from here: https://webassembly.org/docs/future-features/

And that was years ago.

Seems like an awful waste to have many millions of cpus with avx for instance, wasted.

markdog12··on Google Cloud Datastore Incident
This is covered here: https://news.ycombinator.com/item?id=21503773

(Although they keep fiddling with the title, it should just be "Google Cloud Incident", it affected a lot of services)

markdog12··on Google App Engine and Cloud Datastore Outages
Our app is down. I can't even access any pages in Google Cloud Console. Timing out. Sometimes it completes showing all our clusters gone, then a timeout error. This is brutal. This isn't just GKE either...

Edit: Things are working for us now

Edit: Still getting timeouts and service unavailable

Edit: I'm getting 503 (service unavailable) from buckets, but nothing on the status page indicating there's any issue.

Edit: Seems our Cloud SQL instance was restarted as well

Edit: Multiple restarts of our production database

Edit: Dashboard finally updated to reflect growing # of services effected

Edit: This wasn't an "App Engine" incident. It was a very wide-ranging incident. Just change the title to "Google Cloud Incident" and be done with it

Edit: Things have seemed to stabilize for us

Was supposed to have today off with my family (Remembrance Day in Canada), but now I have to deal with support issues all day. Thanks Google!

markdog12··on Designing better data tables (2017)
Just yesterday I had to laugh in despair at how bad Google Cloud's UI is, including scrolling the headers instead of pinning to the top. What's much worse though is the perf, load times for simple pages are 10 seconds, my machine is pegged at 100% cpu, slogging through logs viewer like molasses. I just find it hard to believe it'd be so bad, on such a crucial product. This coming from a company that has dev rels advocating better perf (as they should!), but not applying it to one of their most important products.
markdog12··on Dramatically reduced power usage in Firefox 70 on macOS with Core Animation
I don't know any details, but Chrome canary on MacOS has a "metal" flag.

"Vulkan" flag on Android too.

(Post mentioned they plan on implementing metal backend)

markdog12··on Dramatically reduced power usage in Firefox 70 on macOS with Core Animation
I thought it would've been informative to show Safari in the charts.
markdog12··on Elm 0.19.1
Gave it a whirl online, tried to change WebGL import to Webgl, thinking it wouldn't do anything helpful.

It told me the lib import was prob a typo, with suggestions, and WebGL at the top:

  You are trying to import a `Webgl` module:

  11| import Webgl

             ^^^^^
  I checked the "dependencies" and "source-directories" listed in your elm.json,
  but I cannot find it! Maybe it is a typo for one of these names?

      WebGL
      Set
      Svg
      Array

  Hint: If it is not a typo, check the "dependencies" and "source-directories" of
  your elm.json to make sure all the packages you need are listed there!
← PreviousPage 8 of 20Next →