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

So it's not water that makes it fast, it's laser.


This is equivalent to saying, "So it's not the semiconductor that makes it fast, it's the electrical current."

The medium that is changing conductivity is water in this case, and it is able to do it much much faster.

That said, the system involves a laser that adds to the ability to switch quickly. "Because the laser pulse is so fast"


Wet, fast, excited laser.


Lasers aren't wet, water is!


Lit waters and wet lasers.

Band name?


Is the transistor driving the laser very fast...


Optional parenthesis and optional separators always force me to pause and parse the code instead of scanning it, because I need to establish the context of every single operation.

I'm sure Carp is interesting, but I would be so unproductive in it.


What do you mean by optional parentheses? Are you referring to the square brackets? Carp is inspired by Clojure, and in both [] is a reader macro that instantiates an array (a vector, as opposed to a list). I'm not a fan of using the array syntax to define function arguments.


I'm not sure what you mean by optional parenthesis. I'd say optional separators are a legacy feature, I don't think anyone writes Carp with separators.

Note: I'm a contributor.


No need to go back that far, the irak war after 9/11 was a resource hog by itself. 600 trillions if I recall ?


In the same vein:

- Don't hide your mistakes

- Show that you are vulnerable

- Be yourself

Are all things that work best when you are (contextually) high-status.

Yet we are still culturally promoting them as the things we should all strive for in any situation.

However, it's way easier to be open about my professional mistakes now that I'm recognized by my peers and that I don't do too many of them.

It's simple to expose my vulnerabilities now that I've built a social network that will not hurt me with it because they like and respect me.

And it's certainly great to be able to be myself, now that people around me will say I'm eccentric, and not reject me.

It's like the behavior of men in romantic comedy. If you were to be ugly and awkward, doing what they do would get you arrested. You don't get to play "50 shades" or "twilight" if you are the hunchback of Notredame. It's also why energy, humour and culture are such great assets, allowing you to somewhat help with social status.

One day maybe we will stop selling to our children that life is about this one thing that works in all cases, and admit each life advice is highly contextual.


Agreed. Admitting mistakes and showing vulnerability works best when you have nothing to lose, not because you have nothing but because you are untouchable. A good example would be a CEO who neither takes a pay cut nor resigns after laying off 20 % of their workforce. It is usually accompanied by a press release saying that they have seen the errors in their way, but as a consequence other heads have to roll, mine still stays attached (and then blame inflation or something). An upside down world, really.


"Skin in the game" from Taleb argues that yes, it's because the pilot is in plane that the plane is safer. Because the pilot will pay the same price as the passengers for a mistake, it will increase the likelihood of success.


That’s a great point I hadn’t thought of


What if we just throw the remote pilot from a tall building in the event of a plane crash?


I hope this is true, but since their entire stack is proprietary, we have no way to know if there is not a backdoor to get the key from you.

Since Apple was part of the PRISM program, I'm going to assume there is at least one for the 3 letters agency, which mean it's available for Apple, who designed it, as well.

But it does mean that they can mass scan easily the data, and have to target people personnally, which is already a huge improvement, and cover most people threat model.


Indeed, if you think Alabama and California are different, wait until you compare Italia and Norway.

Not to mention the economic power difference is huge.


Refer to Indian states. The languages across most states are actually mutually un-intelligible and cultures probably much more dramatically different than anything in Europe. In most of Europe, the majority culture have common elements of either Catholic or Protestant or Eastern Orthodox Christianity.


True, but I don't look at India as a success.

I really don't want Europe to look like India in any way, administratively, politically and logistically speaking. Not to mention the countless tensions you can feel accross the country when you travel there. It seems like a ticking social bomb when I go there, and we don't have the class system to shut up lower classes and women that keeps the uniquality stable.


The partition of colonial India was anything but a peaceful road to co-existence. The consequences included over a million dead, and tens of millions of people displaced. Last time I checked, India and Pakistan shelling each others' positions is still so commonplace that it's become a meme.


For the same reason, the ROI on vertical scaling is very good, and buying a bigger server is a lot of the time a very cheap and good way of solving a problem.


What I really want is a GPT who can set my dev env when I ask it to.

Hey ChatGPT, you give me the definitive commands that will install a good version of python, create a venv, install the right packages and command line tools, setup the configuration just right and let me just code?

Cause for the code, codepilot is already fantastic.


Here are the definitive commands that will install a good version of Python, create a virtual environment (venv), install the necessary packages and command line tools, set up the configuration correctly, and allow you to start coding:

Install a good version of Python:

  # Install the latest version of Python 3

  sudo apt update
  sudo apt install python3
Create a virtual environment (venv) for your project:

  # Create a virtual environment for your project
  python3 -m venv my_project

  # Activate the virtual environment
  source my_project/bin/activate
Install the necessary packages and command line tools:

  # Install the necessary packages and command line tools
  pip install --upgrade pip
  pip install setuptools wheel
  pip install flake8 black isort
Set up the configuration for your project:

  # Set up the configuration for your project
  flake8 --install-hook git
  black --install-hook git
  isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --thirdparty my_project
Start coding:

  # Start coding in your project
  cd my_project
  nano my_project.py
This series of commands will install the latest version of Python 3, create a virtual environment for your project, install the necessary packages and command line tools, set up the configuration for your project, and allow you to start coding. I hope this helps. Let me know if you have any other questions.


This is incredible (I’m assuming this was chatGPT output)


I think this fails because you need to install python3-venv too (on Debian systems I believe). So then you're back looking it up on Google.


There's good odds that if you responded "hey, I got an error about virtualenv being missing, what do I need to fix that?" it will suggest that. It's a genuine chat interface; if something isn't quite right, you can point that out and ask it to correct it, and it has good odds of understanding.


Did you try asking ChatGPT? This is its response to your verbatim question (and if it isn't exactly what you had in mind you can reply and ask it to change things, like do it on Windows or make it a script):

To install Python, you can use the following command:

    $ sudo apt-get install python3
To create a virtual environment (venv) for your Python project, you can use the following command:

    $ python3 -m venv /path/to/venv
To activate the virtual environment, you can use the following command:

    $ source /path/to/venv/bin/activate
To install packages within the virtual environment, you can use the following command:

    $ pip install <package-name>
To install command line tools, you can use the following command:

    $ sudo apt-get install <tool-name>
To set up the configuration for your project, you will need to edit the appropriate configuration files for the tools and libraries that you are using. The specific steps for this will depend on the details of your project and the tools that you are using.

Once you have set up your environment and installed the necessary packages and tools, you can start coding!


This has a failure mode in each single line, even if we ignore it will not work on any OS that is not debian-like, which is most of them.

First line, you don't chose which Python you install, only the 3, so you don't know if the libs you need will be available, which syntax you can use and which stdlib is at your disposable.

Then, you use venv which may not be available because the first line you used doesn't install all python packages and in some debian/ubuntu versions they don't include venv, setuptools or pip in the python3 package.

Then you pip install packages, which may fail if this has a c extensions which is not a wheel (E.G: you do machine learning), because you didn't get the python headers in the previous commands.

Then you install command lines with apt-get, meaning your tool version may not be upgraded to match the python you used. For pylint and mypy, this means it at beast false positives, at worst crashes

Of course, none of that explains how to setup your IDE to use said virtual, setup things like databases, init the git repo or put good default in config files.

Don't get me wrong, it's a good start, and not worse than most tutorials I read online written by human.

I don't doubt that it will get better over time though, and I can't wait. Bootstrapping is a plague to teach people.


To be fair, python - after 2to3 and after machine learning scientist with no clue about programming started using it - is a complete dumpster fire.

I gave up trying to install things locally on Mac. Sometimes I'm lucky with docker but that may be slow for trying new things out.

You're better off starting from an aws AMI and following whatever crazy setup the project you're using recommends.


> if it isn't exactly what you had in mind you can reply and ask it to change things

A lot of the things you complain about were underspecified in your question, it has to make some assumptions. And I'll bet if you ran into any of the errors that you describe you could get solutions by simply pasting the errors into the chat box. The code produced by these models is not going to be perfect any more than a human's would be. You'll still need an iterative process and some common sense. But it's easier and faster than doing everything yourself.


I only know how to specify the questions because I know they are sources of problems since I can install an entire setup project from scratch on the top of my head.

Most can't though, and they won't ask specific questions.

But with time, GPT will likely be able to ask questions to get the context, and that will change everything.


I mean if you ask the same question to a human your question is ambiguous enough that you will get the same type of issues.

How is any being or AI meant to read your mind to know you don't want instructions for system X but assume the instructions would be good on system Y etc. I feel sorry for the humans you expect to query you to get what you really want out of you.


With this language model around it, I imagine that's a trivial next step. ChatGPT was correctly self-diagnosing problems when I pasted the error codes back in. It justs needs a setup where output is looped back in, and I imagine you could start to say things like:

Give me an environment where the test suite passes for this new repo I've cloned, based on all the environment config inside.

- Finds versions, sets them up

- Installs packages

- Asks about conflicts or problems

- Notes why the tests fail first time (no DB!)

- Creates the DB, runs migrations

- Notes why the tests fail next time (missing env variable)

- Finds a similar env variable in the example file, creates and local env file

- etc etc

That's all possible now if you paste the messages into GPT (with some errors, which repeated attempts can resolve), it needs connecting up into a self-aware environment.


ChatGPT response: "Hey sorry, I may know everything but you're asking for the impossible."


Why do we still need to do all this boilerplate? I'm not even singling out Python here, I actually think that Codepilot being so amazing is kind of sad, clearly we shouldn't be needing to do all these things in 2022.


Because nobody wants to do the long, ingrate, tedious work of cleaning 30 years of legacy ecosystem.


hey, have you ever heard about https://nixos.org ?


The nixos people are truly the Jehovah Witness of software.


I think rust people beat us :)


This. 10-15 lines in `default.nix` followed by `nix-shell` ensures you'll have the exact same fully-functional dev environment any time, anywhere.


“I’m sorry, dev, I’m afraid I can’t do that. This mission is too important for me to allow you to jeopardize it.”


It's funny you ask this because I've been asking ChatGPT for exactly these sorts of issues. It misses sometimes, but I've gotten a couple of really good hits.


Why would you want it to stop there?


+1

Taboo is a UK stable food, and it goes hand in hand with censorship.

In fact, with the current political and economical situation, I'm surprised it's not getting worse. The Finger would be tempting to create in a time of crisis.


staple food


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

Search: