1,673 karma · joined Sep 27, 2013 (13y ago) · 683 submissions
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.
241.
Ask HN: Do you converse with AI companions?
3 points · by terminalcommand · 5y ago · 3 comments
comment 5y ago · link · parent
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 6y ago · link · parent
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
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
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
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
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
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
Stupidity has no limits.
For more info: https://en.m.wikipedia.org/wiki/Censorship_of_GitHub
comment 6y ago · link · parent
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.
258.
A beginner’s guide away from scanf (2017)(sekrit.de ↗)
1 points · by terminalcommand · 6y ago · discuss
comment 6y ago · link · parent
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
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
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
comment 6y ago · link · parent
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
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
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
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
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
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.