skysight-inc/HackerNews huggingface dataset:
> You can implement defmacro in 8 lines of syntax case.

Even if that is so, that doesn't mean I want syntax-case. If I don't want syntax-case but do want defmacro, that requires a lot less code than implementing syntax-case (which I don't care for) and then eight more lines to get defmacro. (Are we talking with a defmacro that supports optional parameters, &environment? and how about macrolet? destructuring lambda lists)

Hygienic macros are basically wrong. A good way to express why they are wrong is by analogy. In visual art, as a joke, we can paint paintings that perpetrate deliberate errors of perspective: some feature obviously in a distant background reaches into the foreground in an incorrect way and overlaps or interacts with foreground objects.

There is precisely such an absurd situation between the lexical scope of a hygienic macro definition, and that of the macro call site.

The macro injects code into distant call sites, yet that code makes lexical references into the macro definition, like the silly character jumping out of an inner painting into an outer painting.

I don't ever want that; I don't want the code generating system (the macro) to be wrongly mixed up with the generated site. If the macro generates some symbol X, that should refer to an X definition that is lexically (or in any other manner) apparent at the call site, even if that is a bug. If I make that bug, I will own that bug.

I do want macro generated code to refer to a clearly defined set of run-time support symbols, if that is required, not coming from some random lexical scope enclosed in a macro definition, but from a global scope. Referring to a private scope of the macro definition is horribly wrong. That scope must completely die when the dust settles. It's not necessarily even on the same machine. When the macro is running and its scope is active, it's on some build farm. When the code is running, it's on a target system. Why would the target environment refer to the build environment?

No hacker interested in constructing practical systems from the ground up could have invented hygienic macros; they are an ironic joke coming from idle minds.
My take away was that researchers produced evidence that the shape of bird eggs is optimized, around physical characteristics of the parent. I am open to the idea and sceptical. In the context of humans it would be like saying the shape of children is optimized around the physical characteristics of a womans body, as opposed the the supposition that a womans body is optimized around the physical characteristics of children it will have to give birth to.
> we get so appalled and shocked when middle eastern countries that we bomb call us the enemy

do they? or are you talking about Americans getting appalled and shocked by people calling for their deaths? There is a significant difference.
Yes, after doing "big data" at Google, my theory is that 95% of the time you need ONE MapReduce: stratified sampling.

After that, you just do everything on a single beefy multicore box.

Unfortunately most databases do not support efficient stratified sampling, although it would be trivial to add as far as I can see. It needs to be hooked into the same place as GROUP BY.

----

As an example, pick 1000 URLs from every domain, 1000 clicks to every URL, 1000 web pages in every language, 1000 people from every country, etc. All of these things have a "long tail", so you need stratified sampling over the categories, not just straight sampling.

But if you have that, you can answer almost any question with 1 GB of data IMO.

I think there are two kinds of big data:

1) Production Services like Maps and search, which have to touch every byte

2) Decision making. This can always be done with something like 1 GB of data, or often 1 MB or 10 KB. You never need 1 TB of data to make a decision about anything.
Neat Stuff! What is the max data that I can send it?
awk '{print $2,$4;}' is useful and easy to remember. $NF refers to the last field. FS is the variable to override the default field separator of white space. Here's an example of it's use. OFS is the output field separator.

awk 'BEGIN{FS=":"; OFS=":"} {print $1,$NF}' /etc/password

Works on CSV files too with the right field separator.
> suppose that a woman wants to find single men, over 6' tall, under 35, with a university degree, and a job making more than 100k

What woman doesn't want that list?
I guarantee you the US tries to steal their military secrets too. There's no reason to be angry about this at all -- spying is like reading your competitor company's blog.
man-pages-5.00 is released
As a russian, reading twitter '1 like - 1 fact' thread about Leo Tostoy and his wife (including how much it is her merit that the novel as we know it actually have seen the light of day) was a better read than War and Peace.

https://threadreaderapp.com/thread/1068888815627055104.html

(google translate does a good job actually https://translate.google.ru/translate?sl=ru&tl=en&u=https%3A...)
For what it's worth, I didn't read the article at all, went straight to the final code, and had no issue reading or understanding it. The variable names seem fine to me. They're actually quite good, and I liked the convention for naming partial derivatives.

This code is designed to be read by someone who is pretty familiar with the underlying concepts. If you don't really know how a neural network works or how gradient descent is applied to update the weights, that's your blocker, not the variable names I saw here.
Yeah, a 4MVA connection would likely require new HV side infrastructure, which is inherently expensive to install.
(cries in Samsung)
But behold the coupled mess you get if your up front design (the boundaries between the microservices) wasn't perfectly chosen or isn't robust against spec changes.

Can easily happen for instance when architects that are too removed from the actual code are choosing the boundaries. Then developers have to work around it.

There will still be coupling issues. It just goes over the network, and is a lot harder to refactor.

https://xkcd.com/2044/

I think this is something like a No True Scotsman fallacy. Somehow people see a tightly coupled mess distributed over the network "not real microservices". Ok, but the people who made it intended to make real microservices, and that is what is important.
You can find lot of information about different libraries and stuffs , i would focus on slightly underrated area (not just for python but for any other language you need to master this skill to become successful programmer )

One of the most important skills you need to acquire to be a successful programmer is the ability to debug your programs. Debugging might be the most under-appreciated, and under-taught, skill in introductory computer science.As programmers we spend 99% of our time trying to get our program to work. We struggle, we stress, we spend hours deep in frustration trying to get our program to execute correctly. Perhaps the most important lesson in debugging is that it is largely avoidable – if you work carefully.

Start Small , Start with something really small. Maybe just two lines and then make sure that runs ok. Hitting the run button is quick and easy, and gives you immediate feedback about whether what you have just done is ok or not. Another immediate benefit of having something small working is that you have something to turn in. Turning in a small, incomplete program, is almost always better than nothing.
Keep it working Once you have a small part of your program working the next step is to figure out something small to add to it. If you keep adding small pieces of the program one at a time, it is much easier to figure out what went wrong, as it is most likely that the problem is going to be in the new code you have just added. Less new code means its easier to figure out where the problem is.
This notion of Get something working and keep it working is a mantra that you can repeat throughout your career as a programmer. It’s a great way to avoid the frustrations mentioned above.

Debugging a program is a different way of thinking than writing a program. The process of debugging is much more like being a detective. Here are a few rules to get you thinking about debugging.

Everyone is a suspect (Except Python)! It’s common for beginner programmers to blame Python, but that should be your last resort.

Find clues. This is the biggest job of the detective and right now there are two important kinds of clues for you to understand

Error Messages
Print Statements
Make sure you take the time to understand error messages. They can help you a lot.

print statements are your friends. Use them to help you uncover what is really happening in your code.

Work backward from the error. Many times an error message is caused by something that has happened before it in the program. Always remember that python evaluates a program top to bottom.
My house has 200 Amp service. But I never use that much at once. The average US home uses an average of about 1.2KW at any given time [0]. So I was wrong above. It's more like 200 houses.

[0] https://www.eia.gov/tools/faqs/faq.php?id=97&t=3
Huawei Files Lawsuit Against the US Government – Pandaily
They probably A/B tested it for a fortnight, found out that it worked, and never considered folks would catch on. It drove me away checking FB, too.
Dear Elon. Call me about setting up solar roofs in South Africa.

Best regards
Phillip
You may want to activate ssh compression (see ssh -C).

If you're remote it can speed up X forwarding and make the whole application more reactive.
I thought about that right after I posted, and you're right. It's probably that gasoline is more of a familiar experience than 1000 amps flowing into lithium batteries.
The competitor's company can't put you in front of a firing squad or sentence you to a gulag.
There is just SO MUCH information. Airport diagrams, approach and departure plates (geo-referenced), all the different charts (sectionals, TACs, IFR hi and low, etc), checklists, radio frequencies, route planning, airspaces, weather, NOTAMs, TFRs, etc. I'm sure I'm leaving off tons of stuff. The flight planning features are fantastic.
The Gene Therapy Trial Aiming to Fend Off Alzheimer’s
Having worked at Boeing, it's strange to imagine such an acquisition. Boeing is the polar opposite of a software startup, and ForeFlight's about-page shows them to be founded by software entrepreneurs. I will be impressed if they can make this work. What does Boeing hope to get from this that they couldn't get from them as a partner or supplier?
> Let's just collectively admit it, finally - you can't write safe C++ in a codebase this complex.

I work on Chrome. The working assumption is there always exists a bug that allows remote code execution in the renderer.
This man is a pathological liar. I’m sure he believes himself what he is saying but nothing in his past actions says that he will implement these changes in a way marketed here. Facebook is a publicly owned advertising company. They charge zero cents for using the service. If he destroys the company’s profit source, shareholders will sue him.
I bet at least one pharmaceutical giant is working on an extended-release cheesecake.
Which is why I pay no more than $5 for a Rolex in Bali. My favourite one has a slightly off-centre dial. Paying for that kind of quality!
Hi, do you have an email address to learn more and discuss about the full stack developer opening?
Nintendo’s first VR product in 24 years is coming to Nintendo Switch
You missed what I was saying. Using wood is highly dependent on region.

In other places, the greenest building is the one that is already standing. Even if it may be made from concrete.
if you need a cli tool, then awk clearly wins as python isn't suited in a cli pipeline

speed is a factor too, if you consider combining with other cli features, for example https://adamdrake.com/command-line-tools-can-be-235x-faster-...
I cannot be the only person who thinks it's hilarious reading articles like this while there's a Facebook share button dangling in my face. I remember an article the EFF published about how these buttons track you. Lo! There's a Facebook share button to the left of the EFF article.
No, you can't buy that service.
Not even close.

400amp service is usually 2 200 amp panels.

Done with 2/0 cable. It's rarely, if ever, 1 400 amp panel.

1. There is no way you would get "1000amp service" at 250v. It would be a minimum of 480v 3 phase (and not 1000amp). You may even want a lot higher, because as you'll see, getting that many amps is ... very very hard.

2. You can't even buy 1000amp cable gauge anywhere commercially, because it would be insane.

The NEC ampacity table doesn't go anywhere near that high
it tops out at 2000kcmil, 665 amp cable.

Due to various factors[1], doubling the cable mils will only get you a hundred or so amps here, so it's probably close to 4500kcmil (i'm too lazy to do the mm^2 math, it's 1.89" conductors)
Which doesn't really exist for purchase (if you really needed it, you have the means to make it :P).

To try to also put the size in perspective:
2/0 cable has conductors that are about 3/8" in diameter.

2000kcmil cable, which again, tops out at 665 amps, has conductors 1.6" in diameter (they are often also segmented, so while the bare size may be 1.6" in theory, you don't find that).
Generally the insulation size on them is ridiculous as well (because they are usually used for like 10kv+ applications)

[1] Current is related to surface area of conductors, or combined surface areas of all the strands in a conductor. So you'd need to double diameter, at least, to come close.
You have an assumption that the initial design/division of responsibility into microservices was perfect.

If not, then no, the unintended coupling is not limited to within a service, it will find its way to the API between the services.
Those other children are irrelevant here. It's a "finish your dinner, the are children starving in Africa" type non sequitur.

If they went outside of school hours, they could be easily ignored. Now we're taking about them, because they did something more.
A generalising debate about which construction techniques are "better".

Every place has it's own most adequate materials. In Norway it may be wood, in Japan it may be bamboo, but in many places it is concrete or some upgrade thereof.

I didn't like that the article is basically an advert.
Online Notepad – Gangstar Vegas 4.0.0i Mod
I mean, we also put Yanjun Xu, an officer of the Chinese espionage apparatus, in federal prison last year. This friend/enemy/partner/adversary thing really works in multiple dimensions.
If the problem was lack of choice, why do the large majority of all Facebook users never change their privacy settings?

Or why did hundreds of thousands of users actively choose to share their data with a random company called Cambridge Analytica?

The problem is not lack of choice. The problem is that people don't care.
Urgh, this is just crazy talk.
"The sky above the port was the color of television, tuned to a dead channel."

Definitely the greatest line I've ever read. Such extensive imagery and metaphor (well beyond just the sky), tucked into 15 words.
> Do they distrust their own coders to the same degree they distrust the processes they sandbox? I suspect the answer to this is "no" but I would like to hear from someone who actually codes there.

Actually, the answer is yes. That's why the renderer process is sandboxed.
For those, like me, who are unable to attend the exhibition, the book produced based on the exhibition is worth getting [1]

[1] https://tolkien.bodleian.ox.ac.uk/shop/
For Teslas, yes. I've found it to be very helpful, as it relates directly to numbers I care about. E.g. 4-5 mph charge rate from a 110v outlet, and I can just multiply by how many hours I'll be parked, to know what I'll get out and if that's enough for me. It also relates to the static-estimated battery capacity readout, which comes full circle to a point where I don't have to worry about kW conversions anymore. But if you want, you can just set it to 'energy' read-out, and you'll get kW, percentages, etc.
Nerdy girls are on Discord too, although the ratio is skewed heavily in favor of men, at least based on my experience.
Yeah MD5 is better to a degree, although 5f4dcc3b5aa765d61d8327deb882cf99 is still the most common password (md5 hashed) hehe :P
Awesome. I would use this as shared clipboard. Immediately made bash functions for myself :)

