Better HN
topnewbestaskshowjobs
Log inSign up

terminalcommand

1,673 karma · joined Sep 27, 2013 (13y ago) · 683 submissions

Corporate lawyer with a passion for computers.

Software design and implementation should be a joyous art, a kind of high-level play. If this attitude seems preposterous or vaguely embarrassing to you, stop and think; ask yourself what you've forgotten. Why do you design software instead of doing something else to make money or pass the time? You must have thought software was worthy of your passion once...

To do the Unix philosophy right, you need to recover that attitude. You need to care. You need to play. You need to be willing to explore.

Submissions

241.

Ask HN: Do you converse with AI companions?

3 points · by terminalcommand · 5y ago · 3 comments

comment 5y ago · link · parent

I wondered that too, maybe he is routing everything through usb-c and uses a usb-c hub?

Conventional KVMs have VGA, I doubt he uses it. Maybe he has an HDMI one.

I've got a 4k display and finding a KVM that supports 4k 60hz is nearly impossible where I live. I plan on using a regular KVM to share mouse and keyboard via USB and use my monitors second input for manually switching between PCs.

It's a two step solution but at least doesn't break the bank.

4k has been a source of lot of frustration for me. Regular adapters don't work, regular cables don't work, you can't find content. HiDpi scaling is not that great.

I feel like an early adopter. Everything is a hassle, parts are expensive.

I had a 1080p 32 inch monitor once, it was great but the resolution was lacking. I replaced it with a 32 inch 4K one, but I couldn't get the same experience.

comment 5y ago · link · parent

I've got an rx580 and a 4K display. For esports games and old titles such as Dirt 3, I get near 60 frames at max settings.

comment 5y ago · link · parent

İyi Yıllar!! Happy new year HN, best wishes from İstanbul.

comment 5y ago · link · parent

Maybe it may be useful for achieving truly one-way communication? Could it also be a stepping stone for transmitting state-heavy data? For example a human being with a consciousness :).

comment 6y ago · link · parent

I have heard that the difference comes from software. Apple endorses a reference counting garbage collector, whereas many windows programs (.NET programs for example) use a tracing garbage collector.

In result, native macos (and ios) programs need less memory. As macOS is also built on the same memory discipline, it is more memory efficient.

comment 6y ago · link · parent

Yeah, I typed the answer on mobile. It’s a typo :).

comment 6y ago · link · parent

The first gen had a Mali GPU, and its driver code was propriatery. It caused me a lot of headache in trying to use tinkerboard as a media player.

comment 6y ago · link · parent

I bought the first version.

It supports a special version of debian and android. There are third party OSs too, but they don’t have good driver support.

The biggest issue is that tinkerboard uses Malİ GPU and its driver is propriatery.

I bought the tinkerboard as a media device hyped up about x265 capabilities and 192khz/24 bit audio. The x265 playback only worked with the bundled media player, which was buggy.

Software-wise I haven’t been happy, hardware-wise it was better than a raspberry pi.

comment 6y ago · link · parent

The line between IDEs and editors get blurry every day :).

You’re right java IDEs sometimes don’t include java sdk in the base package.

I’ve recently been fiddling with ios development, when thinking of an IDE, I think of xcode, visual studio etc. Lots of defaults and magic.

Slime might very well be considered an IDE, an IDE for power users :) who likely have learned at least some emacs lisp to get it working.

comment 6y ago · link · parent

I'm not so sure about this. The work does not seem to end in such professions.

You feel lucky if you can get a bit of sleep and eat three meals in a day. Being content with such a profession requires making no personal plans even on weekends and being ready to sacrifice anything. The work dictates your life.

Once you stop fighting it, it gets easier. I think that's what you learn after 3-5 years.

comment 6y ago · link · parent

I wouldn’t call slime an IDE, lisp compiler isn’t even included in it. Slime is a wonderful editor mode. You still need to configure things to get it working.

With an IDE, I think of something like Xcode or VS.

comment 6y ago · link · parent

As far as I know activestate has a TCL IDE.

But I think like lisp, an IDE is a foreign concept in coding TCL.

TCL is a different beast, it cannot be represented with an EBNF, you can redefine anything including language keywords etc.

TCL is thus closer to a human language (much more expressive) so making an IDE to accomodate features of TCL could be harder than conventional languages.

comment 6y ago · link · parent

Do IDEs really do that type of refactoring? As a long time Emacs user I long forgot what a good IDE is capable of.

I know of automatic renaming, moving parts you select automatically to another file, but full automatic refactoring to multiple modules is something I haven’t seen.

How does this tackle circular dependencies etc. I guess the IDE must parse the code, generate the syntax tree, populate symbol tables etc. and then make the refactoring.

A side point I sometimes dream of writing an emacs module which would let me to write in a single file (for easy search and edit reasons), and then cut it into several modules where I mark them with =======xyz.h========= etc.

I also want to use this in each repo where it automatically does this. I’ll hopefuly stop procrastinating and write the thing one day :).

To end with a Game of Thrones analogy, hearing about the latest developments I sometimes feel like we editor/linux/bsd/cli users are like Wildlings beyond the wall. We live in harsher conditions, but are amazed when we see large cathedrals, castles being built inside the wall. Our life is more free but also burdensome.

comment 6y ago · link · parent

Interestingly, my country (Turkey) did ban github (along with google drive, microsoft onedrive etc.) back in 2016. However they reopened it within hours (18 hours to be exact), because systems all over the country were failing. One of the driving reasons was that ATMs stopped working. Appearently they were downloading some updates from github to function.

Stupidity has no limits.

For more info: https://en.m.wikipedia.org/wiki/Censorship_of_GitHub

comment 6y ago · link · parent

I’ve been trying to learn Janet for a couple of days. Janet is a Lisp-like language but in no way a lisp. Janet’s site now delibarely states that Janet is a Lisp-like language not a Lisp.

Janet can be parsed using a PEG parser, so I think that causes it to lose some expressivity of Lisp.

Janet is a cool language though, I like it. I wish there was a decent tutorial instead of just language reference docs. And the Core API documentation is a bit poor in my opinion. I’m trying to submit examples to Core API documentation, I’m hopeful it will get better in time.

comment 6y ago · link · parent

Do you also cross-compile the C standard library? How do you work out the IO? Do you also emulate a basic OS to run scripts on it?

I am interested in taking on such project :). Is it enough to emulate registers and operators?

258.

A beginner’s guide away from scanf (2017)(sekrit.de ↗)

1 points · by terminalcommand · 6y ago · discuss

comment 6y ago · link · parent

I’d agree that it could be classified as an IR. Law is definitely a domain specific subset of natural languages. Even more, each field of law can be regarded as another specific domain specific language. If you’re doing healthcare law, copyright law, criminal law etc. you need to familiarize yourself with the history, terms and mindset of that field.

That’s why lawyers also specialize and that’s why years of training are needed.

But my general opinion is, if something (a bill for example) looks much more complex than it should have been, someone engaged in lobbying to twist things in their favor. If law is left alone from personal interests, the resulting legislation are often more clear and understandable.

comment 6y ago · link · parent

This is incredible! Uploading all legislation to a repository and declaring it as the authoritative version is the way to go to enable progress.

In Turkey, judges and prosecutors have access to a digital law database, but citizens and lawyers don’t. However, laws continue to be published in an online gazette. Most amendments, decrees etc. are published as low-res images. You cannot search them. The government doesn’t even bother publishing the full amendment text. They only state sentences like: “The second word on the sixteenth paragraph of the law numbered X was amended as Y.”.

To find out about the amendment, you open the legislation, follow the instructions to get the latest version.

There are third party publishers who follow these changes and sell memberships where you can see the latest code. The layman has to wait until the government publishes the text (unofficialy) and cannot do comparisons.

It is a real mess. But the government here doesn’t want people to notice the changes, that’s why they bury these in small print. Public officials know the law, citizens have to work hard to get the latest text.

I had law professors in college, who checked the legislation with printed copies of the state newspaper against the published version, because they were sceptical of the government’s unofficial legislation site. They suspected that the government may have been altering these texts. The constitution only protects the integrity of the text published in the official state newspaper. But as most people don’t have any other source these become the authoritive one.

It’s really sickening. If there were a standardized format for all legislation (including the drafts), we could search easily, make comparisons easily etc.

comment 6y ago · link · parent

I’d say that laws are closer to source code than bytecode. Because, like source code you can read them, edit them without converting to any other representation.

Laws’ flexibility and interpretation comes from the ambigiuity of human languages and a need to adapt to circumstances.

The legal scholars recognized for a long time that you cannot predict and regulate every case, therefore laws generally set out principles you can fall back on, if you cannot find a specific regulation.

Therefore law is more like an ambigious declarative language with lots of undefined behaviour :). There are some agreed upon language standards and each lawyer/judge can interpret it.

As with source code, you include definitons, declarations, link documents. There are race conditions between legal texts. There is poorly written code and well written code.

For me the most obvious difference is that laws are computed and operated through people. As computers can’t interpret the sources, we have to. It is slow, error-prone but essentialy the same thing.

First step to improve this would be to publish all laws in a computer readable and parseable form. It saddens me that in my country amendments to laws are published in an official gazette as low-res formatted images.

comment 6y ago · link · parent

The first link seems to be a 14-page memo and the second link a 28-page marketing document.

As someone who writes these docs for a living, don't be afraid to read the legal stuff. It's just text.

comment 6y ago · link · parent

It is actually pretty useful. If you’re given a locked down machine (for example in your company), you can write code in notepad, compile it with csc.exe and run it. As it is generated on the local machine, you may get to be able to execute it. (I tried this once when I was super bored at an intership, and a hello world program compiled and ran.)

comment 6y ago · link · parent

They might be seeing you as a threat, because they think you might be trying to steal their light.

comment 6y ago · link · parent

I don't know about the case details, but Brigate might argue that Citibank paid Revlon's debt. There is nothing stopping you from clearing someone else's debt. It is as easy as doing a bank transfer.

Unjust enrichment argument would be much stronger if Citibank did not have any involvement with the parties. For example if I send my money to an account numbered 100001 but I intended to send it to 1000011, I could argue that I don't know the account holder 100001 and I sent the money by mistake.

Classical contract law is a byzantine beast, and it does not take mistakes lightly. Brigade might have thought that they secured an interest-free loan and want to use it. This would undermine Brigade's credibility and completely mess with their relationship with Citibank. But they might have thought what the hell, we get free financing.

They also might be holding this as leverage against Citibank, if Citibank needs those funds urgently, they'll have to settle.

comment 6y ago · link · parent

Having to pay lawyers for legal issues shouldn't be a reason to lay off 250 employees. It certainly can cost a lot, if they are getting service from top-legal firms, working on billable hours. But they can choose to stick retain lawyers for important matters such as IP-rights, etc., get help from the community for other legal matters and work. For example debian has the debian-legal mailing list, where a lot of lawyers hang out and are ready to help. I certainly would like to contribute if any questions regarding my area of expertise popped up.

Big law firms also do a lot of pro-bono work. Since Mozilla is a foundation they might also try to exercise these channels.

If an OSS community like Debian can manage this, why shouldn't Mozilla be able to do it.

Covid-19 crisis shouldn't affect Mozilla, everyone is still using browsers while working at home.

There are also other ways to raise money for a corporation, for example Mozilla can go public to raise money to sustain their workforce and finance important infrastructure updates such as Servo engine.

comment 6y ago · link · parent

Plain old update files maybe.

You name each zip release with a number and a date. For example #1 will be dated today.

Each time you update you increase the # by 1 and mark the date. You provide seperate small update files named #2 update, #3 update. If I had downloaded the full archive #1, I can just download #2 and #3 update and have the latest version.

If I never downloaded the library I can just download the most recent version and then keep it updated using update files.

comment 6y ago · link · parent

I am not an immigration lawyer in US. I practice law in a different country. But in general most lawyers put in a lot of work to find and retain clients.

My advice could be to ask around if anybody can recommend any good lawyer, no matter what field he is specialized in. Ask that lawyer if he/she can help you with your questions. If he/she can’t he/she will refer to a colleague that is specialized in the field you are looking for. Lawyers know lawyers :), we network a lot.

Another way could be to try to research the topic you want to get answer to online. Most law firms/lawyers publish informative articles when they have free time for marketing purposes. Contact the lawyer/firm having written that article.

And believe me, if you connect with a lawyer, he’ll come and connect with all your friends who are looking for a lawyer too :).

comment 6y ago · link · parent

I think the author’s problem is that he finds vulnerabilities thinking outside the box. Traditionaly vulnerabilities exist when you can inject payloads, get access to somewhere you don’t have access to.

His points are valid, and these are vulnerabilities. However they seem like feature requests, rather than being focused on a technical vulnerability (for example use after free).

comment 6y ago · link · parent

In many places in the world, the government is corrupt and there is no transparency.

I’d be surprised if people trust their governments in Poland, Bulgaria etc.

Government officials have more power to abuse people than companies. At least Germany has an established constitutional court that can still resist the politicians to some degree.

I think the american view is that governments are bad because they can be used to establish tyranny. Every citizen’s right to be judged by their own peers, their right to carry firearms and freedom of speech are the things that allow people to fight against corrupt governments.

This is my view being someone living in Turkey. I am even afraid of posting this comment.

Maybe this generation in Europe trusts their government and thinks that its good. But I bet people having experienced autocratic regimes can never trust their government.

1
8910
23