Hacker Newsnew | past | comments | ask | show | jobs | submit | more trungaczne's commentslogin

I used to use i3 and tmux for a time.

Advantage (of using tmux on top of i3):

When you spin up a new window with i3, it doesn't retain the previous's current working directory. There are some hacks to make it kind of work, none of which work nicely. With tmux it just works.

tmux has synchronized panes. It allows you to send same keystrokes to multiple terminals at once. This is useful for managing multiple host machines at once, i.e. ssh'ing into different machines at checking certain logs.

Disadvantages:

Double the amount of keybindings you need: one set for i3, one set for tmux. i3 allows you to active a mode where keystrokes are 'forwarded', so theoretically you can use the same keybindings for both, although it is very annoying if you forget to active this mode since you're now creating i3 windows instead of tmux panes and have to clean them up.


Can you elaborate on what you mean by "what amounts to a built-in IDE"?


This is the link to the research paper ("Learning to protect communications with adversarial neural cryptography"): https://arxiv.org/abs/1610.06918


Each process can be ptraced by only once process at any time, so if the malicious program want to avoid debuggers, they can attempt a ptrace() on their own process. If it fails, they know they are being debugged.


If you are looking for 'computer science topic' knowledge, I don't think you should search a site 1) geared heavily towards math and 2) seeks to challenge participants (unlike cryptopals, which provides a guide) in the first place.


That's a really good point actually. Perhaps Project Euler has a CS association where it doesn't really belong because it's often mentioned in CS/programming challenges threads, even if it's not intended to be the focus of the exercises.


Using the same language is useful for avoiding duplicated code, personally I find these being duplicated often:

* Form validation/data sanitisation code

* Translation/internationalisation

* Data (de)serialisation

Also you can do fancy things like server-side rendering, although Google is capable of searching SPAs now. I don't know much about SEO.

The argument for less code sharing is that if you are working with a lot of teams and service-based architectures, there are some merits to duplicate your code and keep them redundant, to 1) enable hiring from more diverse backgrounds and 2) reduce communication/maintenance friction needed when you make changes to components would otherwise be shared.


You make a good point- there's really only a handful of things that get duplicated. Maybe instead we should be working on just fixing up those things. Like if there was an easy way to share validation logic from the backend to the frontend... then that would only be needed to be updated once.

We don't need to share everything


10 hours, 89 points and 0 comments? That's a first.


I'm a sucker for Cunningham's Law, but aren't we all:

https://news.ycombinator.com/item?id=11122973

https://news.ycombinator.com/item?id=12134303

https://news.ycombinator.com/item?id=11548951

https://news.ycombinator.com/item?id=11017603

https://news.ycombinator.com/item?id=12283041

https://news.ycombinator.com/item?id=12473851

That's in the last year. Looks like there are 31 stories total with no (live) comments and > 89 points. But then there are all the ones where people posted about there being lots of points and no comments...


I meant "That's a first" as in it was a first for me. I've seen threads almost empty where the only comments are discussion why they are so empty, but that's usually within 5-6 hours of the thread creation. I've never personally seen a completely empty thread. This seems like an extreme anomaly personally, at least until you revealed the statistics.

Curious, how many threads were created last year?


360k threads and 1.89M comments.


/off-topic and probably a useless question how did you retrieve those links? you had them bookmarked :-) ?


I wrote a bit of code to find them.


It's a statistical anomaly


The thing about statistics is that while you have a statistical explanation on the population level you still have an individual explanation on the level of individuals.


I think what he means is "doing it using Unix command line utilities", like grep.


I found it impossible to debug very large scripts on Firefox. Searching for a string in the script is next to impossible, it would hang the interface for minutes. In Chrome it take seconds to do something similar, you can tell that the script is too big but at least it's debuggable.

Also as a user I cannot bear to use Firefox. I recently retried it (can't recall the version, IIRC it's the first version they introduced multiprocessing) and it still underperforms: I experienced (sub second) lag on UI interactions whereas I wouldn't using Chrome.


never had slow search on Firefox. also Firefox can search a string on all source files, while chrome you have to know the file beforehand


I don't think message queues and signals serve the same use case. Signal could be used for out-of-band communication.


You may be right, but in practice the syscall is so limited that I think many programs basically process the syscall as a message anyways, that using a messaging model may make more sense, and be easier to work with.

Someone correct me if I'm wrong, but because of the way the syscall callback operates, it could be interrupting threads at almost any stage. This makes executing the signal in a safe manner very difficult, and from the signal handler itself you can only run certain code. If i remember correctly, most signal handler implementations then get reduced to basically set some state and return, where the regular execution will then check for that state and react to it. Well, if your only going to process the signal during you main event loop anyways, then why not just exchange the information over a message queue, and send a message to the process when you want it to do something (ie reload configuration).


Well, from what I know, sometimes you just have to have out of band communication, check the discussion in the comment here: http://250bpm.com/blog:70

It sounds like a necessary use case to me. While most people would probably not use it, that doesn't invalidate its existence. Most people would probably not touch any low level code either way.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: