Better HN
topnewbestaskshowjobs
Log inSign up

jazzdan

241 karma · joined Aug 31, 2011 (15y ago) · 31 submissions

Engineer@Figma

https://dmiller.dev

[ my public key: https://keybase.io/dmiller; my proof: https://keybase.io/dmiller/sigs/DA0FPzfKmhNW7vLwwYypikDjgGY1y0ntd9A5o0aRl58 ]

Submissions

comment 4y ago · link · parent

Yeah, exactly. Or even just not listed in `earthly ls`, maybe you'd still want to be able to call them manually for debugging purposes.

comment 4y ago · link · parent

+1 on `earthly ls`. I've also thought it would be valuable to have "public" and "private" targets. When looking at a new codebase it can be hard to know which targets I should use when developing, and which are purely for internal use. Good docs help with this too, but they are not always there.

comment 5y ago · link · parent

As someone who worked on this it was exciting to get Replay working on three platforms (macOS, Linux, Windows), hopefully proving that our strategy[1] for recording and replaying programs works.

[1] https://medium.com/replay-io/how-replay-works-5c9c29580c58

comment 5y ago · link · parent

(Replay engineer): Kind of! In the code viewer's left hand side gutter, the one that shows line numbers, if a line of code was never executed it is greyed out. Otherwise if you hover over it we show you how many times that code was executed, and from there you can set a logpoint/breakpoint.

comment 5y ago · link · parent

(Replay engineer): Yes, replit has been working on adding similar functionality (https://blog.replit.com/debuggest).

In fact: we've been collaborating with them on it! :)

comment 5y ago · link · parent

Self-hosted is on the roadmap, but getting this to be a universal technique is definitely going to be hard, no arguments there. Gotta start somewhere though!

comment 5y ago · link · parent

Replay deterministically replays the recording, so if the state of the application when you recorded it caused a network call, then when replaying it we will also "make" a network call _but_, instead of actually going out to the network we will instead return the exact data that was returned when you recorded it.

You can learn more about how Replay works here https://medium.com/replay-io/how-replay-works-5c9c29580c58

Can you expand more on what you mean by a race condition in network calls? If it's a series of network calls that the browser could make in any order than we will make them in the order that they occurred when you recorded it. If it's a race condition that occurs in your backend, then the Replay browser won't really help there (though it will show you the responses you got from your backend when you recorded it).

For help with that, you might want to use Replay on the backend. Right now we have Node support (https://github.com/RecordReplay/node), but other runtimes are on the roadmap.

comment 5y ago · link · parent

(Replay engineer): Yes it does!

comment 5y ago · link · parent

(Replay engineer): In the long run we'd love for Replay to prove to the major runtimes that they should build support for this in to the runtime itself, rather than us maintaining many forks. The API that we designed for recording a runtime is open source and available here https://replay.io/driver and could serve as a good starting point.

comment 5y ago · link · parent

(Replay engineer) Google is currently the only way unfortunately. We wanted to support secure logins at launch, with SSO and Multi-factor Authentication, and focus most of our efforts on the core product. As a result we just went with Google for launch.

We don't currently have any plans to add additional authentication mechanisms but we've heard this feedback from a couple folks and we'll sit down to prioritize it after the excitement of launch has died down. Sorry about that!

comment 5y ago · link · parent

(Replay engineer): we basically record all the inputs and outputs to a program. In the example of an HTTP request: when recording we'd record that a request was made, and the response. When replaying, rather than make the HTTP request, we return the response that was recorded.

If you're interested you can learn more about how Replay works here: https://medium.com/replay-io/how-replay-works-5c9c29580c58

comment 5y ago · link · parent

(Replay engineer): re: Windows, we have an alpha build out now, with a wider beta release coming later this year.

re: on-prem, it's definitely something we plan to support, and something we have engineered in to the infrastructure. If you're interested email hi@replay.io, we'd love to talk more.

comment 5y ago · link · parent

(Replay engineer): We're big fans of RR and pernosco, I love to see those tools get their due. Replay is also designed to support backend programs. We [support Node](https://github.com/RecordReplay/node) today with more runtimes coming soon.

comment 5y ago · link · parent

(Replay engineer): We support all the debugger features (breakpoints, step in to, step over) and more (step back). We emphasize console.log because we found that time traveling console.logs makes for a good demo, and engineers immediately grok what is it capable of, rather than think that they need to adopt a whole new debugging workflow to use Replay.

comment 5y ago · link · parent

(Replay engineer): Hey davidten, thanks for trying Replay, sorry about the confusion. You definitely shouldn't need an invite. We're on it, getting a fix out now.

comment 5y ago · link · parent

(Replay engineer): That's something we'd love to enable in the future, but before we do we want to make sure that non-technical user can understand the implications of what they are sharing (a recording contains everything: every value a variable was ever set to, all network calls, cookies, etc) and has tools to redact information they don't want shared.

comment 5y ago · link · parent

Replay employee here:

We definitely want to enable something like that in the future. But first we need ensure the user's privacy is maintained. Right now a recording contains _everything_: all variables, all cookies, all network requests. The challenge will be communicating to a non-technical user exactly what is shared and allowing them to redact portions of the recording, while making sure that the recording is still useful.

18.

Solving the Laggy Human Shell Problem(blog.tilt.dev ↗)

3 points · by jazzdan · 7y ago · discuss

19.

Microservice Devs: Put Down the Particle Accelerator(blog.tilt.dev ↗)

1 points · by jazzdan · 7y ago · discuss

20.

Why Does Developing on Kubernetes Suck?(blog.tilt.dev ↗)

5 points · by jazzdan · 7y ago · discuss

21.

Observability Doesn’t Work in Dev(medium.com ↗)

2 points · by jazzdan · 7y ago · 1 comment

22.

Can Microservices Make Things Simpler?(medium.com ↗)

1 points · by jazzdan · 7y ago · 1 comment

23.

Comparing the PHP 7 and Hack Type Systems(dmiller.io ↗)

46 points · by jazzdan · 11y ago · 35 comments

24.

Experimenting with HHVM at Etsy(codeascraft.com ↗)

150 points · by jazzdan · 11y ago · 37 comments

comment 11y ago · link · parent

The HHVM team runs the tests of popular GitHub PHP repositories on HHVM, it's available here: http://hhvm.com/frameworks/

According to that 99% of magento2 tests are passing.

comment 12y ago · link · parent

Facebook's Hack lang is open source, though not publicly documented. This commit points out a lot of the implementation and test files: https://github.com/facebook/hhvm/commit/db9577b1409b74293fd9...

27.

ODA - Online Disassembler(onlinedisassembler.com ↗)

50 points · by jazzdan · 13y ago · 21 comments

28.

1975 Programming(varnish-cache.org ↗)

1 points · by jazzdan · 13y ago · discuss

comment 14y ago · link · parent

>No one’s going to give you a bonus for remembering the difference between inheritance and polymorphism: let’s face it, you’d take the 5 seconds to Google the definitions and move on.

The point of those questions isn't to test whether you know the definitions of polymorphism and inheritance. The point is to test whether you understand the concepts. Anyone can regurgitate the textbook definition, but can anyone explain why polymorphism should sometimes be avoided? Not if they haven't invested some time in understanding both the theory and applications of OO principles.

comment 14y ago · link · parent

One good way to start building your security credentials is by becoming the go-to security guy on your team. Poke around the product you're working on and try to find security holes. Bring up security at code reviews. Besides just facilitating learning about security those experiences can also be put on a resume and talked about at interviews.
12