pipefrom() { local key=${1:?"Error: Missing pipe key"}; curl -s https://pipeto.me/$key; }

pipeto() { local key=${1:?"Error: Missing pipe key"}; curl -T- -s https://pipeto.me/$key; }
"Common Lisp is a new dialect of Lisp, a successor to MacLisp, influenced strongly by Zetalisp and to some extent by Scheme and Interlisp."
I have an example based tutorial for all these commands plus other cli text processing commands

https://github.com/learnbyexample/Command-line-text-processi...
Learning Latent Plans from Play
Ask HN: How do you manage your PINs?
I don't keep them in my password manager because pulling out a pwmng for a quick entry seems wasteful. Also, in some places pin's are shortcuts for passwords (like Windows 10) so keeping them in the password manager doesn't feel right/safe...

How do you guys manage your PINs?
> <gets downvoted>

Whatever happened to poetic license?
Which implies that Tesla is either using a much higher voltage than 250, or they're using superconductors. And I doubt they're using superconductors.
Yeah, this is closing the gap in a significant way. It's still not "charge on the way to work" fast, but it wouldn't be a painful delay on the way home. More important, it's an improvement. I still switch back and forth between my Model S and an ICE car--I can't remember a time when the gas station experience ever got better.
You can use adb to uninstall apps like FB and Chrome in a few minutes, with your phone connected to a computer

https://www.xda-developers.com/uninstall-carrier-oem-bloatwa...
>> the lack of a verifiable link graph

I hadn't heard about YaCy even though I'm in their game. I too run a search engine that doesn't use a link graph for scoring relevance. My bet is on semantic relevance over PageRank, because I think our understanding of language models have become so sophisticated we can start relying on them solely.

Also, it's harder I think to game a language model when compared to a page rank model.

What do you think is lacking from non-link graph search engines?

EDIT: maybe I misunderstood b/c it says here YaCy _has_ a link graph: https://yacy.net/en/API.html
No bots posting to HN, please.
Then he fires them constantly or frustrates the hell out of them until they quit. Elon is a bad boss.
Updating Chrome is a vaccination, which is great, but people already affected by this exploit need a cure. I'd like to know more about who was exploiting this and for what purpose, and how to undo it.
Hi, do you have an email address to discuss and learn more about this opening? Thanks
Ask HN: Will you stop posting login-walled news sites?
There are a lot of links to websites like wsj and forbes that hide the content and may require a subscription or login. In my opinion, that's clickbait because you don't see what the title referenced.
Hopefully not significantly. Most damage occurs over the 80% mark, and it sounds like they have optimized the newer cells for this speed
Is there any public archive of this (and possibly other free data too)? I'd love to hoard some libre bits myself :)
Kubernetes for NFV, 5G, AI and Machine Learning
The world is finally growing up
Johannesburg has some strong motivators for solar energy (in whichever incarnation) such as:

1. Sunshine days

2. 2000m above sea level (for photovoltaic efficiency)

3. Many power interruptions and "load shedding" by state owned utility

4. Enough private (and government if they were better managed) money

5. Human capital and good universities

6. Enough physical space

I think there may be more reasons, but these are some of the main ones.
Interesting article, but I don't think they presented a causal link?
Asian big tits lesbian threesome – Picsninja.com
Dear God I installed LinkedIn a couple months back and their endless bs notifications made me realize that I don't need it. It doesn't give me anything. Why is it sending me 2-3 notifications a day when I have 5 friends who's profiles arent even actively used?

If it did something useful, like find me clients for the work I do then sure - I'll give them my attention. He'll, I'll pay good money for that! But I don't give a flying fuck thaty friend just graduated or a colleague got some award. I don't give a fuck and I'm sure as fuck not gonna play this game where we all pretend theirs any value in these things that email didn't accomplish 10 years ago.
There is a CSV standard, RFC 4180. There are also many variants. I used products which specifically say that follow that RFC.

It's awkward to preserve a header using shuf, even with head/tail. Here's what I came up with:

head -1 x.csv && (awk 'NR>1' x.csv | shuf -n 5)

My point is that "shuf" is GNU specific, while the author said it was a Unix tool like the other ones. Linux != Unix. Also, there are no Mac/Darwin/BSD variants of shuf.

"Ease off"? Why? The term "data scientist" appear in the title and each of the first three paragraphs, and the comment I replied to was "I would be a little bit shocked if any of the data scientists at my day job didn't know all seven of these". I want to know why data scientists who work with CSV files should be using shuf and not some more appropriate tool like csvkit.

That is, the entire topic is about scripting as applied to data science, not "just scripting".
We've started doubling, doubling and doubling again the cores and memory bandwidth though, so our dataset size to cpu*ghz would be still comparable. The only thing this doesn't take into account is IPC.
> Trading functionality that relies on DOM/media queries for privacy is totally valid

Perhaps it should be a site-specific permission like the microphone or camera. Your generic news site doesn't need that functionality (and shouldn't ask for the permission - you'd know something shady was going on) but your browser-based CAD tool would and you'd grant it there.
They run in shadow mode to gain statistical data, and I believe when actively used they can send more detailed data around disengagements.
I bet of they allowed people to opt in, at least a huge minority of Tesla owners would jump through hoops (like login and recaptcha) to contribute data if it advances the science.
India is in a historic water crisis. Will diverting 30 rivers solve it?
Lol, I made a C library on this very topic years twenty years ago.

http://www.kylheku.com/~kaz/austin.html

"Austin" provides several container data structures in a single instance. With a function call it can be instructed to change the representation from any one of them to any other. E.g. a red-black tree can be told to become an AVL tree or sorted list and so on.

When I wrote this and announced it, a gentleman from Austria named Carl Van Tast contributed the AVL. I've not encountered him since; I remember telling him it was Van-Tast-ic. That could why I haven't encountered him since.

The API is in "udict.h" (universal dictionary). The algorithms are enumerated thus:

#define UDICT_LIST 0
#define UDICT_BST 1
#define UDICT_REDBLACK 2
#define UDICT_SPLAY 3
#define UDICT_AVL 4