Recent submissions

Comment · 9 months ago
Comment · 4 years ago
Comment · 5 years ago
I do subscribe to channels and my feed is also flooded with these scams. (Though usually it is not this bad -- it got much worse starting on the day of SpaceX's Inspiration 4 launch.)

I'm assuming the algorithm is showing them to me because I watch lots of SpaceX and other space videos. The descriptions in these videos are even ripped directly from legit videos that I actually watched!

Comment · 5 years ago
Comment · 11 years ago
Comment · 11 years ago
Thanks for the concrete example. The transformed source code that would get compiled for this example looks like:

  scope.Declare("x", &x)
  godebug.Line(ctx, scope, 3)
  x = 1
  godebug.Line(ctx, scope, 4)
  x = 2
  godebug.Line(ctx, scope, 5)
  bar()
The value of x is visible to all of the godebug.Line calls, so the compiler should know that it can't move x = 2 to after the call to bar.
Comment · 11 years ago
"Also, having the debugging library alter the semantics of the program is 100% guaranteed to lead to bugs that are not visible when using the library, etc"

Can you give an example of the kind of bug you expect to see?

Comment · 11 years ago
Comment · 11 years ago
Comment · 11 years ago
Good question. I think https://news.ycombinator.com/item?id=9411158 is right, but I haven't looked at it closely yet. Thanks for bringing it up!
Comment · 11 years ago
Author here. Yes, only one goroutine is paused at a time. I'm planning to add commands to show and jump between goroutines. Still sketching those out, though. Do you think it would be helpful to have multiple goroutines paused by the debugger at once?
Comment · 11 years ago
> Another is that you may inadvertently corrupt or change the behavior of the code in an unintentional way if you modify it incorrectly

I'm concerned about this, too. One of my next high priorities for godebug is to download many open source projects and search for behavior differences caused by the debugger. I would also like to generate new programs and test them as well.

> But, you get the easy 80% with this for sure. I'm just prodding you to work on the other 20%.

I will. I'm excited about the project and want to make it as useful as I can.

Comment · 11 years ago
Thanks, I didn't know that. The go/token docs don't say much about it. Do you know if there is better documentation somewhere?
Comment · 11 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton